lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




On Jun 21, 2012 5:33 PM, "Miles Bader" <miles@gnu.org> wrote:

> The FFI interface is not a good fit for ordinary Lua, because it's too
> dynamic (too much stuff happens at runtime), and as a result, too slow.
> In LuaJIT, this isn't an issue because LuaJIT can compile everything at
> runtime, but Lua can't do that.

My guess (or hope ) is that a sophisticated library could compile the FFI input to a separate VM that manages the Lua /C interface, just like LPEG does, a specialized VM to do the pattern matching.

Of course, to make it fast enough we need another Roberto or Mike.....

--
Javier