Is the luajit support 64bit in defold?

I heard that luajit only support for 32-bit address space, will it cause any problem for the game program? And it seems that the luajit project is abandoned, its last update was in 2017-05-01. Are there anyway to change the luavm to the official lua?

Where did you hear that?

This is incorrect. It is still in active development:

We use standard Lua 5.1.5 for HTML5 and LuaJIT everywhere else. I suppose it would be possible to force Defold to use Lua 5.1.5 on all platforms but there really is no need for it.

2 Likes

It’s true that it had some issues with 64 bit addresses.
These issues have been fixed in later “releases”. It’s also true that there has been no official release other than the old beta. However, the branch is actively being worked on and new fixes are continuously being added. (Check their repo!)

5 Likes

I’m not a pro luaer, i use lua as script in my work. I see something about luajit at these question-answer like page.

One programer said that 64-bit version luajit’s gc can only allocate/trace the address < 0x80000000. It is 2GB memory address space(not memory size, it is MEMORY SPACE).

And thanks for your answer:

This link i found in the post seems that luajit team fix the 64bit gc problem already.

1 Like