3 ms·
I wonder if a Rust reimplementation of Lua will, one day, be faster than LuaJIT.
by klaussilveira 2y ago
I wonder if a Rust reimplementation of Lua will, one day, be faster than LuaJIT.
- animaomnium 2y agoClearly that isn't the case, surely Mike Pall would have heard of it, when he brought back LuaJIT from the future, that is.
- crushmuch 2y ago[flagged]
- PhilipRoman 2y agoGood point, it is well known that speed of machine code varies greatly depending on what language was used to generate it. Jokes aside, I really don't see a point in this. The safety guarantees of Rust are thrown out of the window the second you call dynamically generated code.
- __s 2y agoNot without being a JIT. See Cranelift. I've used it to make a Befunge JIT in Rust
- ufo 2y agoFurthermore, LuaJIT's baseline interpreter is hand-crafted assembly and that's gonna be hard to beat.