You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's been a while since I've last worked on this but if memory serves right, gotos were used because there is a limit to how far a lua vm can do a jump: wasm2lua uses these goto trampolines to split very large jump instructions into multiple smaller gotos.
It is theoretically possible to work around this by rewriting the compiler (and I recall having different ideas on how to do this, like by wrapping each simple statement block into their own stateless functions)
Another use for gotos in wasm2lua is for setjmp emulation - I bet it's theoretically possible to figure something out without gotos but...
I'm glad that you find this silly project useful, however I am no longer insane enough to continue to work on this project (but you are more than welcome to do whatever you want, so long as the license permits).
It is very unfortunate world of warcraft uses Lua 5.1 which does not provide goto.
Although bit is provided, it does not provide all the functions that bitops provide which means they have to be emulated with lua apis itself.
BTW, how can I deal with wasi syscalls? should I implement those syscalls by myself?
The text was updated successfully, but these errors were encountered: