[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: BIG request, someone can port luajit ffi module to lua?
- From: Miles Bader <miles@...>
- Date: Tue, 22 Feb 2011 11:14:52 +0900
Javier Guerra Giraldez <javier@guerrag.com> writes:
>> 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.
Writing two version of one's bindings is really annoying though,
especially for large interfaces.
If FFI could be used as a parser to automagically produce traditional
lua interface routines _and_ JIT interfaces, that would be an insane
win...
-Miles
--
Congratulation, n. The civility of envy.