Hacker News new | ask | show | jobs
by ianm218 21 days ago
I happened to just build a Rust port of Lua this past week [1] for 5.4.7 have been diving back into this world for the first time in a long time.

There is some free lunch on performance compared to the C implementation on tables, but the rest is quite hard to get down to parity. Especially if you are trying to make the Rust code highly safe.

My goal in the longer run is to support Lua 5.5, 5.1 and then eventually LuaJIT fully in Rust.

I'm starting working with some folks in the game dev space but hoping to also make it easy to support Lua in Redis/ Valkey like applications in Rust without bundling C (which will need 5.1 and LuaJit).

[1] https://github.com/ianm199/lua-rs/tree/main [2] https://ianm199.github.io/lua-rs/harness/bench/history/index...