Forum: JRuby site_ruby/shared/ffi versus gem ffi

Posted by Craig Anderson (cootcraig)
on 2012-05-02 22:19
(Received via mailing list)
I find this confusing. JRuby comes with site_ruby/shared/ffi, but I'm
using gems that depend on gem ffi.  This means that the ffi gem gets
installed.  Would it be best practice for my scripts to use a bundler
Gemfile with ffi referenced?

FWIW most of my development is on windows.
Posted by Wayne Meissner (Guest)
on 2012-05-03 04:41
(Received via mailing list)
Installing the ffi gem should have a neutral effect on jruby - i.e. it
does nothing other than satisfy dependencies.  JRuby's internal FFI
implementation is always used.
Posted by Craig Anderson (cootcraig)
on 2012-05-05 16:09
(Received via mailing list)
On May 2, 8:40pm, Wayne Meissner <wmeiss...@gmail.com> wrote:
> Installing the ffi gem should have a neutral effect on jruby - i.e. it
> does nothing other than satisfy dependencies. JRuby's internal FFI
> implementation is always used.
>

Thanks for that, I've got one less thing to stress over (:-0
Posted by Roger Pack (rogerdpack)
on 2012-05-08 20:08
so you can't actually upgrade your internal jruby ffi by installing a 
newer gem?
Posted by Wayne Meissner (Guest)
on 2012-05-09 00:38
(Received via mailing list)
That is correct.  It is probably not that much of an issue these days,
since the ruby-ffi API hasn't changed since before jruby 1.6 was
released.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.