Resources for Learning LFE
Learning LFE must be taken in three tracks: learning the syntax particular to a Lisp on the Erlang VM, with all its support for pattern matching, Erlang-style arities, etc.; learning the ins-and-outs of BEAM languages and OTP; and finally, more deeply exploring the Lisp heritage of LFE. This multi-pronged approach is the path to success.
LFE
Getting Started
- Quick Start with rebar3 - This will get you up and running with LFE, requiring only that you have a modern Erlang installed (version 21+) and
rebar3
. - The LFE Tutorial - The Erlang "Getting Started" translated into LFE!
More Details
- Casting SPELs in LFE - The famous "Casting SPELs in Lisp" translated into LFE, but taking things further than the original with state management via
defrecord
, creating a custom game server, and then dipping the toes into OTP with a conversion of the custom game server to agen_server
. - LFE Examples - For those that learn by watching and playing, the
./examples
directory in the LFE repo may be quite useful. - LFE on Rosetta Code - If those examples aren't enough for you, there are 99 others to choose from on Rosetta Code!
Next Step for LFE?
- Once you've learned the syntax and the underlying principles of the Erlang VM, you're going to want to actually use this beautiful Lisp! Be sure to check out our reference materials, how-tows, etc..
- The community will be an invaluable resource in your journey of learning, to be sure to stop in whatever medium makes you happy, say "hi" and ask us lots of questions!
Erlang
There are some phenomenal materials available for a self-paced Erlang/OTP education. Some of the classics are given below. For those with bigger budgets, remember that formal training is also an option! (In fact, there are not only classes offered for Erlang, but also LFE ...)
The Language & OTP
- Making reliable distributed systems in the presence of sodware errors - Joe Armstrong's PhD disertation
- A History of Erlang - Joe Armstrong's paper on the history of Erlang
- The Erlang Rationale - Robert Virding's insights on the "why" of Erlang
- Learn You Some Erlang for Great Good! - Probably one of the best (and definitely the most fun) books available for learning Erlang. (Also available in print.)
- Designing for Scalability with Erlang/OTP - The thinking person's OTP book: where to go when you really want to understand OTP.
- Erlang and OTP in Action - This book is another fantastic resource, building up an OTP application piece at a time as you move through the chapters.
In Production
Once you've learned how to write Erlang/LFE/OTP applications, is time to get them into production, and you'll find the following invaluable references for that:
- Adopting Erlang - "Adopting Erlang is an ongoing effort to gather all the resources that will help you use Erlang in a business. The booksite is divided in three sections focusing particularly on Erlang/OTP’s higher level concepts in the current open source ecosystem, how to use it in production (while setting up a pipeline for continuous development and delivery), and how to build a team when you’re starting from scratch."
- 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."
Lisp
In the event that you want to dive deeper into the world of Lisp itself, there are several excellent texts to explore.
Internals
- Lisp in Small Pieces - "This is a comprehensive account of the semantics and the implementation of the whole Lisp family of languages, namely Lisp, Scheme and related dialects. It describes 11 interpreters and 2 compilers, including very recent techniques of interpretation and compilation."
- Let Over Lambda—50 Years of Lisp - "Starting with the fundamentals, it describes the most advanced features of the most advanced language: COMMON LISP. The point of this book is to expose you to ideas that you might otherwise never be exposed to. This book is about macros, that is programs that write programs. Macros are what make lisp the greatest programming language in the world. When used properly, macros enable amazing feats of abstraction, programmer productivity, and code efficiency and security that are unheard of elsewhere. Macros let you do things you simply cannot do in other languages."
Reference
- Common Lisp HyperSpec - This is the definitive reference manual for the Common Lisp standard. The LFE core contributors have made nearly constant reference (and deference) to this document in the course of implementing features in LFE.
- The Moonual - This is a bit of computing history that not many are aware of: the manual for MACLISP written by David Moon. This is of interest to LFE developers due to the influence it has had upon the design and development of LFE. LFE actually derives most of it Lisp nature due to the experiences Robert Virding had as a physics PhD student who programmed in MACLISP on university machines. Even since then, we have constantly referenced the Moonual, almost as much as the Common Lisp HyperSpec (and in some cases, more!). It is of particular interest that the MAC project at MIT not only gave birth to MACLISP, but also MACSYMA (originally written in MACLISP, since ported to Common Lisp) which significantly influenced the development of Mathematica.