# Erlang now in Compiler Explorer

**URL:** <https://erlangforums.com/t/erlang-now-in-compiler-explorer/643>\
**Category:** Chat / Discussions\
**Tags:** community, adoption\
**Created:** [November 23, 2021, 1:38pm UTC](https://erlangforums.com/t/erlang-now-in-compiler-explorer/643 "2021-11-23T13:38:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinoski](https://erlangforums.com/user_avatar/erlangforums.com/vinoski/32/265_2.png) [@vinoski](https://erlangforums.com/u/vinoski)\
**Post date:** [November 23, 2021, 1:38pm UTC](https://erlangforums.com/t/erlang-now-in-compiler-explorer/643/1 "2021-11-23T13:38:03Z")

</div>

As of a few days ago, the [Compiler Explorer](https://godbolt.org) has started supporting Erlang. You can choose the Erlang language from the dropdown menu above the left-side editor panel, enter code into the editor, and assuming it’s correct the compiler will show you the generated code in the right-side panel or will show you errors if not. Compiler Explorer supports lots of languages, and is really handy for experimenting with language snippets and sharing code examples or bug examples with others via its Share button, so it’s nice to see Erlang now supported there too.

The Compiler Explorer git log shows that Timothy Moores and Patrick Quist contributed this, so hats off to them!

–steve

---

<div class="post-metadata">

**Author:** ![fadushin](https://erlangforums.com/user_avatar/erlangforums.com/fadushin/32/680_2.png) [@fadushin](https://erlangforums.com/u/fadushin)\
**Post date:** [November 23, 2021, 2:38pm UTC](https://erlangforums.com/t/erlang-now-in-compiler-explorer/643/2 "2021-11-23T14:38:34Z")

</div>

So long, `erlc -S`!

---

<div class="post-metadata">

**Author:** ![bjorng](https://erlangforums.com/user_avatar/erlangforums.com/bjorng/32/174_2.png) [@bjorng](https://erlangforums.com/u/bjorng)\
**Post date:** [November 24, 2021, 7:59am UTC](https://erlangforums.com/t/erlang-now-in-compiler-explorer/643/3 "2021-11-24T07:59:13Z")

</div>

I have found the Compiler Explorer to be very useful when implementing instructions for the JIT.

Nice that it is now available for Erlang. I think that it will come in handy when I want to see the BEAM code for older versions of Erlang/OTP that I currently don’t have installed on my computer.

> [@fadushin](#):
>
> So long, `erlc -S`!

Unfortunately, the formatting of the BEAM code by Compiler Explorer is not as nice as the output of `erlc -S`. So I submitted a pull request:

> <https://github.com/compiler-explorer/compiler-explorer/pull/3135>
>
> For Erlang, format the output in the same way as the 'S' option
> does. To achiev…e this, we use the \`beam\_listing\` module, which is
> undocumented but has been stable for many many years.

---

<div class="post-metadata">

**Author:** ![seriyps](https://erlangforums.com/user_avatar/erlangforums.com/seriyps/32/387_2.png) [@seriyps](https://erlangforums.com/u/seriyps)\
**Post date:** [November 24, 2021, 1:52pm UTC](https://erlangforums.com/t/erlang-now-in-compiler-explorer/643/4 "2021-11-24T13:52:22Z")

</div>

May I plug my “erlang compiler explorer” here?

URL: [http://tryerl.seriyps.ru/](http://tryerl.seriyps.ru/)  
Github: [GitHub - seriyps/eplaypen: Erlang web playground http://tryerl.seriyps.ru/](https://github.com/seriyps/eplaypen)

 ![image](https://erlangforums.com/uploads/default/original/2X/a/a8b2d6afca68afff5d3cb720556f1869f56e3390.png)

It actually supports much more versions of OTP and can show much more compiler stages intermediate formats:

 ![image](https://erlangforums.com/uploads/default/original/2X/0/0d48e60c7844087b5df11468dfddc5a2c37750c5.png)

The interface is not as nice though =)

---

<div class="post-metadata">

**Author:** ![vkatsuba](https://erlangforums.com/user_avatar/erlangforums.com/vkatsuba/32/314_2.png) [@vkatsuba](https://erlangforums.com/u/vkatsuba)\
**Post date:** [November 24, 2021, 2:02pm UTC](https://erlangforums.com/t/erlang-now-in-compiler-explorer/643/5 "2021-11-24T14:02:38Z")

</div>

> [@seriyps](#):
>
> May I plug my “erlang compiler explorer” here?

I seen this tool before. Amazing work! I think, it’s would be great to have a separate topic with description, motivation etc.

---

<div class="post-metadata">

**Author:** ![seriyps](https://erlangforums.com/user_avatar/erlangforums.com/seriyps/32/387_2.png) [@seriyps](https://erlangforums.com/u/seriyps)\
**Post date:** [November 24, 2021, 2:04pm UTC](https://erlangforums.com/t/erlang-now-in-compiler-explorer/643/6 "2021-11-24T14:04:24Z")

</div>

Yeah… I was planning to do a post, but never had time to actually do that.  
Also was thinking about some kind of proposal to integrate it with [erlang.org](http://erlang.org), but again, I did mostof active work on it years ago, so, now only add new OTP versions from time to time.

---

<div class="post-metadata">

**Author:** ![vkatsuba](https://erlangforums.com/user_avatar/erlangforums.com/vkatsuba/32/314_2.png) [@vkatsuba](https://erlangforums.com/u/vkatsuba)\
**Post date:** [November 24, 2021, 2:13pm UTC](https://erlangforums.com/t/erlang-now-in-compiler-explorer/643/7 "2021-11-24T14:13:22Z")

</div>

> [@seriyps](#):
>
> Also was thinking about some kind of proposal to integrate it with [erlang.org](http://erlang.org)

Actually this is also a good idea. I believe that this can be done pretty simple:  
In [GitHub - erlang/erlang-org: The erlang.org website](https://github.com/erlang/erlang-org) find place where the menu is placed and add button eg. `try Erlang`, when user will click in this button - will be show popup where user will be able to try it in `<iframe />`. It might be worth talking @garazdawi about it, because he did a great [bootstrap](https://getbootstrap.com) integration into documentation site and continue actively working on improvements etc. Or at least open a ticket to the [erlang-org](https://github.com/erlang/erlang-org/issues) with a proposal. But of course up to you 🙃.

---

<div class="post-metadata">

**Author:** ![vinoski](https://erlangforums.com/user_avatar/erlangforums.com/vinoski/32/265_2.png) [@vinoski](https://erlangforums.com/u/vinoski)\
**Post date:** [November 24, 2021, 2:21pm UTC](https://erlangforums.com/t/erlang-now-in-compiler-explorer/643/8 "2021-11-24T14:21:14Z")

</div>

> [@seriyps](#):
>
> It actually supports much more versions of OTP and can show much more compiler stages intermediate formats:

You should consider crafting a pull request to add this to Compiler Explorer. The Compiler Explorer code is pretty easy to work with.

–steve
