develooper Front page | | Postings from January 2007

Re: New Golf

Thread Previous | Thread Next
Andrew Savige
January 17, 2007 12:35
Re: New Golf
Message ID:
--- Jasper wrote:
> p.s.
> for($f=12;$f-->0;){
> surely
> for($f=12;--$f;){
> ?

p.p.s. Mr Magoo. I think you meant for($f=12;$f--;)

For cheap thrills, I fixed a few more Magoos, whittling dcutter's 247 to 237:

#!perl -aln

Daniel, though, in desperation, I did think of doing it this way, a quick
analysis convinced me that not even ô Great Ton could whittle this approach
down to 100. So I didn't pursue it further. It just seemed crazy to me not
to exploit the 4-stroke eval to do the arithmetic.

Generally, I think it's best not to waste too much energy wondering what
the photon ô Great Ton is doing, and just focus on working the problem.
In my case, realizing that you only need to write one converter was the
biggest breakthrough.


Send instant messages to your online friends 

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About