Forum: JRuby site_ruby/shared/ffi versus gem ffi

82e2a108ae128a41ba2bed3b6e3abbcf?d=identicon&s=25 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.
5993756d2b69ce0bc16df3318c240d54?d=identicon&s=25 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.
82e2a108ae128a41ba2bed3b6e3abbcf?d=identicon&s=25 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
Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2012-05-08 20:08
so you can't actually upgrade your internal jruby ffi by installing a
newer gem?
5993756d2b69ce0bc16df3318c240d54?d=identicon&s=25 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

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.