Re:Twitter: From Ruby on Rails to the JVM [video]
by cageface on Saturday July 30, 2011 @10:24AM
(#2825826)
JRuby is fast for a Ruby implementation, but it's still far, far slower than Scala or Java itself.
http://shootout.alioth.debian.org/u32/benchmark.php?test=all...
Re:Twitter: From Ruby on Rails to the JVM [video]
by kennystone on Saturday July 30, 2011 @12:12PM
(#2826037)
A lot of the pain a site like Twitter will have comes from GC (they wrote their own Ruby GC), and JRuby has a much better garbage collector over MRI and probably better than Twitter's.
Re:Twitter: From Ruby on Rails to the JVM [video]
by vsync on Sunday July 31, 2011 @08:17AM
(#2828177)
It seems like something like Twitter would benefit lots from a good generational GC. Any more info on the one they wrote and how it differs from the built-in one? I'd love to learn more.
Re:Twitter: From Ruby on Rails to the JVM [video]
by bad_user on Saturday July 30, 2011 @11:04AM
(#2825905)
I do get that a dynamic language like Ruby will always be slower than a language like Java, which has primitives and where many things, including static method calls, are solved at compile time.
But citing the Alioth.Debian benchmarks? Really?
Dude, take a look at the source-code of those benchmarks sometimes -- they are completely useless ;)
Re:Twitter: From Ruby on Rails to the JVM [video]
by igouy on Saturday July 30, 2011 @01:28PM
(#2826187)
Dude, "completely useless" is just "completely useless" name calling.
Say what you think is wrong with the source-code of particular programs.
Re:Twitter: From Ruby on Rails to the JVM [video]
by netghost on Saturday July 30, 2011 @11:10AM
(#2825915)
If you want a fast dynamic language, take a look at Lua. It's surprisingly fast, especially LuaJIT, and pretty straight forward (almost boring really). The main downside is that there isn't the breadth of community around it.
Re:Twitter: From Ruby on Rails to the JVM [video]
by cppsnob on Saturday July 30, 2011 @12:17PM
(#2826050)
Lua's threading is just as broken as Python or Ruby. Maybe even more so.
Re:Twitter: From Ruby on Rails to the JVM [video]
by code_duck on Saturday July 30, 2011 @02:14PM
(#2826281)
They're as useful as the code is well written for each language.
You think the Ruby code could be faster, and thus the comparison is skewed? Go ahead and help everyone understand by improving it.
Re:Twitter: From Ruby on Rails to the JVM [video]
by cageface on Saturday July 30, 2011 @11:17AM
(#2825929)
They show the right order-of-magnitude differences. Taking them more seriously than that is a mistake.
Re:Twitter: From Ruby on Rails to the JVM [video]
by igouy on Sunday July 31, 2011 @12:12PM
(#2828639)
That JRuby :: Scala URL shows an interquartile range from 6x to 31x so which order-of-magnitude were you going to pick? ;-)
Re:Twitter: From Ruby on Rails to the JVM [video]
by etherael on Saturday July 30, 2011 @11:26AM
(#2825943)
it's still slower than ruby 1.9 is it not? I was under the impression the current perf hierarchy was 1.9.2p290 w / gc cleanup patch (ree inspired) > jruby > 1.8.7 (ree) > all the other rubies?
Re:Twitter: From Ruby on Rails to the JVM [video]
by jefft on Saturday July 30, 2011 @11:16AM
(#2825926)
I recall reading an interview with Evan Weaver that the problem with moving to JRuby was in client libraries they were using, not JRuby itself.
Re:Twitter: From Ruby on Rails to the JVM [video]
by kemiller on Saturday July 30, 2011 @11:34AM
(#2825959)
That is indeed the issue if you want to convert an existing rails app to JRuby. But if you're just starting out, it's a different story: you'll end up much more JVM-focused since the best option is generally to use the java equivalent instead of a ruby gem, but there are options.
I've been using rails for almost 7 years now (holy crap) and run a medium-sized site on it. It works just fine, but if I were starting from scratch today, I would still use Rails, but I'd run it on JRuby.
Re:Twitter: From Ruby on Rails to the JVM [video]
by larrywright on Saturday July 30, 2011 @03:02PM
(#2826397)
Agreed. There are certainly some people who can't use the JVM for some reason (client libraries being a common one), but I think most people would be best served by using JRuby. There's a lot of innovation going on there, and platforms like Torquebox[1] have some compelling benefits.
If twitter has (some of) the best ruby developer (mentioned somewhere at the end of the video), why have they neglected JRuby? Why is it no option? For legacy code with native extensions this makes sense. But is jruby slower, more memory hungry on the JVM then scala or clojure? I always though that JRuby was one of the more performant languages on the JVM?
Apart from that it was an interesting talk.
[1]: http://www.jruby.org/