By Aleksandar Prokopec

Learn the paintings of establishing tricky, sleek, scalable concurrent purposes utilizing Scala

About This Book

  • Design and enforce scalable and easy-to-understand concurrent applications
  • Make the main of Scala through figuring out its philosophy and harnessing the ability of multicores
  • Get conversant in state-of-the-art applied sciences within the box of concurrency, with a specific emphasis on useful, real-world applications
  • Step-by-step educational consultant, that's choked with pragmatic examples

Who This publication Is For

This e-book is a must have instructional for software program builders aiming to put in writing concurrent courses in Scala, or develop their latest wisdom of concurrency.

This e-book is meant for Scala programmers that experience no past wisdom approximately concurrent programming, in addition to these looking to increase their latest wisdom approximately concurrency. uncomplicated wisdom of the Scala programming language can be worthy. Readers with a superior wisdom in one other programming language, akin to Java, should still locate this publication simply accessible.

What you are going to Learn

  • Get to grips with the basics of concurrent programming on sleek multiprocessor structures, with a selected concentrate on the JVM concurrency model
  • Build high-performance concurrent structures from uncomplicated, low-level concurrency primitives
  • Express asynchrony in concurrent computations with futures and promises
  • Seamlessly speed up sequential courses through the use of data-parallel collections
  • Implement reactive and event-based courses declaratively with Rx-style occasion streams
  • Design secure, scalable, and easy-to-comprehend in-memory transactional info models
  • Transparently create dispensed purposes that scale throughout a number of machines
  • Choose the right kind concurrency abstraction and combine diverse concurrency frameworks jointly in huge applications

In Detail

This booklet offers you an perception into the easiest practices essential to construct concurrent courses in Scala utilizing glossy, high-level concurrency libraries. It begins through introducing you to the principles of concurrent programming at the JVM, outlining the fundamentals of the Java reminiscence version, after which indicates the various vintage development blocks of concurrency, corresponding to the atomic variables, thread swimming pools, and concurrent facts buildings, in addition to the caveats of conventional concurrency. It then walks you thru assorted high-level concurrency abstractions, each one adapted towards a particular category of programming initiatives. eventually, the e-book provides an outline of while to take advantage of which concurrency library and demonstrates how all of them paintings together.

Show description

Read or Download Learning Concurrent Programming in Scala PDF

Best Programming books

Embedded C

For those that are approximately to put in writing their first embedded software - or were suffering to benefit approximately this crucial sector - this ebook will retailer weeks of attempt.

Cocoa Design Patterns

“Next time a few child indicates up at my door soliciting for a code evaluate, this is often the booklet that i'm going to throw at him. ”   –Aaron Hillegass, founding father of titanic Nerd Ranch, Inc. , and writer of Cocoa Programming for Mac OS X   Unlocking the secrets and techniques of Cocoa and Its Object-Oriented Frameworks   Mac and iPhone builders are usually beaten by means of the breadth and class of the Cocoa frameworks.

C++ Primer (5th Edition)

Bestselling Programming educational and Reference thoroughly Rewritten for the hot C++11 regular   totally up-to-date and recast for the newly published C++11 general, this authoritative and finished creation to C++ can help you to profit the language quickly, and to exploit it in sleek, powerful methods.

Operating System Concepts

Preserve velocity with the fast-developing global of working structures Open-source working structures, digital machines, and clustered computing are one of the top fields of working structures and networking which are swiftly altering. With gigantic revisions and organizational alterations, Silberschatz, Galvin, and Gagne’s working method suggestions, 8th version is still as present and proper as ever, aiding you grasp the elemental techniques of working platforms whereas getting ready your self for today’s rising advancements.

Additional info for Learning Concurrent Programming in Scala

Show sample text content

Gene Amdahl, 1967 even though the self-discipline of concurrent programming has a protracted background, it received loads of traction in recent times with the arriving of multicore processors. the new improvement in desktop not just revived a few classical concurrency concepts, but in addition begun an immense paradigm shift in concurrent programming. At a time, whilst concurrency is changing into so very important, an knowing of concurrent programming is a necessary ability for each software program developer. This bankruptcy explains the fundamentals of concurrent computing and provides a few Scala preliminaries required for this ebook. particularly, it does the next: • indicates a quick review of concurrent programming • reviews the benefits of utilizing Scala in terms of concurrency • Covers the Scala preliminaries required for interpreting this e-book we'll begin via reading what concurrent programming is and why it is necessary. Concurrent programming In concurrent programming, we convey a software as a suite of concurrent computations that execute in the course of overlapping time periods and coordinate not directly. enforcing a concurrent application that capabilities accurately is generally a lot tougher than imposing a sequential one. all of the pitfalls found in sequential programming lurk in each concurrent application, yet there are various different issues that may get it wrong, as we are going to examine during this publication. A typical query arises: why trouble? cannot we simply retain writing sequential courses? creation Concurrent programming has a number of merits. First, elevated concurrency can increase application functionality. rather than executing the full software on a unmarried processor, diverse subcomputations may be played on separate processors making this system run quicker. With the unfold of multicore processors, this is often the first this is because concurrent programming is these days getting rather a lot cognizance. Then, a concurrent programming version can lead to swifter I/O operations. A merely sequential software needs to periodically ballot I/O to ascertain if there's any information enter on hand from the keyboard, the community interface, or another machine. A concurrent software, nevertheless, can react to I/O requests instantly. For I/O-intensive operations, this ends up in better throughput, and is likely one of the explanation why concurrent programming help existed in programming languages even sooner than the looks of multiprocessors. therefore, concurrency can make sure the better responsiveness of a application that interacts with the surroundings. ultimately, concurrency can simplify the implementation and maintainability of laptop courses. a few courses could be represented extra concisely utilizing concurrency. it may be easier to divide this system into smaller, self sustaining computations than to include every thing into one huge application. person interfaces, internet servers, and online game engines are standard examples of such structures. during this publication, we undertake the conference that concurrent courses converse by using shared reminiscence, and execute on a unmarried computing device.

Rated 4.13 of 5 – based on 4 votes