luajit-ffi

Robert Clipsham robert at octarineparrot.com
Tue May 1 08:31:05 PDT 2012


On 01/05/2012 16:24, so wrote:
> http://luajit.org/ext_ffi.html
> https://github.com/malkia/ufo
>
> How awesome is Mike Pall?
> I didn't dive into details of the code, but if he can do this with a
> dynamic language, why on earth D still need manual C bindings while
> having ABI compatibility? So luajit comes with a C compiler?

Note that you can't just drop any C header file in there for that to 
work (as far as I can tell), you still have to bring out individual 
post-processed function declarations.

Also, someone has written a libffi binding for D, which could probably 
be adapted to work in a similar manor:

https://github.com/lycus/libffi-d

-- 
Robert
http://octarineparrot.com/


More information about the Digitalmars-d mailing list