Search code examples
windowslualuajit

LuaJIT equivalent of wlua.exe


In Windows, I want to know if there is an equivalent way of using LuaJIT like the standard Lua distribution wlua.exe, which is windowless. Or should I compile the modules and use them in a standard Lua interpreter? (not sure if this is possible).


Solution

  • Sure, since LuaJIT is ABI-compatible with Lua 5.1, you can swap lua51.dll and lua5.1.dll out, and replace them with the LuaJIT version of lua51.dll. Just copy LuaJIT's lua51.dll into the folder with wlua.exe and make another copy named lua5.1.dll. That should cover everything.

    This should be possible with any application that dynamically links to Lua 5.1.