From: Mark Hubbart Date: 2004-06-19T03:08:06+09:00 Subject: Re: the new great computer language shootout On Jun 18, 2004, at 3:43 AM, denis wrote: > Mark Hubbart wrote in message > news:<80B1FAE0-C0B5-11D8-82C7-000A95D2DFAE@mac.com>... >> On Jun 17, 2004, at 4:03 PM, Eric Hodel wrote: >> >>> Eric Hodel (drbrain@segment7.net) wrote: >>> >>>> This is because of the use of Numeric#step. The implementation is >>>> flawed. >>> >>> Never mind, I am smoking crack. >>> >>> The real problem appears to be iteration in general. >> >> surprisingly, using += on line 18 give a 12% speedup on my box. >> >> cheers, >> Mark > > It is not so surprising += is always faster in Ruby (from my > experience).This change would place us between mzscheme and mawk. > Note that many other languages (perl, icon lua...) uses += so it > should be allowed. hmmm... actually, 12% speed increase (actually a 12.7% time decrease, to be specific) would just kick us up one notch, putting us ahead of gawk (on my box, anyway, YMMV). But at least we wouldn't be last :) cheers, Mark