Mailinglist Archive: opensuse-ruby (69 mails)

< Previous Next >
[opensuse-ruby] FFI library for ruby C/C++ extensions
I would like to point to interesting library for C extension to ruby.

just look at how you can do quick and easy C
bindings from ruby code ( so no C code needed ). For C++ you should
look at

long story:

We discussing on lunch about various quality of C bindings ( hating
perl C bindings :) ) and we remembered that duncan do something with
it, but I cannot remember more details. Martin think that FFI is about
making C api better but need to write in C. So I look into it how it
works and are quite surprised that
1) you write it in ruby
2) is really straight forward
3) doesn't work well C++ ( let me fix it if I understand it wrong ).
But I found that exists also library for it rb++

I think it is much better option then generating interface with Swig
which is quite buggy and limited, especially for complex C++ and resul
is not nice ( often object hierarchy is broken ).

To unsubscribe, e-mail: opensuse-ruby+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-ruby+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups