Book description
This book is an in-depth introduction to Erlang, a programming language ideal for any situation where concurrency, fault tolerance, and fast response is essential. Erlang is gaining widespread adoption with the advent of multi-core processors and their new scalable approach to concurrency. With this guide you'll learn how to write complex concurrent programs in Erlang, regardless of your programming background or experience.
Written by leaders of the international Erlang community -- and based on their training material -- Erlang Programming focuses on the language's syntax and semantics, and explains pattern matching, proper lists, recursion, debugging, networking, and concurrency.
This book helps you:
- Understand the strengths of Erlang and why its designers included specific features
- Learn the concepts behind concurrency and Erlang's way of handling it
- Write efficient Erlang programs while keeping code neat and readable
- Discover how Erlang fills the requirements for distributed systems
- Add simple graphical user interfaces with little effort
- Learn Erlang's tracing mechanisms for debugging concurrent and distributed systems
- Use the built-in Mnesia database and other table storage features
Erlang Programming provides exercises at the end of each chapter and simple examples throughout the book.
Publisher resources
Table of contents
- Foreword
- Preface
- 1. Introduction
- 2. Basic Erlang
-
3. Sequential Erlang
- Conditional Evaluations
- Guards
- Built-in Functions
- Recursion
- Runtime Errors
- Handling Errors
- Library Modules
- The Debugger
-
Exercises
- Exercise 3-1: Evaluating Expressions
- Exercise 3-2: Creating Lists
- Exercise 3-3: Side Effects
- Exercise 3-4: Database Handling Using Lists
- Exercise 3-5: Manipulating Lists
- Exercise 3-6: Sorting Lists
- Exercise 3-7: Using Library Modules
- Exercise 3-8: Evaluating and Compiling Expressions
- Exercise 3-9: Indexing
- Exercise 3-10: Text Processing
- 4. Concurrent Programming
- 5. Process Design Patterns
- 6. Process Error Handling
-
7. Records and Macros
- Records
- Macros
-
Exercises
- Exercise 7-1: Extending Records
- Exercise 7-2: Record Guards
- Exercise 7-3: The db.erl Exercise Revisited
- Exercise 7-4: Records and Shapes
- Exercise 7-5: Binary Tree Records
- Exercise 7-6: Parameterized Macros
- Exercise 7-7: Counting Calls
- Exercise 7-8: Enumerated Types
- Exercise 7-9: Debugging the db.erl Exercise
- 8. Software Upgrade
- 9. More Data Types and High-Level Constructs
- 10. ETS and Dets Tables
- 11. Distributed Programming in Erlang
- 12. OTP Behaviors
- 13. Introducing Mnesia
- 14. GUI Programming with wxErlang
- 15. Socket Programming
- 16. Interfacing Erlang with Other Programming Languages
- 17. Trace BIFs, the dbg Tracer, and Match Specifications
- 18. Types and Documentation
- 19. EUnit and Test-Driven Development
- 20. Style and Efficiency
- A. Using Erlang
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: Erlang Programming
- Author(s):
- Release date: June 2009
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596518189
You might also like
book
Programming Erlang, 2nd Edition
A multi-user game, web site, cloud application, or networked database can have thousands of users all …
book
Introducing Erlang, 2nd Edition
If you’re new to Erlang, its functional style can seem difficult, but with help from this …
book
Introducing Erlang
If you’re new to Erlang, its functional style can seem difficult, but with help from this …
book
Erlang and OTP in Action
Erlang and OTP in Action teaches you the concepts of concurrent programming and the use of …