[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] ZeroMQ bindings with LuaJIT2 FFI support.
- From: Michael Gogins <michael.gogins@...>
- Date: Sun, 20 Feb 2011 11:16:35 -0500
Such a binding already exists. I am using it with good results. It
includes OpenGL and GLU, OpenCL, and GLFW (which enables mouse and
keyboard interaction via polling, valuable since so far LuaJIT/FFI
does not support callbacks into Lua from C). If a function or enum in
the binding is missing or wrong, it is easy to correct by reference to
the library documents.
http://github.com/malkia/luajit-opencl
Highly recommended!
On Sun, Feb 20, 2011 at 9:43 AM, Gaspard Bucher <gaspard@teti.ch> wrote:
> Congratulations for the zmq ffi based bindings !
> The next library that I would really like to see using ffi bindings is
> OpenGL... If anyone starts such bindings, please write a note on the mailing
> list so we do not duplicate effort.
> Cheers,
> Gaspard
>
> On Sun, Feb 20, 2011 at 2:40 AM, Robert G. Jakabosky <bobby@sharedrealm.com>
> wrote:
>>
>> On Saturday 19, Mike Pall wrote:
>> > Another metric that would be interesting to compare, is the effort
>> > it takes to create the different kinds of bindings. Ok, so the
>> > Lua/C API binding was first and ZeroMQ has a learning curve. But
>> > the FFI library has a learning curve, too. Do you have an estimate
>> > on the time it took you to finish the bindings?
>>
>> I spent a few hours making the first version of the FFI based binding to
>> ZeroMQ, but then I spent a few more hours profiling, optimizing and
>> debugging
>> those bindings. With my bindings generator it would take me about the
>> same
>> amount of time to create normal Lua bindings vs. FFI base bindings.
>>
>> --
>> Robert G. Jakabosky
>>
>
>
--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com