
Jason,
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?
Arnoldo.
On Sat, Mar 13, 2010 at 6:46 PM, Jason Dagit
On Thu, Mar 11, 2010 at 3:44 PM, Arnoldo Muller
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