News for hackers. Stuff that matters.
Re:Clever code is probably the worst code you could write by zarathustreal on Tuesday May 21, 2024 @09:16PM (#40436310)
You answered the question yourself..can you at least edit your comment so you won’t confuse otherwise correctly oriented computer science practitioners?

The commutative property is fundamental to understanding algebraic structures and fast parallel processing. If a binary operation is commutative over a given set then, yes, a proper compiler will parallelize it. No, it will not necessarily use OS threads directly one to one, that’s usually not a consideration even for a naive approach.

There are no comments on this comment yet.