
21 Dec
2005
21 Dec
'05
3:28 p.m.
On Wed, Dec 21, 2005 at 07:13:07PM +0000, Philippa Cowderoy wrote:
Try running
putStrLn (unlines (repeat "hello!"))
You may be surprised ;-)
Or not ;-) But yes, I should've checked and my comments on how that'll behave stand. It would be nice to think something clever could happen regarding memory management as well, but I'm familiar enough with GCed systems by now to be somewhat wary of cleverness.
I don't know how it's done, but when you compile it with 'ghc -O2', the program runs in constant space. Unfortunately with Hugs and GHCi it grows. Best regards Tomasz -- I am searching for a programmer who is good at least in some of [Haskell, ML, C++, Linux, FreeBSD, math] for work in Warsaw, Poland