Hacker News new | ask | show | jobs
by PopeOfNope 3953 days ago
I'm curious, why not LuaJIT? It's small and fast and when you need it to be faster, it has excellent C FFI and the ability to add inline assembly[0].

[0]: https://gist.github.com/lukego/d15f3a65bd316ea2c2b6

1 comments

We needed control over memory layout and some path to running in the browser. I considered writing the data-structures in C and the rest in Lua but it would require more manual memory management than Rust and there is no clear path to compiling mixed Lua/C projects into Javascript.
That's a good reason. :)