LuaJIT 和 Rocks?
只是“Lua 新手”的一个小问题...我一直在使用 LuaJIT,它非常棒,问题是既然 LuaJIT 与 Lua 5.1 兼容,这是否意味着我可以使用标准 Lua 在 LuaJIT 中使用的所有“LuaRocks” ?
例如,如果我想安装 SQLite 库之一(例如 http://luaforge.net/projects/luasqlite/ ) - 我如何在 LuaJIT 中安装它?
所有可用的“LuaRocks”都可以与 LuaJIT 配合使用吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
LuaJIT设计是为了与独立的 Lua 直接兼容。任何纯粹基于 Lua 的 Rock 都没有理由不能工作。基于 DLL 的 Rocks 应该也可以工作,因为 LuaJIT 独立 DLL 与原始 DLL 兼容。
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.
具体来说:
我认为这已经说明了一切。
Concretely:
I think that pretty much says it all.