Support Lua 5.1 (without LuaJIT)
To ease scripts debugging and also increase portability, we can support pure Lua 5.1.
~~We can use https://github.com/WheretIB/LuaDkmDebugger to debug Lua from within the Visual studio, but it doesn't support LuaJIT, so using pure Lua can help in this matter. (https://github.com/WheretIB/LuaDkmDebugger/issues/8)~~ LuaDkmDebugger now supports LuaJIT.
This would enable RISC-V support which is currently blocked due to LuaJIT not supporting the architecture, nor is there any indication of it ever being done. LuaJIT/LuaJIT#628
I've found that LuaJIT 2.x has some behaviour differences from original LuaJIT 1.x that was used in the original engine. I think we would switch to https://github.com/luau-lang/luau, which reproduces the same behaviour as LuaJIT 1.x.
Although, there are some problems to solve. (e.g. performance considerations, or the fact that __gc operator was removed in Luau, but it's used by luabind)