[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: Wesley Smith <wesley.hoke@...>
- Date: Tue, 22 Feb 2011 01:21:25 -0800
> My guess has been that this would entail using FFI's parser to
> automatically produce C-code for a traditional Lua-C interface library,
> but use dynamic FFI interfaces for LuaJIT. Build-time configuration
> could detect whether LuaJIT was available or not, and arrange for the
> appropriate method to be used.
Given the properly generated C code, it could be compiled a runtime
using luaclang. It doesn't come cheap (Clang/LLVM is a big project),
but it does compile C-code on the fly quickly. luaclang can be easily
ripped out of LuaAV simply by grabbing a handful of header files along
with it.
http://www.mat.ucsb.edu/projects/luaAV/browser/trunk/LuaAVApp/luaclang/src?rev=4181
wes
- References:
- BIG request, someone can port luajit ffi module to lua?, zhiguo zhao
- Re: BIG request, someone can port luajit ffi module to lua?, Javier Guerra Giraldez
- Re: BIG request, someone can port luajit ffi module to lua?, Miles Bader
- Re: BIG request, someone can port luajit ffi module to lua?, Matthew Wild
- Re: BIG request, someone can port luajit ffi module to lua?, Miles Bader