[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Numeric Maze (#60

Kroeger, Simon (ext)

1/5/2006 2:07:00 PM


> The code is ugly, please turn down the light:

This was already true with the original (my) code
but is so annoying now that I would like to recommend:

Don't do that at home!

If you realy, realy need the additional 20% speed up
try to implement a clean C extension instead of abuse
ruby in such a way. (you will probably get a lot more
than 20%)

I know this was more like sport than the real life,
all I want to say is: this is not how ruby should
look like.

cheers

Simon


1 Answer

James Gray

1/5/2006 2:52:00 PM

0

On Jan 5, 2006, at 8:07 AM, Kroeger, Simon (ext) wrote:

>
>> The code is ugly, please turn down the light:
>
> This was already true with the original (my) code
> but is so annoying now that I would like to recommend:
>
> Don't do that at home!

<laughs>

> If you realy, realy need the additional 20% speed up
> try to implement a clean C extension instead of abuse
> ruby in such a way. (you will probably get a lot more
> than 20%)
>
> I know this was more like sport than the real life,
> all I want to say is: this is not how ruby should
> look like.

Yeah, I have to agree. The algorithm is generally the biggest change
you can make and worth doing in any language, but benchmarking
specific syntax is going too far, I think. Ruby is right when it's
expressive, clear, and fast enough, in my opinion.

James Edward Gray II