|
|
|
|
|
by khgvljhkb
3846 days ago
|
|
I'd rather have immutable data, and no shared state in concurrent apps, but to each and their own. Just remember that there is no big conceptual difference between blocking and locking, which is what you end up doing when having shared mutable state. Recommending anyone to check out CSP (like in Go & Clojure/script (the latter also with immutable data)) or Actors (like in Erlang, Elixir). |
|
Conceptually, yes, but the incredibly low overhead of CPU atomics compared to message passing (especially on x86) mean that theory and practice are very different.