# Relative speed of Ruby vs Java for a large compiled app like Freenet

**URL:** <https://rubytalk.org/t/relative-speed-of-ruby-vs-java-for-a-large-compiled-app-like-freenet/21081>\
**Category:** ruby-talk\
**Created:** [25 September 2005 14:21 UTC](https://rubytalk.org/t/relative-speed-of-ruby-vs-java-for-a-large-compiled-app-like-freenet/21081 "2005-09-25T14:21:48Z")\
**Posts on this page:** 5\
**Page:** 3

<div class="post-metadata">

**Author:** ![Isaac\_Gouy1](https://avatars.discourse-cdn.com/v4/letter/i/4bbf92/32.png) [@Isaac\_Gouy1](https://rubytalk.org/u/Isaac_Gouy1)\
**Post date:** [27 September 2005 02:01 UTC](https://rubytalk.org/t/relative-speed-of-ruby-vs-java-for-a-large-compiled-app-like-freenet/21081/41 "2005-09-27T02:01:45Z")

</div>

Austin Ziegler wrote:

> **···**
>
> > On 9/26/05, Isaac Gouy \<igouy@yahoo.com\> wrote:  
> > \> \> Will you complain now or change the Ruby script to use this  
> > \> \> functionality, that allows the program to run?  
> > \> Here's how to contribute your program  
> > \> [http://shootout.alioth.debian.org/faq.php?sort=fullcpu#contribute](http://shootout.alioth.debian.org/faq.php?sort=fullcpu#contribute)
> > 
> > Obviously, you didn't even read the program to see that it was an  
> > utter cheat to exec the program. The right solution -- as always --  
> > for you to fix your damned run script. Fix that and you'll get results  
> > for the Ruby program AS IT STANDS.
> > 
> > Don't fix it, and my assessment of the lack of honesty surrounding the  
> > Bogus Computer Language Shootout stands.
> > 
> > -austin  
> > --  
> > Austin Ziegler \* halostatue@gmail.com  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Alternate: austin@halostatue.ca
> 
> I implicitly trust Ruby programmers - it's simply unthinkable that any  
> of them would contribute a program which intentionally cheated. (And it  
> would give the Perl guys something to complain about.)

---

<div class="post-metadata">

**Author:** ![Bill\_Kelly](https://avatars.discourse-cdn.com/v4/letter/b/cc9497/32.png) [@Bill\_Kelly](https://rubytalk.org/u/Bill_Kelly)\
**Post date:** [27 September 2005 05:13 UTC](https://rubytalk.org/t/relative-speed-of-ruby-vs-java-for-a-large-compiled-app-like-freenet/21081/42 "2005-09-27T05:13:15Z")

</div>

> I tried to make the call with 'dl', but I'm getting an  
> error:
> 
> (eval):2:in `setrlimit': undefined method `' for nil:NilClass (NoMethodError)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from rlimit2.rb:16

I forgot to mention, this is:

ruby 1.8.2 (2004-11-06) [i686-linux]

Regards,

Bill

> **···**
>
> From: "Bill Kelly" \<billk@cts.com\>

---

<div class="post-metadata">

**Author:** ![Bill\_Kelly](https://avatars.discourse-cdn.com/v4/letter/b/cc9497/32.png) [@Bill\_Kelly](https://rubytalk.org/u/Bill_Kelly)\
**Post date:** [27 September 2005 15:24 UTC](https://rubytalk.org/t/relative-speed-of-ruby-vs-java-for-a-large-compiled-app-like-freenet/21081/43 "2005-09-27T15:24:56Z")

</div>

> I tried to make the call with 'dl', but I'm getting an  
> error:
> 
> (eval):2:in `setrlimit': undefined method `' for nil:NilClass (NoMethodError)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from rlimit2.rb:16

Sorry for the noise, but I'm going to re-post this question  
in its own thread... It occurred to me many people may have  
killfiled this flame-war topic... ;-/

Regards,

Bill

> **···**
>
> From: "Bill Kelly" \<billk@cts.com\>

---

<div class="post-metadata">

**Author:** ![Isaac\_Gouy1](https://avatars.discourse-cdn.com/v4/letter/i/4bbf92/32.png) [@Isaac\_Gouy1](https://rubytalk.org/u/Isaac_Gouy1)\
**Post date:** [27 September 2005 19:21 UTC](https://rubytalk.org/t/relative-speed-of-ruby-vs-java-for-a-large-compiled-app-like-freenet/21081/44 "2005-09-27T19:21:43Z")

</div>

Austin Ziegler wrote:

> \> Austin Ziegler wrote:  
> \>\>\> Martin, perhaps you could collect this stuff and put it into your wiki  
> \>\>\> page for future use?  
> \>\>\>  
> \>\>\> Austin Ziegler wrote:  
> \>\>\>\>\> Have you even looked at the website in the last 6 months?  
> \>\>\>\>  
> \>\>\>\> Yes. The text that makes a lie of everything you claim about the site  
> \>\>\>\> is still there on the front page, as of 26 September 2005 15.55 EDT.  
> \>\>\>  
> \>\>\> And that text would be?  
> \>\>  
> \>\> Assuming that you actually care, look it up on the archives. The text  
> \>\> has not improved since the last time we talked about the alioth  
> \>\> shootout.  
> \>  
> \> Martin DeMello suggested collecting complaints on a wiki page, so every  
> \> 3 weeks when someone asks about Ruby performance on the shootout, they  
> \> can simply be directed to all the complaints you've already made.  
> \>  
> \> If for some reason you don't feel able to mention the "text that makes  
> \> a lie of everything you claim about the site" here - just savage it on  
> \> the wiki page.  
> \>  
> \> [http://rubygarden.org/ruby?BenchMarks](http://rubygarden.org/ruby?BenchMarks)
> 
> No, Isaac, I'm not going to do your homework for you anymore.

This mystery text didn't seem to exist in August either  
[http://groups.google.com/group/comp.lang.ruby/msg/9716aeda66f54a17?hl=en&](http://groups.google.com/group/comp.lang.ruby/msg/9716aeda66f54a17?hl=en&)  
[http://groups.google.com/group/comp.lang.ruby/msg/696a3b04c450815c?hl=en&](http://groups.google.com/group/comp.lang.ruby/msg/696a3b04c450815c?hl=en&)

> **···**
>
> > On 9/26/05, Isaac Gouy \<igouy@yahoo.com\> wrote:  
> > \>\> On 9/26/05, Isaac Gouy \<igouy@yahoo.com\> wrote:  
> > \>\>\>\> On 9/26/05, Isaac Gouy \<igouy@yahoo.com\> wrote:
> 
> > \>\> Incorrect. With a \*single\* shell command, I can make the Ruby  
> > \>\> Ackermann run perfectly (and, IIRC, better than the Python  
> > \>\> equivalent, or at least to deeper recursion depths even with the  
> > \>\> Python language "cheat"). This isn't undocumented; this has been  
> > \>\> mentioned to you since January. It has \*nothing\* to do with the  
> > \>\> implementation of the Ruby Ackermann, but the default stack size  
> > \>\> allocated to the Ruby process. It's more restrictive under Windows,  
> > \>\> and that is probably a compile-time option, but again -- it's \*not\* a  
> > \>\> Ruby problem. It's a problem in your methodology and your  
> > \>\> assumptions. If you've screwed up there, where \*else\* have you  
> > \>\> screwed up?  
> > \> More abuse? So much for Martin Fowler's Ruby People meme.  
> > \>  
> > \> Is there seem reason the approaches suggested by Bill Kelly and Florian  
> > \> Franks are unacceptable?
> > 
> > I'm a nice person, except to people who demonstrate themselves to be  
> > willfully dishonest, obstinate, and ignorant.
> > 
> > The approaches suggested by Bill and Florian aren't acceptable because  
> > they run Ruby and then shell out to run the program again after making  
> > the necessary environment change. It runs, but it'd be better if you  
> > just fixed your run script.
> > 
> > -austin  
> > --  
> > Austin Ziegler \* halostatue@gmail.com  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Alternate: austin@halostatue.ca

---

<div class="post-metadata">

**Author:** ![Austin\_Ziegler5](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/austin_ziegler5/32/1985_2.png) [@Austin\_Ziegler5](https://rubytalk.org/u/Austin_Ziegler5)\
**Post date:** [27 September 2005 02:52 UTC](https://rubytalk.org/t/relative-speed-of-ruby-vs-java-for-a-large-compiled-app-like-freenet/21081/45 "2005-09-27T02:52:27Z")

</div>

No humour, either. I don't think that it's just me, but I strongly  
suspect that Florian's and Bill's submissions were very tongue in cheek.  
Neither one of them is currently cross-platform, as they depend on the  
shell command "ulimit". Bill's suggests something that Ruby could  
probably do to add ulimit support directly to the language, but so far,  
Matz hasn't seen fit to add such. I \*do\* believe that it was determined  
to be something that the environment, not the program, was responsible  
for.

-austin

> **···**
>
> On 9/26/05, Isaac Gouy \<igouy@yahoo.com\> wrote:
> 
> > Austin Ziegler wrote:
> > 
> > > On 9/26/05, Isaac Gouy \<igouy@yahoo.com\> wrote:
> > > 
> > > > > Will you complain now or change the Ruby script to use this  
> > > > > functionality, that allows the program to run?
> > > > 
> > > > Here's how to contribute your program  
> > > > [http://shootout.alioth.debian.org/faq.php?sort=fullcpu#contribute](http://shootout.alioth.debian.org/faq.php?sort=fullcpu#contribute)
> > > 
> > > Obviously, you didn't even read the program to see that it was an  
> > > utter cheat to exec the program. The right solution -- as always --  
> > > for you to fix your damned run script. Fix that and you'll get  
> > > results for the Ruby program AS IT STANDS.
> > > 
> > > Don't fix it, and my assessment of the lack of honesty surrounding  
> > > the Bogus Computer Language Shootout stands.
> > 
> > I implicitly trust Ruby programmers - it's simply unthinkable that any  
> > of them would contribute a program which intentionally cheated. (And  
> > it would give the Perl guys something to complain about.)
> 
> --  
> Austin Ziegler \* halostatue@gmail.com  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Alternate: austin@halostatue.ca

[Previous page](https://rubytalk.org/t/relative-speed-of-ruby-vs-java-for-a-large-compiled-app-like-freenet/21081.md?page=2)
