Re:Ask HN: Rails vs. Java?
by cheald on Wednesday September 12, 2012 @11:51AM
(#4511213)
Have you tried JRuby? You get all your Ruby on top of the JVM. By a number of anecdotal accounts, it's quite fast once you get past the JIT warm-up period. You also get the ability to use native Java libraries from your Ruby code, which gives you a really nice transition mechanism if you decide to move towards a pure Java solution.
[ Parent
| on HN ]
I'm not seeing how JRuby is much more efficient: http://shootout.alioth.debian.org/u64q/benchmark.php?test=al...
Some tests are faster and some are slower. Nowhere near as efficient as Java.
Re:Ask HN: Rails vs. Java?
by christiangenco on Wednesday September 12, 2012 @11:56AM
(#4511248)
Oh wow, Rails runs in JRuby. Interesting...
Yup. The prime caveat is that any gems that use C extensions have to be replaced with Java equivalents (mysql2, for example), but it runs just dandy.
The boot time is atrocious, but you can run your Rails app multi-threaded in a single process, and once the JIT warms up, it's pretty danged speedy.