Erlang is a general-purpose, concurrent, declarative, functional programming language and runtime environment developed by Ericsson, a Swedish multinational provider of communications technology and services. Erlang is dynamically typed and has a pattern matching syntax. The language solves difficult problems inherent in parallel, concurrent environments. It uses sets of parallel supervised processes, not a single sequential process as found in most programming languages.
Erlang was created in 1986 at the Ellemtel Telecommunication Systems Laboratories for telecommunication systems. The objective was to build a simple and efficient programming language resilient large-scale concurrent industrial applications.
Besides telecommunication systems and applications and other large industrial real-time systems, Erlang is particularly suitable for servers for internet applications, e-commerce, and networked database applications. The versatility of the language is, in part, due to its extensive collection of libraries.
The language is released under an open source license, initially the Erlang Public License, now supplanted by the Apache License 2.0.
1. Erlang Handbook by Bjarne Däcker, Robert Virding
The Erlang Handbook is a concise summary of the language features and the runtime system. Readers don’t need to wade through a large body of text; the book is only 46 pages. A good introduction to the world of Erlang.
It’s aimed at people with some programming experience, serving as a quick introduction to the Erlang domain.
The book was originally written by Bjarne Däcker and subsequently revised by Robert Virding.
The book focuses on the following areas:
- Structure of an Erlang program – offers a brief introduction to module syntax, module attributes, comments, character set, and reserved words.
- Data types – unary data types, compound data types, escape sequences, and type conversions.
- Pattern matching – variables and pattern matching.
- Functions – function definition, function calls, expressions including Boolean expressions, compound expressions, guard sequences, tail recursion, funs, and built-in functions.
- Processes – examines process creation, registered processes, process communication, process termination, monitors, process priorities, and process dictionary.
- Error handling – deals with error handling within a process. Such errors are known as exceptions.
- Distributed Erlang – looks at nodes, node connections, hidden nodes, cookies, distribution built-in functions, distribution command line flags, and distribution modules.
- Ports and Port Drivers.
- Code loading.
- Macros.
This text is made available under a Creative Commons Attribution-ShareAlike 3.0 License. The handbook is typeset using LaTeX.
2. Études for Erlang by J. David Eisenberg
Études for Erlang provides descriptions of programs that you can write in Erlang.
The programs are typically short, and each one is designed as practice material for a particular Erlang programming concept.
These programs have not been designed to be of considerable difficulty, though they may ask the reader to stretch a bit beyond the immediate material and examples that are found in the book Introducing Erlang.
Example programs cover:
- Functions and Modules.
- Atoms, Tuples and Pattern Matching.
- Logic and Recursion.
- Strings.
- Lists.
- Higher Order Functions and List Comprehensions.
- Processes.
- Handling Errors.
- Storing Structured Data.
- Getting Started with OTP.
- Solutions.
This book is released under an open source license.
3. Stuff Goes Bad: Erlang in Anger
This book intends to be a little guide about how to be the Erlang medic in a time of war.
It is first and foremost a collection of tips and tricks to help understand where failures come from, and a dictionary of different code snippets and practices that helped developers debug production systems that were built in Erlang.
The first three chapters explore writing applications:
- How to Dive into a Code Base.
- Building Open Source Erlang Software.
- Planning for Overload.
The next three chapters focus on diagnosing applications:
- Connecting to Remote Nodes.
- Runtime Metrics.
- Reading Crash Dumps.
- Memory Leaks.
- CPU and Scheduler Hogs.
- Tracing.
The book is published under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Next page: Page 2 – Learn You Some Erlang for great good and more books
Pages in this article:
Page 1 – Erlang Handbook and more books
Page 2 – Learn You Some Erlang for great good and more books
Page 3 – Erlang/OTP System Documentation and more books
All books in this series:
Free Programming Books | |
---|---|
Java | General-purpose, concurrent, class-based, object-oriented, high-level language |
C | General-purpose, procedural, portable, high-level language |
Python | General-purpose, structured, powerful language |
C++ | General-purpose, portable, free-form, multi-paradigm language |
C# | Combines the power and flexibility of C++ with the simplicity of Visual Basic |
JavaScript | Interpreted, prototype-based, scripting language |
PHP | PHP has been at the helm of the web for many years |
HTML | HyperText Markup Language |
SQL | Access and manipulate data held in a relational database management system |
Ruby | General purpose, scripting, structured, flexible, fully object-oriented language |
Assembly | As close to writing machine code without writing in pure hexadecimal |
Swift | Powerful and intuitive general-purpose programming language |
Groovy | Powerful, optionally typed and dynamic language |
Go | Compiled, statically typed programming language |
Pascal | Imperative and procedural language designed in the late 1960s |
Perl | High-level, general-purpose, interpreted, scripting, dynamic language |
R | De facto standard among statisticians and data analysts |
COBOL | Common Business-Oriented Language |
Scala | Modern, object-functional, multi-paradigm, Java-based language |
Fortran | The first high-level language, using the first compiler |
Scratch | Visual programming language designed for 8-16 year-old children |
Lua | Designed as an embeddable scripting language |
Logo | Dialect of Lisp that features interactivity, modularity, extensibility |
Rust | Ideal for systems, embedded, and other performance critical code |
Lisp | Unique features - excellent to study programming constructs |
Ada | ALGOL-like programming language, extended from Pascal and other languages |
Haskell | Standardized, general-purpose, polymorphically, statically typed language |
Scheme | A general-purpose, functional language descended from Lisp and Algol |
Prolog | A general purpose, declarative, logic programming language |
Forth | Imperative stack-based programming language |
Clojure | Dialect of the Lisp programming language |
Julia | High-level, high-performance language for technical computing |
Awk | Versatile language designed for pattern scanning and processing language |
CoffeeScript | Transcompiles into JavaScript inspired by Ruby, Python and Haskell |
BASIC | Beginner’s All-purpose Symbolic Instruction Code |
Erlang | General-purpose, concurrent, declarative, functional language |
VimL | Powerful scripting language of the Vim editor |
OCaml | The main implementation of the Caml language |
ECMAScript | Best known as the language embedded in web browsers |
Bash | Shell and command language; popular both as a shell and a scripting language |
LaTeX | Professional document preparation system and document markup language |
TeX | Markup and programming language - create professional quality typeset text |
Arduino | Inexpensive, flexible, open source microcontroller platform |
TypeScript | Strict syntactical superset of JavaScript adding optional static typing |
Elixir | Relatively new functional language running on the Erlang virtual machine |
F# | Uses functional, imperative, and object-oriented programming methods |
Tcl | Dynamic language based on concepts of Lisp, C, and Unix shells |
Factor | Dynamic stack-based programming language |
Eiffel | Object-oriented language designed by Bertrand Meyer |
Agda | Dependently typed functional language based on intuitionistic Type Theory |
Icon | Wide variety of features for processing and presenting symbolic data |
XML | Rules for defining semantic tags describing structure ad meaning |
Vala | Object-oriented language, syntactically similar to C# |
Standard ML | General-purpose functional language characterized as "Lisp with types" |
D | General-purpose systems programming language with a C-like syntax |
Dart | Client-optimized language for fast apps on multiple platforms |
Markdown | Plain text formatting syntax designed to be easy-to-read and easy-to-write |
Kotlin | More modern version of Java |
Objective-C | Object-oriented language that adds Smalltalk-style messaging to C |
PureScript | Small strongly, statically typed language compiling to JavaScript |
ClojureScript | Compiler for Clojure that targets JavaScript |
VHDL | Hardware description language used in electronic design automation |