[Haskell-cafe] Space leak

Arnoldo Muller arnoldomuller at gmail.com
Sat Mar 13 18:58:09 EST 2010


I am trying to use haskell in the analysis of bio data. One of the main
reasons I wanted to use haskell is because lazy I/O allows you to see a
large bio-sequence as if it was a string in memory.
In order to achieve the same result in an imperative language I would have
to write lots of error-prone iterators. I saw lazy I/O as a very strong
point in favor of Haskell.

Besides the space leaks that can occur and that are a bit difficult to find
for a newbie like me, are there any other reasons to avoid Lazy I/O?


On Sat, Mar 13, 2010 at 6:46 PM, Jason Dagit <dagit at codersbase.com> wrote:

> On Thu, Mar 11, 2010 at 3:44 PM, Arnoldo Muller <arnoldomuller at gmail.com>wrote:
>> Daniel,
>> Thank you so much for helping me out with this issue!
>> Thanks to all the other answers from haskel-cafe members too!
>> As a newbie, I am not able to understand why zip and map would make a
>> problem...
>> Is there any link I could read that could help me to understand why in
>> this case
>> zip and map created a leak? What are some function compositions that
>> should be
>> avoided when doing lazy I/O?
> Actually, it's lazy I/O itself that should be avoided.
> Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100313/6e702b51/attachment.html

More information about the Haskell-Cafe mailing list