LuaJIT and the Rocks?

Just a little question from the “Lua newbie” ... I am using LuaJIT, and this is awesome, there is no question, since LuaJIT is compatible with Lua 5.1, does that mean that I can use all the “LuaRocks” that Lua uses in LuaJIT by default?

For example, if I wanted to install one of the SQLite libraries (for example, http://luaforge.net/projects/luasqlite/ ) - how would I install this in LuaJIT?

Do you have all the available “LuaRocks” with LuaJIT?

+6
source share
2 answers

LuaJIT is designed to be compatible with Lua autonomously. There is no reason why any clear moon moons should not work. DLL-based Rocks should also work, since the stand-alone LuaJIT DLL is compatible with the original DLL.

+8
source

Specifically:

"LuaJIT is fully compatible with Lua 5.1, supports all standard Lua functions and the full set of Lua / C API functions. LuaJIT is also fully compatible with ABI with Lua 5.1 at the linker / dynamic loader level. This means that you can compile the C module against standard headers Lua and load the same shared library from either Lua or LuaJIT. "

I think that overall says it all.

-1
source

Source: https://habr.com/ru/post/891754/


All Articles