Re: FFI extension

Szymon Gatner <[email protected]> Sun, 4 Mar 2012 19:43:27 +0100
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <CALqx0+USJK5VDQPa56pyk_88dzL=X6v_YeQMxFjGXdpiudP7Vg@mail.gmail.com>
Ah I see, there is no C api for FFI, it is striclty Lua-side thing. My bad :(

W dniu 4 marca 2012 18:27 użytkownik Jason McKesson <[email protected]> napisał:
> 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/
> _______________________________________________
> luabind-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luabind-user



-- 
Szymon Gatner
The Lordz Games Studio
www.thelordzgamesstudio.com

------------------------------------------------------------------------------
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/