Re: FFI extension

Jason McKesson <[email protected]> Sun, 04 Mar 2012 09:27:47 -0800
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
On 3/4/2012 3:32 AM, Szymon Gatner wrote:
> Hey,
>
> what would you say about community driven extension to luabind that
> would utilize LuaJIT FFI? (http://luajit.org/ext_ffi.html)
>
> Apparently it is very fast way of C/Lua interop so how can we make our
> favorite Lua binding library to use it?
>
> I would gladly help with developing such extension but not really
> qualified to manage it as my most advanced hacks are custom policies.
> And rather simple ones.
>
> Cheers,
> Szymon Gatner
>
You can't layer Luabind on top of FFI. Luabind does more than FFI does, 
and Luabind requires things (like actually using C++) that FFI does not. 
You can't attach real classes (things that aren't POD in C++03 or 
standard layout in C++11) to FFI. You can't use function overloading. 
Member functions are impossible. I can keep going but my point is clear.

If you want to use FFI, then you use FFI. Luabind solves a related but 
*different* problem.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/