lua-users home
lua-l archive

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


CrazyButcher wrote:
> 2011/1/22 Mike Pall <mikelu-1101@mike.de>:
> > Right now the call chain 'FFI -> C -> lua_*()' with the same
> > lua_State is a big no-no.
> 
> so for this use-case old-styled lua bindings would still be the way to go?
> lua -> classic lua binding- > C -> lua function
> as evoking a classic lua bound function enforces the interpreter to
> set up the proper environment?

Well, maybe. Or selectively turn off JIT compilation for the Lua
function that performs the FFI call (jit.off(func)).

--Mike