Bluish Coder

Programming Languages, Martials Arts and Computers. The Weblog of Chris Double.


2006-07-18

Scala and Actors

The Scala programming language has been getting a bit of attention on Lambda the Ultimate lately. One paper in particular interested me, covering the implementation of a lightweight concurrency model in Scala.

Scala compiles to JVM bytecode (and apparently there is a version that compiles to .NET as well). The paper describes implementing an Erlang style concurrency system within the JVM that doesn't use native threads. This allows large number of 'actors' to exist, communicating with each other. An interesting aspect of what they've done is how they've gone about mapping the actors to native threads so that long blocking operations can get their own thread as well as utilising threads to run some of the lightweight processes.

All of this is implemented as a library rather than extending the Scala language itself.

Tags


This site is accessable over tor as hidden service 6vp5u25g4izec5c37wv52skvecikld6kysvsivnl6sdg6q7wy25lixad.onion, or Freenet using key:
USK@1ORdIvjL2H1bZblJcP8hu2LjjKtVB-rVzp8mLty~5N4,8hL85otZBbq0geDsSKkBK4sKESL2SrNVecFZz9NxGVQ,AQACAAE/bluishcoder/-61/


Tags

Archives
Links