Reputation: 8408
What is Ericsson's implementation of Erlang and Erlang/OTP written and compiled in? Is is assembly, C or Erlang itself?
Update 1: Thanks to DrJokepu. If I understand correctly, Erlang source-to-VM compiler is written in Erlang itself. But the VM is written in C.
Update 2: Hynek-Pichi-Vychodil pointed out a lot of details.
Upvotes: 117
Views: 17043
Reputation: 21
We can know the history of Erlang and its toolchain from A Brief History of the BEAM Compiler (by Björn Gustavsson) And A History of Erlang (by Joe Armstrong) now.
Upvotes: 2
Reputation: 133
I can say that Erlang was initially written in C/C++ as I can't say that Java is written in java.... but It's framework and Some libraries. About Erlang, As Its is preferred programming language and suitable for Telecom system... in order to maintain swiftness (e.g: in chat-bots) I know that its compiler or PreProcessor is written in Erlang. But Other features of language are written in Low Level languages.
Upvotes: 0
Reputation: 121314
From the Erlang FAQ:
10.6 How did the first Erlang compiler get written?
(or: how was Erlang bootstrapped?) In Joe's words:
First I designed an abstract machine to execute Erlang. This was called the JAM machine; JAM = Joe's Abstract Machine.
Then I wrote a compiler from Erlang to JAM and an emulator to see if the machine worked. Both these were written in prolog.
At the same time Mike Williams wrote a C emulator for the JAM.
Then I rewrote the erlang-to-jam compiler in Erlang and used the prolog compiler to compile it. The resultant object code was run in the C emulator. Then we threw away prolog.
Upvotes: 98
Reputation: 26121
Erlang itself is written in Erlang. Sounds strange? Yes, because it is only partially true. OK look at it in more detail:
Upvotes: 155
Reputation: 10180
You can see a live and update statistics in ohloh site, this report generate from main erlang git repository.
Upvotes: 17