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 Scala language is a JVM based language that offers many cool features, including functional programming and particularly concurrency "made easy". Recent trends in computer architecture make concurrency and parallelism an essential ingredient of efficient program execution. Apparently, along the way of building AgileWiki, the main author decided to do some work on actors in Scala. It's appears to be one of Scala's most celebrated features, judging by the official blurb. Let's say (initially) I want to migrate all my service calls to scala actors. Akka actors' receive method accepts a partial function from Any to Unit(i.e. The Scala Cookbook is coming soon. Here's a short summary of the key changes in my version, which lives at http://github.com/stephentu/scala. I spent a fair amount of time developing actor-based systems recently, specifically with the Scala Actor library. 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). Programming with actors was a new concept to me until I tried it out in Scala. First, I just finished editing the last pages of the book last week, and was able to update all of the code to the latest versions: Scala 2.10.x, SBT 0.12.x, Play 2.1.x, etc. I've finally gotten around to reading Actors In Scala by Philipp Haller and Frank Sommers. This summer I worked on revamping the Scala remote actors implementation. In an effort to really learn the material in the this text, I'm exploring selected examples from the text in depth. I've been experimenting in my spare time with the Scala actors library for about a year now. ActorOf(Props(new Actor { def receive = { case msg => println("Received: " + msg) } }) }. PartialFunction[Any, Unit]) and this function can be dynamically changed at runtime. I've been experimenting with traits, multiple inheritance (mixins), and Actors in Scala and I've found it difficult to merge all 3 aspects of the language. Threads are still a complex topic to get right in Java due do -racing conditions -dead locks -shared state.

Download more ebooks: