Site_ruby/shared/ffi versus gem ffi

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.

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.

On May 2, 8:40pm, Wayne M. [email protected] 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

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.

so you can’t actually upgrade your internal jruby ffi by installing a
newer gem?