Derek Elkins wrote:
While perhaps for a simple throw-away program it may be beneficial to
write code that allocates unnecessary stack, I personally consider
unnecessary stack use a bug.  A stack overflow, to me, is always
indicative of a bug.

The "bug" is in ghc stack management. Why is it so important that the
stack size is arbitrarily limited? It's just an intermediate data
structure, no different from any other intermediate data structure
you may build on the heap (well apart from it's efficiency). But I guess
we would be in danger of having our programs run too fast if folk were
silly enough to make use of the stack.

So perhaps the current ghc defaults are too generous. What limit do you
think should be placed on the stack size that a non buggy program can
use?

Regards
--
Adrian Hey


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to