[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: Duncan Cross <duncan.cross@...>
- Date: Mon, 21 Feb 2011 15:24:54 +0000
On Mon, Feb 21, 2011 at 3:18 PM, zhiguo zhao <zhaozg@gmail.com> wrote:
> Same with title, compatible is hard broken by luajit ffi module,
> 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.
> Thanks very much.
It will probably not cover all of the features of LuaJIT's FFI, but
what someone could try is marrying an LPEG-based C parser, like Wesley
Smith's CEG:
http://article.gmane.org/gmane.comp.lang.lua.general/58453
...to Alien FFI:
http://alien.luaforge.net/
-Duncan