Actors in Scala. Philipp Haller, Frank Sommers

Actors in Scala


Actors.in.Scala.pdf
ISBN: 0981531652,9780981531656 | 139 pages | 4 Mb


Download Actors in Scala



Actors in Scala Philipp Haller, Frank Sommers
Publisher: Artima Inc




The former black art of testing Akka actors and FSM's was made into an understandable regular practice by Roland Kuhn. I guess it is a necessary tradeoff with so many good speakers and only two Scala Days. It is not the only concurrancy construct in Scala but it is one of the most recognized. Scala Performance (Mixed Scenario). Is the Erlang send operator ported into the actor library (it's just a method call on a method named “!”). Actors in Scala – Recent trends in computer architecture make concurrency and parallelism an essential ingredient of efficient program execution. Actors in Scala are just objects. The Actor model has been implemented in the standard Scala library by Philipp Haller (for the interested reader, a solid reference is for instance this article explaining how actors in Scala work). One thing that always surprised me though is that while being based on Scala, which is a very type-safe language, the elementary construct in Akka – an actor – is not really type safe. This benchmark simulates a use case with a mixture of operations. To be as complete as I can be in this section I should also note that Scala treats everything as an object, even though it has these two types of actors. In Scala we can easily do things in parallel with actors; actors are easily started up, they are cheap, and they can easily send objects to each other . Some syntax notes for the Scala newbs: ;'s are optional, Unit is like void in Java, array access is with () not [], ! According to my googling experience on the issue, this is the first time someone met the problem and solved it. I'm working with web service clients, and they are slow on the first call. Instead of always creating a brand new one, I would like to use actors and have say 5 actors to wrap the web service clients. The support for Actors is one of the features that attracts many new developers to Scala. An actor is essentially an active object.

Links:
Introduction to Computational Biology: Maps, Sequences and Genomes book download