Re[2]: [Haskell-cafe] Haskell maximum stack depth

2008-02-05 Thread Bulat Ziganshin
Hello Matthew,

Monday, February 4, 2008, 11:45:51 PM, you wrote:

 That would be nice. But its only beneficial if there are programs
 which takes large amounts of stack at some point, but then shrink down
 to very little stack and continue for a reasonable amount of time.

 From the 'when I was a lad' department...

 Thinking back to when Java transitioned to a garbage collector that could give
 memory back to the OS, we got some unexpected benefits. Consider a machine

i would be also happy if ghc will return unused *heap* memory back to
OS - it's immediately required for my GUI program where users may open
huge files and then close them. but i personally don't have the same
need for *stack*

-- 
Best regards,
 Bulatmailto:[EMAIL PROTECTED]

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


Re[2]: [Haskell-cafe] Haskell maximum stack depth

2008-02-05 Thread Bulat Ziganshin
Hello Adrian,

Tuesday, February 5, 2008, 10:15:59 PM, you wrote:

 i would be also happy if ghc will return unused *heap* memory back to
 OS - it's immediately required for my GUI program where users may open
 huge files and then close them. but i personally don't have the same
 need for *stack*

 How do you know you don't or won't have the same need for stack?

i run my program with rather large datasets - it's happy with current
8m stack. i had problems with filterM function, though, and replaced
it with my own, tail-recursive but probably less efficient
implementation

i know that real problems for my programs will be solved by adding
heap releasing or, say, x64 support. are you have real problems with
stack management? if not, isn't it better to allow ghc developers to
solve real problems for me and other people? things will never be
ideal

from my own POV the only serious argument may be that current
situation limits usability of some programming techniques (CPS?) which
is able to increase programmer's productivity


-- 
Best regards,
 Bulatmailto:[EMAIL PROTECTED]

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