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">&lt;<a href="mailto:gwern0@gmail.com">gwern0@gmail.com</a>&gt;</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 &lt;<a href="mailto:rl@cse.unsw.edu.au">rl@cse.unsw.edu.au</a>&gt; wrote:<br>
&gt; On 23/04/2010, at 00:32, Gwern Branwen wrote:<br>
&gt;<br>
&gt;&gt; On Thu, Apr 22, 2010 at 4:08 AM, Roman Leshchinskiy &lt;<a href="mailto:rl@cse.unsw.edu.au">rl@cse.unsw.edu.au</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; FWIW, I&#39;m a bit surprised that you need foldl on lists anyway. I thought everybody uses foldl&#39;.<br>
&gt;&gt;<br>
&gt;&gt; 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>
&gt;&gt;<br>
&gt;&gt; There are a lot of foldl uses out there.<br>
&gt;<br>
&gt; Hmm, I&#39;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&#39;t give any examples.<br>
&gt;<br>
&gt; Roman<br>
<br>
</div></div>Well, since you ask...<br>
<br>
$ find . -name &quot;*.hs&quot; -exec grep -H &#39; foldl &#39; {} \;  &gt; ~/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>