Subject:
Re: [ruby-ffi] [ANN] ffi-compiler 0.0.1
From:
Wayne Meissner
Date:
1/15/13 4:58 PM
To:
ruby-ffi@googlegroups.com


Yep - its aimed at that type of scenario.  Implementing it yourself isn't rocket science, but its another speed bump for people who just want to write some C or C++ code and call it from ruby.  The very last thing we want is them using the legacy cext interface because its easier - especially since it is unsupported in JRuby.

On Wednesday, 16 January 2013 08:34:52 UTC+11, Jeremy wrote:
This looks promising. The ruby-llvm project already does something similar, but with a custom Rakefile[1].

[1] https://github.com/ruby-llvm/ruby-llvm/tree/master/ext/ruby-llvm-support


On Tue, Jan 15, 2013 at 1:04 PM, Wayne Meissner <wmei...@gmail.com> wrote:

I have released a new gem - ffi-compiler (https://github.com/ffi/ffi-compiler) - to help people who need to need to write custom C code (e.g. for C++ shims), but don't want to get bogged down with figuring out how to compile that into a shared library and have everything install & load correctly when their gem is installed.