Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Well, 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.


> 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: