3 ms·
I've been going with Lua for writing raw webassembly Assembler setup: https://github.com/serprex/luwa/blob/master/rt/make.lua https://github.com/serprex/luwa/b
by __s 8y ago
I've been going with Lua for writing raw webassembly
Assembler setup: https://github.com/serprex/luwa/blob/master/rt/make.lua https://github.com/serprex/luwa/blob/master/rt/make.lua
Resulting code for a gc looks like this: https://github.com/serprex/luwa/blob/master/rt/gc.lua https://github.com/serprex/luwa/blob/master/rt/gc.lua
& it leaves the full Lua language at my disposal for metaproramming. At the end of a day a human usable assembler needs to be a macro assembler
It'd be neat to have a JS macroassembler, could then have the host browser runtime compile wasm modules dynamically
- daurnimator 8y ago> It'd be neat to have a JS macroassembler, could then have the host browser runtime compile wasm modules dynamically Use fengari (https://fengari.io/ https://fengari.io/) to run your lua assembler?
- anonytrary 8y agoLua is fantastic.
- jnbiche 8y ago> Resulting code for a gc looks like this: https://github.com/serprex/luwa/blob/master/rt/gc.lua https://github.com/serprex/luwa/blob/master/rt/gc.lua Nice! That's a compact gc, perfect for browsers.