3 ms·
"Stuck" might be a wrong word. OpenResty actually dropped support for Lua and is now LuaJIT only. LuaJIT is a fork of Lua 5.1, but it has features from 5.2 [1]
by bungle 6y ago
"Stuck" might be a wrong word. OpenResty actually dropped support for Lua and is now LuaJIT only. LuaJIT is a fork of Lua 5.1, but it has features from 5.2 [1] (and from later versions where it sees fit). Because of this, Lua 5.1 is a golden standard of Lua world at the moment.
[1] http://luajit.org/extensions.html#lua52 http://luajit.org/extensions.html#lua52
- xvilka 6y agoThere is more modern alternative to LuaJIT though - MoonJIT [1]. Unlike the former it supports modern Lua standards. [1] https://github.com/moonjit/moonjit https://github.com/moonjit/moonjit
- spacechild1 6y agoAFAICT, MoonJIT is just a fork of LuaJIT. Both support many 5.2 extensions. Additionally, MoonJIT also has a few Lua 5.3 extensions, but it is not fully compatible with Lua 5.3 or even Lua 5.2. Quote: "Note: this provides only partial compatibility with Lua 5.2 at the language and Lua library level. moonjit is API+ABI-compatible with Lua 5.1, which prevents implementing features that would otherwise break the Lua/C API and ABI (e.g. _ENV)." Some internal language changes in 5.3, like the new integer type, would require deep surgery in the JIT. This also seems to be the main (but not only) reason why Mike Pall doesn't have plans to ever support Lua 5.3. (https://www.reddit.com/r/lua/comments/2zutj8/mike_pall_luajit_dislikes_lua_53/ https://www.reddit.com/r/lua/comments/2zutj8/mike_pall_luaji...)
- bungle 6y agoYes, and OpenResty maintains their own fork [1] as well. [1] https://github.com/openresty/luajit2 https://github.com/openresty/luajit2
- blodorn 6y agoAm I wrong? I thought the author of LuaJIT has been pretty well over it for the last 5 years and no one else picked it up. LuaJIT had a beta release 3 years ago and hasn't been updated since.
- spacechild1 6y agoLooks like Mike Pall is still actively working on the project: https://github.com/LuaJIT/LuaJIT/commits/v2.1 https://github.com/LuaJIT/LuaJIT/commits/v2.1 The last commit is from 5 days ago.
- nicoster 6y ago<close> seems to be a nice feature. wish it could be ported to luajit.