3 ms·
Dynasm depends on Lua for pre-processing into pure C. I guess you could write an Erlang version? There's a Ruby meta-assembler in Safari JavaScriptCore!
by jashmatthews 6y ago
Dynasm depends on Lua for pre-processing into pure C. I guess you could write an Erlang version? There's a Ruby meta-assembler in Safari JavaScriptCore!
- metroholografix 6y agoDynasm can be compiled with minilua.c (a single file), which can simply be embedded into the Erlang build. https://corsix.github.io/dynasm-doc/tutorial.html https://corsix.github.io/dynasm-doc/tutorial.html
- h0l0cube 6y ago"We also considered using dynasm, but found the tooling that comes with asmjit to be better." https://github.com/erlang/otp/pull/2745#issuecomment-691482132 https://github.com/erlang/otp/pull/2745#issuecomment-6914821...
- patrec 6y agoAlready exists, written by none other than Virding himself: https://github.com/rvirding/luerl https://github.com/rvirding/luerl