Software Development

Download e-book for iPad: Actors in Scala by Philipp Haller

By Philipp Haller

ISBN-10: 0981531652

ISBN-13: 9780981531656

Contemporary tendencies in laptop structure make concurrency and parallelism an important aspect of effective application execution. The actor version of concurrency enables you to exhibit real-world concurrency in a traditional manner utilizing concurrent methods that speak through asynchronous messages. Scala is a programming language for the Java digital desktop, supplying first-class aid for either object-oriented and practical programming. by way of together with a robust actor framework in its general library, Scala bargains a compelling method of take on concurrent programming. Scala's actors allow you to practice the actor concurrency version to the JVM, permitting real-world options which are effective, scalable, and powerful. released by way of Artima, this can be the 1st booklet on Scala's actors, co-authored by way of the writer and lead maintainer, Philipp Haller, and Frank Sommers. beginning with the basics of the actor concurrency version, this booklet deals a complete educational on functional programming with actors in Scala. It lets you leverage the whole energy of state-of-the-art and tomorrow's multi-core processors by means of describing either easy and complex positive factors of Scala's actor framework in-depth.

Show description

Read or Download Actors in Scala PDF

Similar software development books

Read e-book online Software Engineering: (Update) (8th Edition) PDF

Good choice and association of subject matters, made the entire extra authoritative by means of the author's credentials as a senior educational within the zone Prof. David S. Rosenblum, collage collage London i locate Somerville inviting and readable and with extra applicable content material Julian Padget, collage of tub Sommerville takes case stories from appreciably diverse components of SE.

Model-Driven Software Development by Sami Beydeda, Matthias Book, Volker Gruhn PDF

Abstraction is the main uncomplicated precept of software program engineering. Abstractions are supplied by means of versions. Modeling and version transformation represent the middle of model-driven improvement. versions might be sophisticated and at last be reworked right into a technical implementation, i. e. , a software program method. the purpose of this booklet is to provide an summary of the cutting-edge in model-driven software program improvement.

Thomas Stahl's Model-Driven Software Development: Technology, Engineering, PDF

Model-Driven software program improvement (MDSD) is at the moment a extremely popular improvement paradigm between builders and researchers. With the arrival of OMG's MDA and Microsoft's software program Factories, the MDSD strategy has moved to the centre of the programmer's realization, turning into the focal point of meetings corresponding to OOPSLA, JAOO and OOP.

Extra resources for Actors in Scala

Example text

Such an environment becomes practical when infrastructure software alleviates the need for developers to concern themselves with the intricacies of how such a data center partitions work between the various hardware components. Instead, application developers can focus on higher-level concerns, such as specifying the algorithms to use when servicing an incoming request. Example: MapReduce. 13 With M AP R EDUCE, a user provides some data as well as some algorithms to operate on that data, and submits that as a request to the M AP R EDUCE infrastructure software.

Creating and starting an actor are separate, although closely related, tasks. In Scala, actors are plain old Scala objects, and can therefore be created via their constructors. An actor starts processing incoming messages after it has been started, which is similar to starting a Java thread. In practice, it is useful for actors to be able to monitor each others’ lifecycle events. In the fork-join example, for instance, a child actor may decide to terminate upon sending its response to the parent, in order to free up memory.

As we mentioned in the previous chapter, the benefits of concurrency come about as a result of having few requirements about the order in which threads wind their way through a program and access program state. In effect, synchronization turns parts of a program into sequential code because only one thread at a time can access the global, or shared, state. Indeed, if control flow through a program relies on globally visible state, there is no way around serialized access to that state without risking incorrect behavior.

Download PDF sample

Actors in Scala by Philipp Haller


by Edward
4.3

Rated 4.60 of 5 – based on 42 votes