lua-users home
lua-l archive

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

I think the most realistic general purpose solution would be some
meta-syntax that produces .ffi definitions for jit and automatic
gluecode generation for common lua. But as with many things, for one
project its indeed simpler to do it just 2 times, the utility of such
thing would only come if done once to be used often.

On Mon, Feb 21, 2011 at 4:41 PM, Javier Guerra Giraldez
<> wrote:
> On Mon, Feb 21, 2011 at 10:18 AM, zhiguo zhao <> wrote:
>> I hope my lua code can be run both luajit and lua. But ffi is
>> most attraction feature, can who do some work to port luajit ffi to lua as a
>> extend module.
> far easier is to write two versions of your code: one with JIT+FFI,
> one as a traditional Lua/C binding.
> see recent ZeroMQ success story:
> --
> Javier