addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [NYC-rb] JRuby experiences

From: Paul B.
Sent on: Saturday, June 2, 2012 10:29 AM
My experience with JRuby in a production environment was generally a good one; I think Jeff's links are a good place to start for the questions you had. I'd only add that while JRuby generally makes it easy to integrate with the huge landscape of Java libraries, it does limit your ability to incorporate certain Ruby gems that contain C extensions. If you're trying to find JRuby alternatives to popular gems containing C extensions, see:


Though it can be tempting to rely heavily on Java libraries when using JRuby, it does limit the portability of your code. The universe of Ruby gems is huge and there's a lot of active development; it does change rapidly, however. My impression is that in the Java universe you're more likely to encounter libraries that have the weight of large organizations behind them, have complex APIs, or are over-engineered; on the other hand with Ruby gems you may find more work that is flavor-of-the-month, slapdash, or no longer supported. However, the Ruby community is generally very helpful with offering advice about libraries. In general, if you're looking for a library I'd recommend trying to find a gem first unless there's there's a good reason to go the Java route.

There's a useful list of differences between JRuby and native Ruby here:


As you can see it's not very big, but the differences can be significant if you're trying to do certain kinds of things.

On Fri, Jun 1, 2012 at 9:15 AM, Jean Barmash <[address removed]> wrote:
Hello Everybody,

I am a relative noob to Ruby / Rails, coming to it from Groovy / Grails / Java world.   

Wondering if anybody here is running on JRuby stack / JVM, and would be willing to share their thoughts / experiences.  I know there are some technical reasons for why JRuby might do better in some situations, but in my case I am wondering if deploying Rails on JRuby would allow me to take advantage of my previous life (i.e. things like monitoring, setting up servers, integrating with Java libraries, etc).  

Would appreciate any and all perspectives.  

Cheers,


Jean




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Jean Barmash ([address removed]) from NYC.rb.
To learn more about Jean Barmash, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

Our Sponsors

  • Pivotal Labs

    Provides the awesome event space we use every month!

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy