# From Ruby to Elixir: Elixir does not compile to Erlang

**URL:** <https://forum.devtalk.com/t/from-ruby-to-elixir-elixir-does-not-compile-to-erlang/188166>\
**Category:** PragProg Customers\
**Tags:** book-from-ruby-to-elixir, errata\
**Created:** [19 February 2025 19:20 UTC](https://forum.devtalk.com/t/from-ruby-to-elixir-elixir-does-not-compile-to-erlang/188166 "2025-02-19T19:20:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sb8244](https://forum.devtalk.com/user_avatar/forum.devtalk.com/sb8244/32/209_2.png) [@sb8244](https://forum.devtalk.com/u/sb8244)\
**Post date:** [19 February 2025 19:47 UTC](https://forum.devtalk.com/t/from-ruby-to-elixir-elixir-does-not-compile-to-erlang/188166/2 "2025-02-19T19:47:47Z")

</div>

It is fair to call this out. It’s sort of a complex part of the language—and I think core team members would probably phrase it differently than I have in the book. It’s not a clear cut thing to me and it has actively shifted over the years.

The intent of this is that (at least to my knowledge) Elixir compiles into intermediate formats along the way to becoming BEAM bytecode. (I use compile here because Elixir compiles things like macros in a more advanced way than Erlang does and the format it goes into is an AST instead of Erlang source code.)

The purpose of the paragraph is to show that there’s a deep connectivity between Erlang and Elixir—such that Elixir is built on top of Erlang and not simply compatible with it. It becomes Erlang terms on its way to becoming bytecode.

---

_[View the full topic](https://forum.devtalk.com/t/from-ruby-to-elixir-elixir-does-not-compile-to-erlang/188166)._
