News for hackers. Stuff that matters.
Re:Lua VM running in a WASM environment by sillysaurus3 on Saturday March 18, 2017 @01:34AM (#13900058)
I'm running into an integer overflow error. Try this as input: https://gist.github.com/anonymous/f00581ecf4dba42501c9c56991...

Is there a way to debug it?

It should print the following string: "print(1 + 2)"

This is very cool.

Re:Lua VM running in a WASM environment by hisham_hm on Saturday March 18, 2017 @03:04AM (#13900263)
A Lisp running on top of Lua on top of WASM? :)
Re:Lua VM running in a WASM environment by sillysaurus3 on Saturday March 18, 2017 @03:11AM (#13900279)
Yup! I couldn't resist. https://github.com/sctb/lumen

I think there's some bug in indexing into Lua tables. print(str({1, 2})) should print "(1 2)", for example, but it triggers an integer overflow error.

It's actually capable of compiling to both Lua and JS, so I was going to show off a Lisp running on top of Lua on top of WASM which generates JavaScript, completing the circle of life.