Neat! But please bear in mind that BEAM VM trusts the bytecode, so if your compiler emits buggy bytecode, it can crash the entire VM.
Re:A Peek Inside the Erlang Compiler (2012)
by macintux on Tuesday June 09, 2020 @08:53AM
(#23466192)
Nice. I added your codec-beam project to my Erlang resources gist: https://gist.github.com/macintux/6349828
[0]: https://8thlight.com/blog/kofi-gumbs/2017/05/02/core-erlang....
[1]: https://github.com/hkgumbs/codec-beam