3 ms·
Re: jruby I have considered it deeply. Many of our enterprise systems are Java-based, so JRuby's ability to call Java methods directly without implanting servi
by coldnebo 10y ago
Re: jruby
I have considered it deeply. Many of our enterprise systems are Java-based, so JRuby's ability to call Java methods directly without implanting services would be a huge pragmatic boon. But every time I consider that I have to balance it against being able to use a constellation of gems in Rails. For example, nokogiri (libxml) is used in a ton of stuff. Sure there are Java equivalents, but that isn't the issue. Rather I would have to reimplement or find replacements for everything we use that depends on that without introducing side-effects. In my experience that's really hard unless it's a toy application without many dependencies. (Read: opposite of most enterprise Ruby apps)
Also, as a gem author I've tried to support jruby along with MRI, but it requires jumping through a lot more hoops. Of course any cross-platform code requires more work to support, but it's a pressure on small devs. If no one needs it, no one helps support it, so then it becomes another gem that is effectively MRI-only. Kind of a viscous cycle.
- rurounijones 10y ago> nokogiri (libxml) is used in a ton of stuff. Sure there are Java equivalents, Nokogiri natively supports JRuby, no equivalent searching required. CExts are basically the only place where this issue really pops up and all the major CExt gems (Like nokogiri) support JRuby.
- rubyfan 10y ago+1 nokogiri works like a champ on JRuby
- deleted 10y ago[deleted]