Live data from Hacker News

Massive Ruby speed boost with JRuby and Java 7.

blog.jruby.org

1–10 of 79 posts

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

#3
post #2

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

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.

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

#5

I just update to java7 in ubuntu 11.04 then using sudo update-java-alternatives there is an error: no alternatives for -javaplugin.so

Your updated Java 7 is probably a 64-bit version. There's currently no Java applet browser plugin for 64-bit (and I'm not sure if there's plans to create one). If you don't mind missing out on Java applets, you'll be fine.

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

#6

I just update to java7 in ubuntu 11.04 then using sudo update-java-alternatives there is an error: no alternatives for -javaplugin.so

try:

  $ update-java-alternatives --jre-headless
or

  $ update-java-alternatives --jre
this will not update the plugin-alternative which is not available (yet), see headius' comment

  => https://gist.github.com/1501186

(UPD: sorry, the following only applies to the standard OpenJDK7 on Ubuntu, not the u2 release )

also on i386 and armel see https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/850...

workaround (change armel/arm to i386 if that's your arch):

  $ cd /usr/lib/jvm/java-7-openjdk-armel/jre/lib/arm/

  $ sudo ln -s jamvm/libjvm.so .

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

#7
post #6

I just update to java7 in ubuntu 11.04 then using sudo update-java-alternatives there is an error: no alternatives for -javaplugin.so

try: $ update-java-alternatives --jre-headless or $ update-java-alternatives --jre this will not update the plugin-alternative which is not available (yet), see headius' comment => https://gist.github.com/1501186 (UPD: sorry, the following only applies to the standard OpenJDK7 on Ubuntu, not the u2 release ) also on i386 and armel see https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/850... workaround (change…

That applies to ARM. I'm not sure of the equivalent workaround for x86_64 outside of installing a 32-bit Java 7 and setting that up as the source of the Java plugin.

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

#8
post #7
post #6

Earlier quoted context omitted.

try: $ update-java-alternatives --jre-headless or $ update-java-alternatives --jre this will not update the plugin-alternative which is not available (yet), see headius' comment => https://gist.github.com/1501186 (UPD: sorry, the following only applies to the standard OpenJDK7 on Ubuntu, not the u2 release ) also on i386 and armel see https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/850... workaround (change…

That applies to ARM. I'm not sure of the equivalent workaround for x86_64 outside of installing a 32-bit Java 7 and setting that up as the source of the Java plugin.

ok, but also reported on i386 ;)

https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/850...

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

#10
post #8
post #7

Earlier quoted context omitted.

That applies to ARM. I'm not sure of the equivalent workaround for x86_64 outside of installing a 32-bit Java 7 and setting that up as the source of the Java plugin.

ok, but also reported on i386 ;) https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/850...

Fair enough :)
Post reply on HN