5 ms·
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
by cheald 14y ago
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.
- logn 14y agoI'm not seeing how JRuby is much more efficient: http://shootout.alioth.debian.org/u64q/benchmark.php?test=all&lang=jruby&lang2=yarv http://shootout.alioth.debian.org/u64q/benchmark.php?test=al... Some tests are faster and some are slower. Nowhere near as efficient as Java.
- christiangenco 14y agoOh wow, Rails runs in JRuby. Interesting...
- cheald 14y agoYup. 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.