[Haskell-cafe] Haskell maximum stack depth

Adrian Hey ahey at iee.org
Tue Feb 5 03:41:15 EST 2008

Stefan O'Rear wrote:
> On Mon, Feb 04, 2008 at 10:13:12PM +0000, Adrian Hey wrote:
>>> Also
>>> remember that this behaviour never wastes more than 50% of the stack,
>>> which is a relatively small amount.
>> Only if the stack is relatively small. Would you say the same about
>> heap, or about a stack that only needed 50% of heap space but ended
>> up using all of it? Or money? Using twice as much as you need of
>> anything is bad IMO.
> Apparently you don't realize that GHC normally uses twice as much heap
> as is needed, due to the decision to use a two-space copying collector
> by default for the oldest generation. :)

Yikes again! It gets worse :-)

Perhaps I should have said *live* heap.

Adrian Hey

More information about the Haskell-Cafe mailing list