<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 15, 2018 at 8:40 AM Tom Ellis <<a href="mailto:tom-lists-haskell-cafe-2017@jaguarpaw.co.uk">tom-lists-haskell-cafe-2017@jaguarpaw.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Aug 14, 2018 at 08:50:01PM +0200, Damian Nadales wrote:<br>
> On Tue, Aug 14, 2018 at 8:08 PM Bryan Richter <<a href="mailto:b@chreekat.net" target="_blank">b@chreekat.net</a>> wrote:<br>
> > On 08/14/2018 11:22 AM, Damian Nadales wrote:<br>
> > is there something wrong with sum in particular?<br>
><br>
> From the point of view of somebody that is not that bright, like myself,<br>
> it seems. Why would you need to build a huge thunk containing the<br>
> representation of a sum of values. It is not that you can pattern match on<br>
> integers or consume the sum incrementally.<br>
> <br>
> I apologize if I infuriate people, but I really don't get the usefulness of<br>
> a lazy sum function.<br>
><br>
> > More generally, why isn't sum working for you?<br>
><br>
> Because if I want to test my function with 100000000 values it consumes a<br>
> lot of memory.<br>
<br>
Your rationale seems utterly reasonable and I'm surprised that you've even<br>
been asked to provide it.  Everyone knows the problems with lazy sum.  I'm<br>
actually astonished (and sorry) about the pushback you've received here. <br>
Having easy access to a sum function that doesn't blow up and *not* having<br>
easy access to one that does seem self evidently worthwhile.<br>
<br>
Tom<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote><div><br></div><div>+1, I agree with this wholeheartedly.</div></div></div>