ALL
A Peek Inside the Erlang Compiler
Erlang is a complex system, and I can’t do its inner workings justice in a short article, but I wanted to give some insight into what goes on when a module is compiled and loaded. As with most compilers, the first step is to convert the textual source to an abstract syntax tree, but that’s unremarkable. What is interesting is that the code goes through three major representations, and you can look at each of them.Erlang is unique among functional languages in its casual scope rules. You introduce variables as you go, without fanfare, and there’s no creeping indentation cau...
3,739 0 ERLANG PEEK ERLANG COMPILER