[Haskell-cafe] Infinite lists in real world programs

Yves Parès limestrael at gmail.com
Wed Dec 15 18:38:04 CET 2010


> try to compute their length

Yes ^^, that's silly.

> I don't see any reason why using multiple infinite lists would have
anything to do with the performance

That's comforting. Well, it seems to be a very simple, haskellish and
elegant solution, so basic pragmatism -- with an slice of pessimism -- tells
it was too good too be true ^^.

2010/12/15 Brent Yorgey <byorgey at seas.upenn.edu>

> On Wed, Dec 15, 2010 at 02:52:11PM +0100, Yves Parès wrote:
> > Hello Café,
> >
> > So is it viable or would the use of multiple infinite lists kill the
> > performances?
>
> Sounds perfectly reasonable to me.  I don't see any reason why using
> multiple infinite lists would have anything to do with the performance
> of your program -- unless you do something silly like try to compute
> their length. =)
>
> -Brent
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20101215/e9bb9765/attachment.htm>


More information about the Haskell-Cafe mailing list