The FFI does not make LuaJIT unsafe. If you want safe code, you simply run the code in a sandboxed environment which does not include the FFI library.<p>&gt; you can&#x27;t easily load lua files in LuaJit<p>Yes you can, it has the same scripting interface as stock Lua.