Hacker News new | ask | show | jobs
by el_bhs 4698 days ago
JRuby is of course incompatible with C extensions to Rails; the place I used Rails had such dependencies, and so JRuby was not an option. I agree that JRuby is otherwise preferable to cRuby, though.

I'd be curious to hear how Square has found ruby (independent of rails) to be from a maintenance standpoint.

3 comments

Check out Xavier Shay's talk on JRuby at Square for more info on our experiences:

https://www.youtube.com/watch?v=hMpd4CzR1f8

> JRuby is of course incompatible with C extensions to Rails

The fact that old-style native extensions are tied to MRI is one of the motivations for Ruby FFI, which provides a common mechanism for interfacing to native libraries on MRI, JRuby, and Rubinius (and maybe some other implementations, as well.)

I assume this wasn't an option for you, but you can sometimes get around this limitation by doing any C-dependent work in a job queue.