Live data from Hacker News

Massive Ruby speed boost with JRuby and Java 7.

blog.jruby.org

51–60 of 79 posts

Re: Massive Ruby speed boost with JRuby and Java 7.

#52
post #25

Earlier quoted context omitted.

a) There will be problems in the Computer Language Benchmark. Like with the excellent LuaJit, they only allow one version of a language, so a war of implementations to appear would not be surprising. b) Now that Python is in a difficult transition to Python 3, a strong ruby is a game changing point. Antonio Cangiano `New Relic Holy Shmoly, Ruby 1.9 smokes Python away!` could be Jruby smokes Python away :) (if there i…

Oh, and regarding JRuby versus Python 3...yes, if Ruby 1.9 smokes Python, and JRuby is faster than Ruby 1.9, then JRuby should smoke Python even more. I have not done the comparisons myself, though.

> if Ruby 1.9 smokes Python

A big IF? :-)

http://shootout.alioth.debian.org/u32/benchmark.php?test=all...

Re: Massive Ruby speed boost with JRuby and Java 7.

#53
post #2

Anyone done any comparisons between this and the official (MRI/KRI/YARV) 1.9.2 or 1.9.3?

a) There will be problems in the Computer Language Benchmark. Like with the excellent LuaJit, they only allow one version of a language, so a war of implementations to appear would not be surprising. b) Now that Python is in a difficult transition to Python 3, a strong ruby is a game changing point. Antonio Cangiano `New Relic Holy Shmoly, Ruby 1.9 smokes Python away!` could be Jruby smokes Python away :) (if there i…

> There will be problems in the Computer Language Benchmark.

???

http://shootout.alioth.debian.org/u32/jruby.php

> Ruby 1.9 smokes Python away!

"I ran a recursive Fibonacci function..." Really.

Re: Massive Ruby speed boost with JRuby and Java 7.

#55
post #33

Earlier quoted context omitted.

Great attitude.

Really glad that @headius is getting some recognition for his dogged work in this space. I know he's been up against a sometimes quite hostile Ruby crowd but has remained a gentleman throughout.

Indeed! He has been super helpful and friendly.

Re: Massive Ruby speed boost with JRuby and Java 7.

#56
post #51

I understand that most of the performance boost comes from the the invokedynamic optimization, not from anything special inside JRuby. So, does this mean we can expect the same goodness for other dynamic JVM languages? Clojure maybe?

there is the need for the implementation to actually make use of invokedynamic, otherwise there would be no gains. As for clojure: http://news.ycombinator.com/item?id=2928285

Re: Massive Ruby speed boost with JRuby and Java 7.

#57
post #3

Earlier quoted context omitted.

I obviously have, but I have a lot of respect for the MRI folks and usually don't publish those results. You're free to try it out yourself. In general, JRuby should be significantly faster than MRI 1.9.2 or 1.9.3 for running Ruby code, and usually faster inside the core classes (String, Array, etc). If it's not, I consider it a bug, and encourage bug reports to that effect.

Why would respect for the MRI devs stop you from publishing benchmarks? It's not an insult to say that something else is faster. I'd imagine the competition might drive them to improve if at all possible.

I'm not really familiar with the ruby development process and community and haven't used the language much, but I could imagine the MRI developers spend considerable time advancing the actual design of the language (syntax, standard APIs, etc.) whereas the other Ruby implementations "only" need to implement that design and thus can maybe focus more on performance. If MRI were to die, that design work would still need to be done in order to push the language forward. As such it could be seen as a symbiotic relationship, not competition.

Re: Massive Ruby speed boost with JRuby and Java 7.

#58
post #54

I've been eyeing jruby for quite a while but never had much success with it. There seems to always be the odd gem not supporting it (e.g. jruby-openssl is broken which a lot of my stuff depends on).

Invoke dynamic means less of a need for C-Extensions, which is probably one of the largest sources of pain for JRuby compatibility. The JVM is better at running plain old ruby code now, so there's less need to go outside of it with C or Java.

Re: Massive Ruby speed boost with JRuby and Java 7.

#59
post #54

I've been eyeing jruby for quite a while but never had much success with it. There seems to always be the odd gem not supporting it (e.g. jruby-openssl is broken which a lot of my stuff depends on).

jruby-openssl has worked fine for me for several years. Making outgoing SSL connections was one of the primary functions of the last app I worked on.

Re: Massive Ruby speed boost with JRuby and Java 7.

#60
post #30

Earlier quoted context omitted.

I feel like the MRI devs get beat on a bit too much, and they're doing the best job possible with very few paid developers. I'm more interested in showing how JRuby is improving over time than rubbing salt in the wounds.

Speaking of very few paid MRI developers, does anyone know if the Ruby project takes donations to hire full-time paid developers? If yes, could you please point us to the donations page?

After matz announced he was hired by Heroku I spoke with him on how he plans to hire developers. He doesn't want one company to have all the MRI developers, so the best way to create a new paid MRI committer is to hire one specifically to do so.
Post reply on HN