3 ms·
This is an old article (2008) and some things might have changed with Akka for Scala (http://akka.io/ http://akka.io/) which tries to give Scala much of the fun
by fingerprinter 16y ago
This is an old article (2008) and some things might have changed with Akka for Scala (http://akka.io/ http://akka.io/) which tries to give Scala much of the functionality of Erlang. I personally haven't tried Akka but I have a good friend prototyping with it right now.
The sad thing is that this same friend just built a huge system with Erlang for another company and loved it. It did the job wonderfully and performed under pressure like a champ. However the new gig for him wouldn't let him use a 'non-java' programming language. Scala is even a stretch.
Given my experience with Erlang, I can wholeheartedly recommend it to someone looking to build a system in Erlang's sweetspot.
- nivertech 16y agoYou can run Erlang on JVM it's called Erjang [1]. The author of the project claim, that with time Erjang will be better/faster than Erlang, since JVM getting improved faster, than standard Erlang VM - BEAM. [1] http://www.javalimit.com/2009/12/erjang-why.html http://www.javalimit.com/2009/12/erjang-why.html
- davidw 16y agoAnyone know how he handles scheduling with Erjang? That's where Erlang's advantages come from, mostly.
- nivertech 16y agoUsing Kilim project, which provides lightweight threads in Java.
- rvirding 16y agoErjang is looking good, they have almost implemented the full functionality in the standard BEAM implementation. You can quite happily run distributed Erjang together with distributed Erlang BEAM, it is very impressive. As LFE (Lisp Flavoured Erlang) runs without problems on Erjang (it would be surprising otherwise) this means that there is now another Lisp on the JVM.
- code_duck 16y agoAkka has a Java API, too.
- unoti 16y agoI thought that Akka was going to be the missing link on Scala also. So I started investigating and building, and ran into some roadblocks. In particular, I found that Scala offers actors, but the distributed and highly available cluster aspects that Erlang's OTP offers were missing from Scala. Akka looks like it's going to provide this, at first blush. But after further investigation, it doesn't really provide that, yet, at least it didn't last I checked. So I posted this question on StackOverflow and on the Akka mailing list: http://stackoverflow.com/questions/3692680/scala-akka-how-to-develop-a-multi-machine-highly-available-cluster http://stackoverflow.com/questions/3692680/scala-akka-how-to... The question is about how you build fault tolerance, such that your cluster has no single point of failure. At the time, the principal authors of Akka responded saying that you can't right now out of the box, and they're working on that for a later commercial release. Since then I started looking at integrating Scala + Zookeeper, and more seriously considered Go + Zookeeper, and it revived my interest in Erlang.
- fingerprinter 16y agoIt sounds like you are looking for Erlang ;) Not knowing anything about your problem domain, of course...
- unoti 16y agoAgreed. Biting the bullet.