Xana/ xana2/ 2008/ 02
For loops for fun

Raphael, what you're doing is incredibly inefficient, especially with one million string-to-integer conversions and two million back. You could do this instead:

% zsh -c 'zmodload zsh/datetime;
(( s = EPOCHSECONDS ));
for (( c = 0; c < 1000000; c++ )) do : ;
done;
print "$0 took" $(( EPOCHSECONDS - s )) "seconds to finish"'
zsh took 3 seconds to finish
Posted Sun 10 Feb 2008 08:02:38 PM EST Tags: 02
The dysthm of the night

I was walking under Union Square, listening to Hank Williams, when suddenly Hank was completely drowned out by the blaring of Hypnotic Brass Ensemble.

You have no idea how sad I am that I can identify Chicago street musicians.

Posted Thu 21 Feb 2008 10:41:44 PM EST Tags: 02