On Tue, Jan 29, 2008 at 09:28:56AM +0000, Neil Mitchell wrote: > Hi Adrian, > > > The "bug" is in ghc stack management. Why is it so important that the > > stack size is arbitrarily limited? > > It's not, but it makes some things easier and faster. A better > question is why is it important for the stack to grow dynamically. The > answer is that its not.
No, it is. A single thread running a recursion-intensive program can use many 10's of K's of stack; and 10's of K's per thread is not "cheap threads". GHC has had a dynamically growing stack for many years, starting at 4k and redoubling when exhaused; the stack size limit is a bug checker and nothing else. Stefan
signature.asc
Description: Digital signature
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe