Chapter 2A Whirlwind Tour of Erlang

In this chapter, we’ll build our first concurrent program. We’ll make a file server. The file server has two concurrent processes; one process represents the server, and the other represents the client.

We’ll start with a small Erlang subset so we can show some broad principles without getting bogged down with the details. At a minimum we have to understand how to run code in the shell and compile modules. That’s all we need to know to get started.

The best way to learn Erlang is to type in the examples into a live Erlang system and see whether you can reproduce what’s in this book. To install Erlang, refer to http://joearms.github.com/installing.html. We try to keep the install instructions up-to-date. ...

Get Programming Erlang, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.