25 Jan
2001
25 Jan
'01
12:33 a.m.
Hmmm, I'm slowly using track of this whole discusssion. But as a simple matter of fact: Using or not using optimizations (aka -O) changes the space behaviour of your Haskell programm. Sad as it may sound, it seems to be the price you have to pay for lazy evaluation. Of course it depends on the exact reading of "space behaviour" (temporary allocation vs. max heap usage), but it basically remains the same. On a positive side, this shifts debugging to a much higher level (searching for space leaks) than commonly done in imperative/OO/... languages (searching for semantic bugs in the first place, space leaks only come after that). Just my 2 cents, Sven