Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Writing huge result of `show` to file results in out of memory (Mahdi Dibaiee) 2. Re: Writing huge result of `show` to file results in out of memory (Imants Cekusins) ---------------------------------------------------------------------- Message: 1 Date: Fri, 28 Oct 2016 12:57:22 -0400 From: Mahdi Dibaiee <mdiba...@aol.com> To: beginners@haskell.org Subject: [Haskell-beginners] Writing huge result of `show` to file results in out of memory Message-ID: <1580c39785d-a71-5...@webstg-a04.mail.aol.com> Content-Type: text/plain; charset="utf-8" I know that there are other ways of doing it, I just want to understand where lies the problem here. I just read the realworldhaskell book by O'Reilly, in one section, Lazy I/O [0], it's explained that there should be no problem writing big strings, without consuming the whole string to files, however big they are. I would appreciate it if someone could point out the problem there. Thanks [0]: http://book.realworldhaskell.org/read/io.html#io.lazy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20161028/20aada0e/attachment-0001.html> ------------------------------ Message: 2 Date: Fri, 28 Oct 2016 19:13:23 +0200 From: Imants Cekusins <ima...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] Writing huge result of `show` to file results in out of memory Message-ID: <CAP1qinbj=kcsu3u3bkzteqabtxdjr4kggtf2nyfywkgy_si...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" > there should be no problem writing big strings, without consuming the whole string lazy means evaluated when needed. However when a string is evaluated, it is evaluated fully, I guess. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20161028/f01240a7/attachment-0001.html> ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 100, Issue 20 ******************************************