By Philipp Haller

Fresh tendencies in laptop structure make concurrency and parallelism a necessary aspect of effective software execution. The actor version of concurrency lets you show real-world concurrency in a normal manner utilizing concurrent procedures that converse through asynchronous messages.

Scala is a programming language for the Java digital computing device, offering first-class help for either object-oriented and sensible programming. through together with a strong actor framework in its general library, Scala deals a compelling method of take on concurrent programming. Scala's actors allow you to practice the actor concurrency version to the JVM, allowing real-world suggestions which are effective, scalable, and powerful.

Published by means of Artima, this is often the 1st publication on Scala's actors, co-authored by way of the author and lead maintainer, Philipp Haller, and Frank Sommers. beginning with the basics of the actor concurrency version, this ebook bargains a accomplished educational on sensible programming with actors in Scala. It allows you to leverage the whole energy of contemporary and tomorrow's multi-core processors by means of describing either simple and complicated beneficial properties of Scala's actor framework in-depth.

Show description

Read Online or Download Actors in Scala PDF

Best software development books

Oh Crap I Need an App: The Adventures of a Non-Geek Entrepreneur Trying to Get an Application to Make Her Web-Based Business Idea a Reality

Tips on how to outline your app, lease a seller, and discover a aid community extra fast and for much less funds. Casey Burke Bunn claims to be a normal lady who begun a enterprise at 25 and desires to percentage assistance so that you don’t repeat a few of her very dear blunders. you may disagree with the “ordinary” a part of that declare.

What Every Engineer Should Know about Software Engineering

Do you… Use a working laptop or computer to accomplish research or simulations on your day-by-day paintings? Write brief scripts or checklist macros to accomplish repetitive initiatives? have to combine off-the-shelf software program into your platforms or require a number of functions to interact? end up spending an excessive amount of time operating the kinks from your code?

Software-Architektur: Grundlagen - Konzepte - Praxis

Als Architekt arbeiten Sie in einem sehr vielf? ltigen und dynamischen Umfeld. Neue Technologien dr? ngen auf den Markt, neue Werkzeuge versprechen Effizienz- und Produktivit? tssteigerungen und neue developments, wie serviceorientierte Architekturen (SOA) und modellgetriebene Verfahren sollen Ihnen helfen, mit der inh?

JUnit in Action, 2nd edition

Whilst JUnit was once first brought a decade in the past through Kent Beck and Erich Gamma, the Agile flow was once in its infancy, "Test pushed improvement" was once unknown, and unit trying out was once simply commencing to circulation into the common developer's vocabulary. this day, such a lot builders recognize some great benefits of unit trying out and depend upon the more and more subtle instruments now to be had.

Additional info for Actors in Scala

Sample text

One advantage of the actor-based approach is that it allows the continuation of ❈r✉✐s❡❈♦♥tr♦❧—❚❤r♦tt❧❡❈♦♥tr♦❧—to be defined after ❈r✉✐s❡❈♦♥tr♦❧ is already defined—and even after an instance of ❈r✉✐s❡❈♦♥tr♦❧ is already initialized and loaded into memory: ❚❤r♦tt❧❡❈♦♥tr♦❧ is simply an actor with the uniform actor interface to receive messages. Thus all ❈r✉✐s❡❈♦♥tr♦❧ needs is a reference to the continuation actor, such as that actor’s address. The ability to perform such extreme late binding of a continuation allows developers to incrementally add knowledge—such as control flow—to an actor-based system.

Inside ❢♦r❡❛❝❤ we first obtain an iterator ✐t from the ■t❡r❛❜❧❡.

Switching between local and remote actors is surprisingly simple because asynchronous messaging works well in either case. In addition to asynchronous messaging primitives, the Scala actors API provides for synchronous message sending as well. The “send it and forget it” principle assumes that all messages sent are eventually received by the target actor. Although in many systems the notion of “lost” messages is real—for instance, the server hosting a target actor may crash resulting in the target never receiving the message—the actor model assumes that infrastructure components ensure reliable message transmission.

Download PDF sample

Rated 4.64 of 5 – based on 5 votes