
25 Apr
2003
25 Apr
'03
4:42 p.m.
Alastair writes:
I conjecture that the problem would go away if you added appropriate uses of seq or $! to your program so that the value stored in the MVar was always fully evaluated
Nick Name
You are right, [...]
I further conjecture that more than half of all space leaks can be identified not by profiling your code but by running the following command: grep '+1' *.hs *.lhs I'm half joking but I've found that this one is very common in certain kinds of code. Every now and then I think of extending Hugs with unpointed Ints which would be identical in syntax and semantics to GHC's unboxed Ints but would have a different representation. -- Alastair