[Haskell-cafe] Re: Tutorial uploaded

Tomasz Zielonka tomasz.zielonka at gmail.com
Wed Dec 21 15:28:34 EST 2005


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


More information about the Haskell-Cafe mailing list