[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaJIT 2 ffi (casting / force hotpath)
- From: Mike Pall <mikelu-1101@...>
- Date: Sat, 22 Jan 2011 22:09:41 +0100
> 2011/1/22 Mike Pall <email@example.com>:
> > 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)).