
7 Jan
2006
7 Jan
'06
2:33 a.m.
bmaxa:
This pidigit program is not mine, but original authors of algorithm. I've just added print function. It is idiomatic Haskell, pi is pure function that generates inifinite list of digits, and on two machinas I've tested p4 2.4 ghz and amd athlon 64 3000 it's about some small percentage ( 5%) faster then one submited for benchmark. Who knows on test machines could be some percentage slower, but what is important is that it is not optimised in any way and does not use monads, but is very fast.
Yes, it's quite interesting that it performs so well, with only a little wrapping code. Cheers, Don