[Haskell-cafe] Haskell maximum stack depth

Matthew Pocock matthew.pocock at ncl.ac.uk
Mon Feb 4 12:33:36 EST 2008

On Monday 04 February 2008, Adrian Hey wrote:
> Yikes!
> Also, I can't help thinking that the common justification for the
> current limit (that it helps find alleged bugs) is a little lame.
> It only helps find bugs if one expects ones program to use less than
> 8M of stack (hence if it's using more, it's a bug by ones *own*
> definition). 

My experience so far is that I've only triggered stack overflows when I've had 
an infinite recursion. Getting foldl and foldr wrong on long lists has 
usually lead to disasterous memory churn, not ever to an overflow.

> Regards
> --
> Adrian Hey

More information about the Haskell-Cafe mailing list