I've unwrapped the fennel repl to work incrementally without yielding for use with lovejs, which relies on PUC Lua 5.1.
This fork forgoes the built in granulating offered by fennel and should only be used in cases where you cannot yield across cboundaries, like PUC Lua 5.1.
We really need a PUC Lua 5.1.6 that brings in state recovery yielding, and "fixes" the standard library.
https://codeberg.org/alexjgriffith/fennel-step-repl
[#]fennel
=> More informations about this toot | More toots from Alexjgriffith@mastodon.gamedev.place
@Alexjgriffith there's a way to turn off JIT in luajit, right? is there a reason that's not viable in the browser?
=> More informations about this toot | More toots from technomancy@hey.hagelb.org
@technomancy Unfortunately the core of the luajit virtual machine is written in assembly, which would have to be manually rewritten in wasm or a language that compiles to wasm.
I really wish that either I am wrong or there is a c based reference standard for luajit out there somewhere that could be compiled to any platform.
=> More informations about this toot | More toots from Alexjgriffith@mastodon.gamedev.place
@Alexjgriffith huh! weird that they were able to port it to ARM but not wasm
=> More informations about this toot | More toots from technomancy@hey.hagelb.org
@technomancy I think that was a manual port funded by Cisco. They also have ports for MIPS and PPC.
The core is "only" ~5K lines of asm
https://github.com/LuaJIT/LuaJIT/blob/v2.1/src/vm_arm.dasc
=> More informations about this toot | More toots from Alexjgriffith@mastodon.gamedev.place
@Alexjgriffith only 5kloc! let's get a gofundme started
=> More informations about this toot | More toots from technomancy@hey.hagelb.org This content has been proxied by September (3851b).Proxy Information
text/gemini