Buying Options
Erlang Programming
Print $49.99
Add to Cart
Print+Ebook $54.99
Add to Cart
Ebook $39.99
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £38.50
Add to Cart
What is this?
Description
This book offers you an in-depth explanation of Erlang, a programming language ideal for any situation where concurrency, fault-tolerance, and fast response is essential. You'll learn how to write complex concurrent programs in this language, regardless of your programming background or experience. Erlang Programming focuses on the language's syntax and semantics, and explains pattern matching, proper lists, recursion, debugging, networking, and concurrency, with exercises at the end of each chapter.
Full Description
Table of Contents
  1. Chapter 1 Introduction

    1. Why Should I Use Erlang?

    2. The History of Erlang

    3. Erlang’s Characteristics

    4. Erlang and Multicore

    5. Case Studies

    6. How Should I Use Erlang?

  2. Chapter 2 Basic Erlang

    1. Integers

    2. The Erlang Shell

    3. Floats

    4. Atoms

    5. Booleans

    6. Tuples

    7. Lists

    8. Term Comparison

    9. Variables

    10. Complex Data Structures

    11. Pattern Matching

    12. Functions

    13. Modules

    14. Exercises

  3. Chapter 3 Sequential Erlang

    1. Conditional Evaluations

    2. Guards

    3. Built-in Functions

    4. Recursion

    5. Runtime Errors

    6. Handling Errors

    7. Library Modules

    8. The Debugger

    9. Exercises

  4. Chapter 4 Concurrent Programming

    1. Creating Processes

    2. Message Passing

    3. Receiving Messages

    4. Registered Processes

    5. Timeouts

    6. Benchmarking

    7. Process Skeletons

    8. Tail Recursion and Memory Leaks

    9. A Case Study on Concurrency-Oriented Programming

    10. Race Conditions, Deadlocks, and Process Starvation

    11. The Process Manager

    12. Exercises

  5. Chapter 5 Process Design Patterns

    1. Client/Server Models

    2. A Process Pattern Example

    3. Finite State Machines

    4. Event Managers and Handlers

    5. Exercises

  6. Chapter 6 Process Error Handling

    1. Process Links and Exit Signals

    2. Robust Systems

    3. Exercises

  7. Chapter 7 Records and Macros

    1. Records

    2. Macros

    3. Exercises

  8. Chapter 8 Software Upgrade

    1. Upgrading Modules

    2. Behind the Scenes

    3. Upgrading Processes

    4. The .erlang File

    5. Exercise

  9. Chapter 9 More Data Types and High-Level Constructs

    1. Functional Programming for Real

    2. Funs and Higher-Order Functions

    3. List Comprehensions

    4. Binaries and Serialization

    5. References

    6. Exercises

  10. Chapter 10 ETS and Dets Tables

    1. ETS Tables

    2. Dets Tables

    3. A Mobile Subscriber Database Example

    4. Exercises

  11. Chapter 11 Distributed Programming in Erlang

    1. Distributed Systems in Erlang

    2. Distributed Computing in Erlang: The Basics

    3. The epmd Process

    4. Exercises

  12. Chapter 12 OTP Behaviors

    1. Introduction to OTP Behaviors

    2. Generic Servers

    3. Supervisors

    4. Applications

    5. Release Handling

    6. Other Behaviors and Further Reading

    7. Exercises

  13. Chapter 13 Introducing Mnesia

    1. When to Use Mnesia

    2. Configuring Mnesia

    3. Transactions

    4. Partitioned Networks

    5. Further Reading

    6. Exercises

  14. Chapter 14 GUI Programming with wxErlang

    1. wxWidgets

    2. wxErlang: An Erlang Binding for wxWidgets

    3. A First Example: MicroBlog

    4. The MiniBlog Example

    5. Obtaining and Running wxErlang

    6. Exercises

  15. Chapter 15 Socket Programming

    1. User Datagram Protocol

    2. Transmission Control Protocol

    3. The inet Module

    4. Further Reading

    5. Exercises

  16. Chapter 16 Interfacing Erlang with Other Programming Languages

    1. An Overview of Interworking

    2. Interworking with Java

    3. C Nodes

    4. Erlang from the Unix Shell: erl_call

    5. Port Programs

    6. Library Support for Communication

    7. Linked-in Drivers and the FFI

    8. Exercises

  17. Chapter 17 Trace BIFs, the dbg Tracer, and Match Specifications

    1. Introduction

    2. The Trace BIFs

    3. Tracing Calls with the trace_pattern BIF

    4. The dbg Tracer

    5. Match Specifications: The fun Syntax

    6. Match Specifications: The Nuts and Bolts

    7. Further Reading

    8. Exercises

  18. Chapter 18 Types and Documentation

    1. Types in Erlang

    2. TypEr: Success Types and Type Inference

    3. Documentation with EDoc

    4. Exercises

  19. Chapter 19 EUnit and Test-Driven Development

    1. Test-Driven Development

    2. EUnit

    3. The EUnit Infrastructure

    4. Testing State-Based Systems

    5. Testing Concurrent Programs in Erlang

    6. Exercises

  20. Chapter 20 Style and Efficiency

    1. Applications and Modules

    2. Processes and Concurrency

    3. Stylistic Conventions

    4. Coding Strategies

    5. Efficiency

    6. And Finally...

  1. Appendix Using Erlang

    1. Getting Started with Erlang

    2. Tools for Erlang

    3. Where to Learn More

  2. Colophon

View Full Table of Contents
Product Details
Title:
Erlang Programming
By:
Francesco Cesarini, Simon Thompson
Publisher:
O'Reilly Media
Formats:
  • Print
  • Ebook
  • Safari Books Online
Print Release:
June 2009
Ebook Release:
June 2009
Pages:
496
Print ISBN:
978-0-596-51818-9
| ISBN 10:
0-596-51818-8
Ebook ISBN:
978-0-596-80453-4
| ISBN 10:
0-596-80453-9
Customer Reviews
About the Authors
  1. Francesco Cesarini

    Francesco Cesarini is the founder and CTO of Erlang Training and Consulting . Having used Erlang on a daily basis since 1995, he started his career as an intern at Ericsson's computer science lab, the birth place of Erlang. He spent four years at Ericsson working with flagship Erlang projects, including the R1 release of the OTP middleware. He has taught Erlang/OTP to all parties involved in the software cycle, including developers, support engineers, testers as well as project and technical managers. In 2003, he also started teaching undergraduate students at the IT University of Gothenburg.

    Soon after Erlang was released as Open Source, he founded Erlang Training and Consulting. With offices in the UK, Sweden, Poland (and soon the US), they have become the world leaders an Erlang based consulting, contracting, support, training and systems development. Their client base is spread on five continents and ranges from small start-ups to blue chip companies. In his role as CTO, is currently leading the research, development and consulting teams.

    He is active in the Erlang community not only through regularly talks, seminars and tutorials at conferences worldwide, but also through his involvement in international research projects. He organises local Erlang user groups and with the help of his colleagues, runs the trapexit.org Erlang community website.

    View Francesco Cesarini's full profile page.

  2. Simon Thompson

    Simon Thompson is Professor of Logic and Computation in the Computing Laboratory of the University of Kent, where he has taught computing at undergraduate and postgraduate levels for the past twenty five years, and where he has been department head for the last six.

    His research work has centered on functional programming: program verification, type systems, and most recently development of software tools for functional programming languages. His team has built the HaRe tool for refactoring Haskell programs, and is currently developing Wrangler to do the same for Erlang. His research has been funded by various agencies including EPSRC and the European Framework programme. His training is as a mathematician: he has an MA in Mathematics from Cambridge and a D.Phil. in mathematical logic from Oxford.

    He has written three books in his field of interest; Type Theory and Functional Programming published in 1991; Miranda: The Craft of Functional Programming (1995) and Haskell: The Craft of Functional Programming (2nd ed. 1999). These are all published by Addison Wesley.

    View Simon Thompson's full profile page.

Colophon

The animal on the cover of Erlang Programming is a brush-tailed rat kangaroo (Bettongia penicillata). The brush-tailed rat kangaroo is a small mammal found in western and southern Australia. It is a cross between a rat and a small wallaby, and although some of its features are reminiscent of a rat, it is not a rodent and is instead classified as a marsupial. In south Australia, they are found in semi-arid scrublands and grasslands; in western Australia, they prefer eucalyptus forests containing a vegetative layer of tussock grass, low woody scrub, and occasional bare patches of ground. They once inhabited more than 60% of the Australian mainland, but now they inhabit less than 1%.

Brush-tailed rat kangaroos have an unusual mammalian diet that consists of bulbs, tubers, seeds, insects, resins, and underground fungi; they do not drink water or eat green plants. Although fungi are not considered a good food source for mammals in general, they provide the nutrients necessary for the brush-tailed rat-kangaroo's health.

The kangaroos' coats are yellowish-gray in color, their feet are pale brown and have hairs that bristle, and their long tails have a prominent black crest. Their tails are also useful: brush-tailed rat kangaroos are able to curl their tails to carry bundles of material to build their nests. They are relatively slow-moving creatures, but are able to hop away quickly when disturbed.

Brush-tailed rat kangaroos are extremely nocturnal. During the day they rest in well-constructed, hidden nests made up of grass and shredded bark. They appear to be solitary except when ready to mate.

Mating occurs year round, and females give birth to one young after a gestation period of 21 days. The newborn remains in the mother's pouch for about 98 days, and then stays in a nest until a new infant is born. As with many other kangaroos, the brushtailed rat kangaroo mates shortly after giving birth and can keep embryos in a state of dormancy until they are needed.

The cover image is from Cassell's Natural History. The cover font is Adobe ITC Garamond. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSansMonoCondensed.

  • Book cover of Erlang Programming