Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LuaJIT and Rocks?

Just a small question from a "Lua newbie"...I have been using LuaJIT and it is awesome, no the question is since LuaJIT is Lua 5.1 compatible does that mean I can use all the "LuaRocks" that standard Lua uses in LuaJIT?

For instance if I wanted to install one of the SQLite libraries (e.g. http://luaforge.net/projects/luasqlite/) - how would I install that in LuaJIT?

Do all the available "LuaRocks" work out the box with LuaJIT?

like image 244
Lynton Grice Avatar asked Jun 30 '11 18:06

Lynton Grice


1 Answers

LuaJIT is designed to be drop-in compatible with the Lua stand-alone. There is no reason why any purely Lua-based Rocks shouldn't work. DLL-based Rocks ought to work as well, since the LuaJIT stand-alone DLL is compatible with the original DLL.

like image 95
Nicol Bolas Avatar answered Oct 14 '22 08:10

Nicol Bolas