|
|
|
|
|
by bcrosby95
1996 days ago
|
|
Clojure's version of immutability is more useful in some domains than Elixir/Erlang's. E.g. you can both safely and efficiently share memory in Clojure across multiple threads. You can't really do the same in Elixir that I'm aware of - it triggers a deep copy which can kill performance. Sometimes acceptable, sometimes not. Elixir/Erlang processes serve a lot of roles. If those roles don't line up cleanly your code could end up a lot more complex than necessary in other languages. In the past the JVM had better raw performance, but I'm not sure how much that might change with the new JIT in BEAM. |
|