This book offers you an in-depth explanation of Erlang, a programming language ideal for any situation where concurrency
883 135 3MB
English Pages 676 Year 2009
Table of contents :
Content: Erlang Programming
Preface
Simon: Why Erlang?
Who Should Read This Book?
How to Read This Book
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
1. Introduction
The History of Erlang
Erlang's Characteristics
Concurrent Processes and Message Passing
Scalable, Safe, and Efficient Concurrency
Soft Real-Time Properties
Robustness
Distributed Computation
Integration and Openness
Erlang and Multicore
Case Studies
CouchDB
Comparing Erlang to C++
How Should I Use Erlang?
2. Basic Erlang
The Erlang Shell
Floats
Atoms. BooleansTuples
Lists
Atoms and Strings
Building and Processing Lists
List Functions and Operations
Term Comparison
Variables
Complex Data Structures
Pattern Matching
Functions
Modules
Module Directives
Exercises
B. Assigning through pattern matching
C. Recursive list definitions
D. Flow of execution through pattern matching
E. Extracting values in composite data types through pattern matching
Exercise 2-2: Modules and Functio.