3 ms·
Akka calls them lightweight threads, but they really aren't as they can't be blocked. In short - they're not implemented as continuations. Basing the implement
by pron 14y ago
Akka calls them lightweight threads, but they really aren't as they can't be blocked. In short - they're not implemented as continuations.
Basing the implementation on real lightweight threads gives you selective receive and other goodies mentioned in the post, while maintaining the API simple. I think Quasar/Pulsar are much simpler than Akka, and they will stay simpler for said reason.
All in all, Akka feels a lot more complicated than Erlang. Also, Scala isn't everyone's cup of tea, and Akka doesn't mesh well with Clojure.
Quasar tries to join the power of Erlang with the power of the JVM. Pulsar tries to join the beauty and elegance of Erlang with the beauty and elegance of Clojure.
- alexatkeplar 14y agoAkka works fine from Java and Clojure (http://doc.akka.io/japi/akka/2.1.2/ http://doc.akka.io/japi/akka/2.1.2/ | https://github.com/jasongustafson/akka-clojure https://github.com/jasongustafson/akka-clojure)
- gtani 14y agoAll well and good, another measure of "lightweight" that is often quoted is a little over 300 words of overhead/erlang BEAM process and 300 bytes/akka actor, do you have comparables for Quasar? http://www.erlang.org/doc/efficiency_guide/processes.html http://www.erlang.org/doc/efficiency_guide/processes.html http://doc.akka.io/docs/akka/snapshot/general/actor-systems.html http://doc.akka.io/docs/akka/snapshot/general/actor-systems.... (300 bytes: way at the bottom
- pron 14y agoQuasar actors consume even less memory. An idle actor occupies about 500 bytes.