News for hackers. Stuff that matters.
Re:A future for fork(2) by pcwalton on Friday October 05, 2018 @11:13AM (#18148752)
Only if you don't have a data-parallel workload. Message passing is often a nonstarter for data-parallel workloads.

Another way to look at it is that the hardware has a very efficient word-level message-passing interface built-in, via shared memory. Why not take advantage of it?

Re:A future for fork(2) by lmm on Friday October 05, 2018 @12:31PM (#18149473)
> Another way to look at it is that the hardware has a very efficient word-level message-passing interface built-in, via shared memory. Why not take advantage of it?

Because shared mutable state is the root of all evil, or at least very difficult to reason about. Better to have clear owners for all state; if you need to conduct multiple operations on the same data you should move the code to where the data is rather than sharing the data between different processing units (this has long been a truism of distributed system design; modern multicore processors behave much the same as distributed systems if you zoom in enough, and the same techniques are appropriate).

Re:A future for fork(2) by pcwalton on Friday October 05, 2018 @02:22PM (#18150456)
It may be "the root of all evil", but often there's no faster way to solve the problem. We need to accept that shared mutable state is sometimes necessary and work on how to tame it to be maintainable and usable.
Re:A future for fork(2) by a1369209993 on Saturday October 06, 2018 @02:28AM (#18153838)
Shared mutable state is like goto; yes, it is sometimes necessary, but that only happens when there's a deficiency in your language's concurrency primitives.