3 ms·
Not unlike Lisp Flavored Erlang, which is a Lisp atop Erlang's BEAM virtual machine and that compiles into pure Erlang.
by phoe-krk 9y ago
Not unlike Lisp Flavored Erlang, which is a Lisp atop Erlang's BEAM virtual machine and that compiles into pure Erlang.
- fasquoika 9y agoI thought it compiled to BEAM bytecode, is that wrong?
- s_kilk 9y ago(From memory, don't quote me on this), The BEAM bytecode is apparently not well documented, so the standard practice for compile-to-beam languages is to emit Erlang terms, then use the erlang toolchain to compile down to bytecode. I think that's how Elixir and LFE do it anyways. Someone correct me if I've got that wrong.
- fasquoika 9y agoIf I'm reading this[0] correctly, it looks like you're right. [0]: https://github.com/rvirding/lfe/blob/develop/src/lfe_comp.erl#L486 https://github.com/rvirding/lfe/blob/develop/src/lfe_comp.er...