You know, there's considerable irony in a ruby developer saying "I'm
not going to use the JVM because of the performance costs", when many
enterprise places are (still) saying "I'm not going to use Ruby
because of the performance costs"...

I use JRuby in an enterprise environment, because of multiple factors:

- Our main apps are Java based, so the JVM is available on all
platforms - we have Ruby on a few, but not many, and getting Ruby
installed, and gems up to date, and gem versions correct, can be a
pain when the ops group aren't particularly skilled in the area.

- JRuby also gives us nice platform independence for deployment - we
develop on linux/windows/mac, we deploy on Solaris, but we can tar up
a complete JRuby+gems+scripts installation into a single deployable
package that runs anywhere there is a JVM.  (Also handy for running on
diverse dev machines)

- We have to use Oracle, and I've had considerable pain on many
platforms with the Ruby Oracle libraries - not necessarily the fault
of the folks developing those libraries, mind you, Oracle is a pig.
But getting ruby on 64-bit linux to talk to 32-bit Oracle XE, for
example, is painful, and sometimes horribly slow.  Jdbc just works.

- We have JMS based messaging systems - my project doesn't (yet) need
to care about them, but if/when we do, I'm betting it'll be easier
over jruby.

The startup time is a pain (though it's way less than 30 seconds - but
agreed, every second is an annoyance), but the runtime is fine, and
the benefits listed above outweigh a little bit of startup pain.
(Admittedly we use ruby for cucumber acceptance tests and a few rspec
tests for peripheral scripts, not the main unit test suite, so it's
not a time penalty we pay every time we make a code change,  mostly)

- Korny

On Wed, Jul 29, 2009 at 10:00 AM, Andrew Snow<[email protected]> wrote:
>
>
> If deploying a Rails app onto a Java stack makes some big corporation
> happy, all the more power to them.
>
> For the rest of us, I don't think too many people are going to be happy
> with the 30+ second startup time of the lumbering JVM every time they
> want to run their tests...
>
>
>
> >
>



-- 
Kornelis Sietsma  korny at my surname dot com
"Every jumbled pile of person has a thinking part
that wonders what the part that isn't thinking
isn't thinking of"

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to