From: Florian Frank Date: 2005-09-27T08:11:37+09:00 Subject: Re: Relative speed of Ruby vs Java for a large compiled app like Freenet Isaac Gouy wrote: >Complaining that it's wrong for Python to provide functionality that >allows the program to run is simply bizarre. The problem is that Ruby >doesn't provide that functionality. > > I just provided that functionality, see below: def ack(m, n) if m == 0 then n + 1 elsif n == 0 then ack(m - 1, 1) else ack(m - 1, ack(m, n - 1)) end end if ARGV.size < 2 require 'rbconfig' include Config system "ulimit -s 100000; #{File.join(CONFIG['bindir'], CONFIG['ruby_install_name'])} #$0 #{$*[0]||9} foo" else NUM = Integer(ARGV.shift) print "Ack(3,", NUM, "): ", ack(3, NUM), "\n" end Will you complain now or change the Ruby script to use this functionality, that allows the program to run? -- Florian Frank