3 ms·
> all concurrency systems converge until they become an Erlang actor model That's absolute gold, and I've seen a very accurate real life representation of that
by jacquesm 7y ago
> all concurrency systems converge until they become an Erlang actor model
That's absolute gold, and I've seen a very accurate real life representation of that in recent times. Uncanny how many of those wheels we keep re-inventing.
- 0815test 7y agoWell, Erlang-like actor model is one basic pattern for achieving safe concurrency. A second one is keeping data read-only so that it can be freely accessed by multiple threads; and a further pattern is serializing access at run time (either using explicit locks, or in special cases with "non-blocking" algorithms and data structures). Rust is pretty unique in being able to comfortably encompass all of these patterns in its concurrency model, while ensuring safety.
- masklinn 7y ago> A second one is keeping data read-only so that it can be freely accessed by multiple threads That's not really a "pattern for achieving safe concurrency". At one point, your concurrent processes need to communicate somehow or they're parallel more than concurrent.