News for hackers. Stuff that matters.
Re:Lua VM running in a WASM environment by sitkack on Saturday March 18, 2017 @03:50PM (#13903162)
I had a project that was doing some WebGL stuff using Lua, I found the Emscripten compiled VM to be at least 2x faster than the Moonshine. Compatibility was great, I seem to recall a lack of direct access to the underlying TypedArray. It needed something akin to a table that was directly mapped to raw memory.
Re:Lua VM running in a WASM environment by merlish on Sunday March 19, 2017 @08:39AM (#13906733)
That's very good to know! My current project is pretty insensitive to performance, but that's definitely useful info for the future.
Re:Lua VM running in a WASM environment by sitkack on Sunday March 19, 2017 @02:55PM (#13908912)
It is a little extra upfront work, but I found it valuable to support a diversity of Lua VMs in Javascript because little impedance mismatches can really derail a project. Being able to switch from one to the other can isolate bugs, compare perf, memory footprint, or different interop schemes. There is literally no way to know at the beginning of a project whether any one runtime will be sufficient.