xray-16 icon indicating copy to clipboard operation
xray-16 copied to clipboard

Support Lua 5.1 (without LuaJIT)

Open Xottab-DUTY opened this issue 4 years ago • 2 comments

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.

Xottab-DUTY avatar Jun 12 '21 18:06 Xottab-DUTY

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

archanox avatar Sep 15 '21 14:09 archanox

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)

Xottab-DUTY avatar Mar 16 '25 01:03 Xottab-DUTY