lua-users home
lua-l archive

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

On Sat, Feb 12, 2011 at 19:39, Francesco Abbate <> wrote:
> Hi all,
> As many have already pointed out there is a big problem when using
> external C libraries that repeatedly calls Lua callback functions,
> like Leo Razoumov was mentioning for numerical integration routines
> that requires a pointer to a C function to evaluate the function. The
> problem is that in these circumstances LuaJIT is not able to optimize
> the Lua callback function because it is called from the C code.

Mike Pall recently pointed out a clean approach to facilitate
Lua->C->Lua calls using C-side coroutines.
Most importantly, this method does not preclude LuaJIT optimizations.