Hacker News new | ask | show | jobs
by nox_ 4359 days ago
> - Elixir compiles directly to Erlang byte code

No, it compiles to Erlang. Which is then compiled by the Erlang compiler.

1 comments

I guess I'm misinformed on this. The output of compiling Elixir files are .beam files, not .erl files. Maybe the Elixir compiler compiles to Erlang along the way?
Elixir's compiler emits Erlang forms, and then relies on OTP's Erlang's compiler. It is not a direct process.