By Fred Hebert

Erlang is the language of selection for programmers who are looking to write powerful, 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: research You a few Erlang for nice 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 sort process (or lack thereof!), and easy practical programming ideas. as soon as you've wrapped your head round the basic stuff, you'll take on the true meat-and-potatoes of the language: concurrency, allotted computing, sizzling code loading, and the entire different darkish magic that makes Erlang one of these sizzling subject between today's savvy developers.

As you dive into Erlang's useful fable international, you'll examine about:
- trying 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 info utilizing Mnesia and ETS
- community programming with TCP, UDP, and the inet module
- the straightforward joys and power pitfalls of writing allotted, concurrent applications

Packed with lighthearted illustrations and simply the correct mix of offbeat and functional instance courses, examine You a few Erlang for nice strong! is the precise access aspect into the sometimes-crazy, always-thrilling global of Erlang.

Show description

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

Similar programming books

Programming iOS 8: Dive Deep into Views, View Controllers, and Frameworks

Begin development apps for iOS eight with Apple's rapid programming language. If you're grounded within the fundamentals of Xcode and the Cocoa framework, this booklet presents a established rationalization of all crucial real-world iOS app elements. via deep exploration and copious code examples, you'll methods to create perspectives, control view controllers, and use iOS frameworks for including gains corresponding to audio and video, entry to person calendars and photographs, and monitoring the device's position.

Learning Unity Android Game Development

Cohesion five is a revolution in constructing nice video games for Android that offers a very good integration platform that works seamlessly with solidarity five, this means that video games might be constructed swifter and more uncomplicated than ever before.

Packed with loads of examples, this ebook starts off by way of aiding you to appreciate the entire nice positive aspects that cohesion five and Android need to provide. you'll then create nice video games like Tic-Tac-Toe and the Monkey Ball online game and likewise discover ways to improve them. you are going to then extend the game's setting with lighting fixtures and a skybox and discover ways to create enemies in a tank conflict video game. you are going to then discover the contact and tilt controls with the production of a Monkey Ball clone.

With the game of a video game just like offended Birds, you'll delve into configuring physics and suggestions for a second online game event. ultimately, you'll get an entire adventure through studying the optimization options had to hold your video games working easily.

Functional Programming Languages and Computer Architecture: 5th ACM Conference Cambridge, MA, USA, August 26–30, 1991 Proceedings

This publication deals a finished view of the simplest and the newest paintings in useful programming. it's the court cases of an enormous foreign convention and comprises 30 papers chosen from 126 submitted. a couple of topics emerge. One is a becoming curiosity in varieties: strong kind platforms or variety checkers helping overloading, coercion, dynamic varieties, and incremental inference; linear varieties to optimize garage, and polymorphic varieties to optimize semantic research.

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

Example text

H">> 19> <> = <<72,0,0,0>>. <<72,0,0,0>> 20> Y. 72 You can see that there is more than one way to read, store, and interpret binary data. This is a bit confusing, but still much simpler than using the usual tools given by most languages. Bitwise Binary Operations The standard binary operations (shifting bits to left and right, and binary and, or, xor, and not) also exist in Erlang. Just use the operators bsl (bit shift left), bsr (bit shift right), band, bor, bxor, and bnot.

These reserved words are as follows: after, and, andalso, band, begin, bnot, bor, bsl, bsr, bxor, case, catch, cond, div, end, fun, if, let, not, of, or, orelse, query, receive, rem, try, when, and xor. Boolean Algebra and Comparison Operators We would be in pretty deep trouble if we couldn’t tell the difference between what’s small and big, or what’s true and false. Like any other language, Erlang has ways to let you use Boolean operations and to compare items. Boolean algebra is dirt simple: George Boole 1> true and false.

On line 4, we tried to unpack four values from the binary content. It throws an exception, because we have more than 4 segments—in fact, we have 12. So we tell Erlang that each variable on the left side will hold 24 bits of data using Pix1:24, Pix2:24, and so on. We can then take the first pixel and unpack it further into single color values: 6> <> = <>. <<213,45,132>> 7> R. 213 24 Chapter 1 “Yeah, that’s dandy. But what if I only want the first color from the start? ” Don’t worry—Erlang introduces more syntactic sugar and pattern matching to help you out: 8> <> = Pixels.

Download PDF sample

Rated 4.24 of 5 – based on 17 votes