<div dir="ltr">On Thu, Aug 18, 2011 at 21:21, Michael Serra <span dir="ltr"><<a href="mailto:mk.serra@gmail.com">mk.serra@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
My "superstition" here has been that the former only evaluates pxls'
once, whereas the latter computes it twice. This seems like a basic
issue which must have been confirmed or debunked somewhere in my
readings, but it hasn't sunk in with me. <br></blockquote><div><br></div><div>As I understand it, common subexpression elimination in lazy languages is difficult at best because the shared subexpressions may thereby become ineligible for fusion, so you're expected to do it explicitly by means of where/let clauses. So your superstition is actually the truth.</div>
</div><div><br></div>-- <br>brandon s allbery <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>wandering unix systems administrator (available) (412) 475-9364 vm/sms<br>
<br>
</div>