3 ms·
> Is it widely accepted that Clojure is better for concurrency? I'd argue that Scala supports a far more mature concurrency concept (message passing) as oppose
by _pmf_ 13y ago
> Is it widely accepted that Clojure is better for concurrency?
I'd argue that Scala supports a far more mature concurrency concept (message passing) as opposed to Clojure's STM. Refactoring Scala's concurrency features to interoperate with plain Java is much easier than refactoring a largish STM transaction.
- calibraxis 13y agoSTM isn't a commonly used feature. (I believe Stuart Halloway said this? http://www.infoq.com/presentations/Concurrency-Clojure http://www.infoq.com/presentations/Concurrency-Clojure) Rather, I imagine that in such discussions, one should first focus more on immutable values; then the time model of identities and values (which encompasses the ref types, of which STM is just one); then things like pmap, reducers and stuff you get from Java. [Disclaimer: I know next to nothing about Scala, and would surely enjoy playing with Scala's Akka within Clojure.]