Jump to content




Why doesn't CC use luaj-3.0?

java lua

60 replies to this topic

#61 AgentE382

  • Members
  • 119 posts

Posted 07 March 2015 - 01:29 AM

Guys, just so you know... I just finished a full Lua 5.1 compatibility layer for 5.2 (makes 5.1 programs work in a 5.2 environment). It's written in Lua, and does require the debug library. However, we could set debug to nil after loading up the compatibility layer. It has no non-standard dependencies, so you could literally copy-paste it to the top of bios.lua and pretty much every 5.1 program should work.

Now, there is one minor thing that may break a super advanced program. Lua 5.2 doesn't have thread environments. So, if you used `setfenv(0, newenv)` and then used loadstring, your code will have to be edited.

Other than that, I don't know of anything that would break when any CC program is run.

EDIT: I'm gonna' try decompiling and porting to LuaJ 3 like RainbowDash did, and test out my compatibility layer. I'll let you know if it holds up under more strenuous testing.

Edited by AgentE382, 07 March 2015 - 01:34 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users