Heh.<div><br></div><div>Just to ask, though -- would anything major get broken if we <i>did</i> go ahead, modify base, and delay inlining foldl?</div><div><br><div>Louis Wasserman<br><a href="mailto:wasserman.louis@gmail.com">wasserman.louis@gmail.com</a><br>
<a href="http://profiles.google.com/wasserman.louis">http://profiles.google.com/wasserman.louis</a><br>
<br><br><div class="gmail_quote">On Thu, Apr 22, 2010 at 1:36 PM, Gwern Branwen <span dir="ltr"><<a href="mailto:gwern0@gmail.com">gwern0@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Thu, Apr 22, 2010 at 12:15 PM, Roman Leshchinskiy <<a href="mailto:rl@cse.unsw.edu.au">rl@cse.unsw.edu.au</a>> wrote:<br>
> On 23/04/2010, at 00:32, Gwern Branwen wrote:<br>
><br>
>> On Thu, Apr 22, 2010 at 4:08 AM, Roman Leshchinskiy <<a href="mailto:rl@cse.unsw.edu.au">rl@cse.unsw.edu.au</a>> wrote:<br>
>>><br>
>>> FWIW, I'm a bit surprised that you need foldl on lists anyway. I thought everybody uses foldl'.<br>
>><br>
>> Not nearly: <a href="http://www.reddit.com/r/haskell/comments/bmd5u/thunks_and_haskell/c0nl7u2" target="_blank">http://www.reddit.com/r/haskell/comments/bmd5u/thunks_and_haskell/c0nl7u2</a><br>
>><br>
>> There are a lot of foldl uses out there.<br>
><br>
> Hmm, I'd love to see some real-world uses of foldl. I have no idea what to optimise it for in vector. Unfortunately, the link above doesn't give any examples.<br>
><br>
> Roman<br>
<br>
</div></div>Well, since you ask...<br>
<br>
$ find . -name "*.hs" -exec grep -H ' foldl ' {} \; > ~/fold.txt<br>
$ wc ~/fold.txt<br>
2206 24333 225619 fold.txt<br>
<br>
--<br>
<font color="#888888">gwern<br>
</font></blockquote></div><br></div></div>