Limit-Theory-Redux / ltheory

Limit Theory Redux is a fork of the discontinued open-world space simulation game Limit Theory. We have made it our mission to continue the development of the ambitious Limit Theory project as an open source initiative.
Apache License 2.0
62 stars 8 forks source link

Lua migrated to nelua #286

Closed jujubeja closed 4 months ago

jujubeja commented 4 months ago

https://github.com/edubart/nelua-benchmarks Benchmarks for comparing efficiency of nelua with Lua, LuaJIT and C

nelua Overall better performance than Lua LuaJIT

dgavedissian commented 4 months ago

nelua certainly looks interesting. However, it's not as simple as simply substituting LuaJIT for nelua, because nelua is solving a different problem as it's a Lua to C transpiler. It is also still quite immature and doesn't support some crucial features we rely on such as:

Plus, we lose some of the flexibility benefits of a JIT compiled scripting language such as dynamic reloading.

We utilise LuaJIT's FFI library extensively to bind to the LuaJIT bytecode compiler as efficiently as possible, so the Lua part of our codebase is not specifically the bottleneck right now.

I'm going to go ahead and close this issue as a result.