Erlang Programming: A Concurrent Approach to Software by Francesco Cesarini

By Francesco Cesarini

This ebook is an in-depth advent to Erlang, a programming language excellent for any scenario the place concurrency, fault tolerance, and quickly reaction is vital. Erlang is gaining frequent adoption with the arrival of multi-core processors and their new scalable method of concurrency. With this advisor you will the right way to write complicated concurrent courses in Erlang, despite your programming historical past or event.

Written by means of leaders of the overseas Erlang group -- and in keeping with their education fabric -- Erlang Programming makes a speciality of the language's syntax and semantics, and explains trend matching, right lists, recursion, debugging, networking, and concurrency.

This booklet is helping you:

  • Understand the strengths of Erlang and why its designers incorporated particular features
  • Learn the strategies in the back of concurrency and Erlang's approach of dealing with it
  • Write effective Erlang courses whereas maintaining code neat and readable
  • Discover how Erlang fills the necessities for disbursed systems
  • Add easy graphical consumer interfaces with little effort
  • Learn Erlang's tracing mechanisms for debugging concurrent and dispensed systems
  • Use the integrated Mnesia database and different desk garage features

Erlang Programming offers workouts on the finish of every bankruptcy and straightforward examples in the course of the book.

Show description

Read Online or Download Erlang Programming: A Concurrent Approach to Software Development PDF

Best javascript books

Beginning Android Web Apps Development: Develop for Android using HTML5, CSS3, and JavaScript

With starting Android net Apps improvement, you'll tips on how to observe HTML5, CSS3, JavaScript, Ajax and different internet criteria to be used at the Android cellular platform, by means of construction quite a few enjoyable and visually stimulating video games and different internet functions! If you've performed a few simple internet improvement, and you are looking to construct your abilities to create exceptional web apps, you'll find everything you search within the discussions and examples during this publication.

Pro Windows 8 Development with HTML5 and JavaScript

Apps are on the middle of home windows eight, bringing wealthy and fascinating reviews to either pill and laptop clients. home windows eight makes use of the home windows Runtime (WinRT), an entire reimagining of home windows improvement that helps a number of programming languages and is outfitted on HTML5, CSS and JavaScript. those purposes are the way forward for home windows improvement and JavaScript is ideal language to use this intriguing and versatile atmosphere.

Ruby in a Nutshell: A Desktop Quick Reference (In a Nutshell (O'Reilly))

Ruby is a fully natural object-oriented scripting language written in C and designed with Perl and Python services in brain. whereas its roots are in Japan, Ruby is slowly yet definitely gaining floor within the US. The target of Yukihiro Matsumoto, writer of Ruby and writer of this publication, is to include the strengths of languages like Perl, Python, Lisp and Smalltalk.

Erlang Programming: A Concurrent Approach to Software Development

This booklet is an in-depth creation to Erlang, a programming language perfect for any scenario the place concurrency, fault tolerance, and quick reaction is vital. Erlang is gaining common adoption with the arrival of multi-core processors and their new scalable method of concurrency. With this consultant you are going to the way to write advanced concurrent courses in Erlang, despite your programming historical past or adventure.

Additional info for Erlang Programming: A Concurrent Approach to Software Development

Example text

Well, you are right. Our point is that if you want to build massively concurrent systems, you should be using the tool that is best for the job, regardless of the underlying concurrency mechanism. As a result, the concurrency model of an Erlang program would differ from that of languages where process creation and message passing times are not as small. We describe the Erlang way of dealing with concurrency in Chapters 4 through 6, and Chapter 12. Soft Real-Time Properties Even though Erlang is a high-level language, you can use it for tasks with soft real-time constraints.

The use of a first position tag is to differentiate between tuples used for different purposes in the code. This greatly helps in finding the cause of errors when the wrong tuple has been mistakenly passed as an argument or returned as a result of a function call. This is considered a best practice for Erlang. A number of built-in functions are provided to set and retrieve elements as well as get the tuple size: 1> tuple_size({abc, {def, 123}, ghi}). 3 2> element(2,{abc, {def, 123}, ghi}). {def,123} 3> setelement(2,{abc, {def, 123}, ghi},def).

This was explained by the fact that 27% of the C++ code consisted of defensive programming, 11% of memory management, and 23% of high-level communication, all features which in Erlang are part of the semantics of the language or are implemented in the OTP libraries. The DCC’s code base was more in line with the folklore and urban legends, namely that it was about 70% smaller than its C++ counterpart. The Erlang DM resulted in a 100% performance increase when compared to the C++ version, which crashed when severely overloaded.

Download PDF sample

Rated 4.71 of 5 – based on 3 votes