Learn You Some Erlang for Great Good!: A Beginner's Guide by Fred Hebert

By Fred Hebert

Erlang is the language of selection for programmers who are looking to write strong, concurrent functions, yet its unusual syntax and sensible layout can intimidate the uninitiated. fortunately, there's a brand new weapon within the conflict opposed to Erlang-phobia: examine You a few Erlang for excellent Good!

Erlang maestro Fred Hebert starts off sluggish and eases you into the fundamentals: You'll know about Erlang's unorthodox syntax, its information buildings, its kind procedure (or lack thereof!), and easy sensible programming options. as soon as you've wrapped your head round the easy stuff, you'll take on the genuine meat-and-potatoes of the language: concurrency, dispensed computing, scorching code loading, and the entire different darkish magic that makes Erlang one of these scorching subject between today's savvy developers.

As you dive into Erlang's useful delusion global, you'll examine about:
- checking out your purposes with EUnit and customary Test
- construction and freeing your functions with the OTP framework
- Passing messages, elevating blunders, and starting/stopping methods over many nodes
- Storing and retrieving information utilizing Mnesia and ETS
- community programming with TCP, UDP, and the inet module
- the easy joys and capability pitfalls of writing allotted, concurrent applications

Packed with lighthearted illustrations and simply the correct mix of offbeat and useful instance courses, research You a few Erlang for nice sturdy! is the precise access element into the sometimes-crazy, always-thrilling international of Erlang.

Show description

Read Online or Download Learn You Some Erlang for Great Good!: A Beginner's Guide PDF

Similar programming books

Illustrated C# 2012

This publication offers the C# five. zero language in a uniquely succinct and visible layout. frequently in programming books, the data may be hidden in an unlimited sea of phrases. As a programmer who has through the years used a dozen programming languages, the writer knows it can sometimes be difficult to slog via one other 1,000-page publication of dense textual content to profit a brand new language. There are likely many different programmers who suppose an identical method. to handle this example, this book explains C# five. zero utilizing figures; brief, concentrated code samples; and transparent, concise motives.

Figures are of leading value during this booklet. While teaching programming seminars, Daniel Solis found that he could virtually watch the sunshine bulbs occurring over the students’ heads as he drew the figures at the whiteboard. during this textual content, he has distilled every one very important notion into basic yet exact illustrations. The visible presentation of the content material provides you with an figuring out of C# that’s impossible with textual content on my own.

For whatever as complicated and unique as a programming language, notwithstanding, there has to be textual content in addition to figures. yet instead of lengthy, wordy reasons, Solis has used brief, concise descriptions and bulleted lists to make every one very important piece of data visually distinctive.

via the tip of this e-book, you’ll have a radical operating wisdom of all facets of the C# language, even if you’re a amateur programmer or a pro veteran of alternative languages. if you would like an extended, leisurely, verbose rationalization of the language, this isn't the booklet for you. but when you will have a concise, thorough, visible presentation of C# five. zero, this is often simply what you’re searching for.
<h3>What you’ll learn</h3> * info of the C# five. zero language provided in a transparent, concise remedy
* New gains within the most up-to-date model of . web, model four. five, within the author’s precise visible variety
* How C# differs from and is the same to different programming languages, assisting migrating C++ and VB programmers who already know the way languages paintings
<h3>Who this publication is for</h3>
* visible easy programmers drawn to relocating to C#
* C++ programmers drawn to relocating to C#
* beginner programmers attracted to studying C#
* scholars in introductory programming sessions studying C#

<h3>Table of Contents</h3><ol> * C# and the . web Framework
* evaluation of C# Programming
* kinds, garage, and Variables
* sessions: the fundamentals
* equipment
* extra approximately periods
* periods and Inheritance
* Expressions and Operators
* Statements
* Structs
* Enumerations
* Arrays
* Delegates
* occasions
* Interfaces
* Conversions
* Generics
* Enumerators and Iterators
* advent to LINQ
* advent to Asynchronous Programming
* Namespaces and Assemblies
* Exceptions
* Preprocessor Directives
* mirrored image and Attributes
* different subject matters

Effective Akka

Avoid universal blunders whilst construction allotted, asynchronous, high-performance software program with the Akka toolkit and runtime.

With this concise consultant, writer Jamie Allen offers a set of top practices according to a number of years of utilizing the actor version. The publication additionally comprises examples of actor program kinds and fundamental styles of actor utilization, the additional trend and Cameo Pattern.

Allen, the Director of Consulting for Typesafe—creator of Akka and the Scala programming language—examines actors with a banking-service use case through the booklet, utilizing examples proven in Akka and Scala. when you have any event with Akka, this consultant is essential.

• Delve into domain-driven and work-distribution actor applications;
• comprehend why it’s vital to have actors do just one job;
• keep away from thread blocking off through permitting common sense to be delegated to a Future;
• version interactions as easily as attainable to prevent untimely optimization;
• Create well-defined interactions, and be aware of precisely what disasters can occur;
• examine why you need to by no means deal with actors as you will a standard class;
• hold tune of what is going on in creation by means of tracking everything;
• music Akka functions with the Typesafe Console.

Who This booklet Is For

This publication is for builders who've stepped forward past the introductory degree of writing Akka purposes and want to comprehend most sensible practices for improvement that might aid them steer clear of universal missteps.

Many of the guidelines are correct outdoors of Akka to boot, if it is utilizing one other actor library, Erlang, or simply simple asynchronous development.

This booklet isn't for builders who're new to Akka and are searhing for introductory info.

Associative Computing: A Programming Paradigm for Massively Parallel Computers

Integrating associative processing options with hugely parallel SIMD expertise, this quantity explores a version for having access to information by way of content material instead of summary deal with mapping.

Extra info for Learn You Some Erlang for Great Good!: A Beginner's Guide

Sample text

213,45,132,64,76,32,76,0,0,234,32,15>> 9> R. 213 In this example, Rest/binary is a specific notation that lets you say that whatever is left in the binary, whatever length it is, is put into the Rest variable. So <> is to binary pattern matching what [Head|Tail] is to list pattern matching. Nice, huh? This works because Erlang allows more than one way to describe a binary segment. The following are all valid: Value Value:Size Value/TypeSpecifierList Value:Size/TypeSpecifierList Here, Size is always in bits when no TypeSpecifierList is defined.

Note Technically, variables can also start with an underscore (_), but by convention, their use is restricted to values you do not care about. This behavior of the = operator is the basis of something called pattern matching, which many functional programming languages have, although Erlang’s way of doing things is usually regarded as more flexible and complete than the alternatives. You’ll learn more about Erlang pattern matching when we visit other data types in this chapter, and also see how it works with functions in the following chapters.

Don’t hesitate to try the examples in this section until you understand them! List comprehensions are based on the mathematical idea of set notation, so if you’ve ever taken a math class that dealt with set theory, list comprehensions may look familiar to you. Set notation describes how to build a set by specifying properties its members must satisfy. For instance, here’s a 2 basic example: {x ∈  : x = x } . This describes the set of all real numbers that are equal to their own square. ) A simpler example of set notation is {x : x > 0} .

Download PDF sample

Rated 4.57 of 5 – based on 27 votes