Does anyone know what became of <a href="http://web.cecs.pdx.edu/%7Empj/pubs/pepm94.html">Dictionary-free Overloading by Partial Evaluation</a>? Is it impractical for some reason?<br><br><div><span class="gmail_quote">On 5/4/07,
<b class="gmail_sendername">Adrian Hey</b> <<a href="mailto:firstname.lastname@example.org">email@example.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>The GHC users guide says overloading "is death to performance if<br>left to linger in an inner loop" and one thing I noticed while<br>playing about with the AVL lib was that using a HOF and passing
<br>the (overloaded) compare function as an explicit argument at the<br>start seemed to give noticable a performance boost (compared with<br>dictionary passing presumably).<br><br>I'm not sure why that should be, but has anyone else noticed this?
<br><br>If so, maybe this advice should be added to the user guide, especially<br>if your function repeatedly uses just one method from a class?<br><br>(or maybe not if it's nonsense :-)<br><br>I guess having done this there would be little to gain by using the
<br>SPECIALIZE pragma though (unless ghc also specialises HOFs).<br><br>Regards<br>--<br>Adrian Hey<br>_______________________________________________<br>Glasgow-haskell-users mailing list<br><a href="mailto:Glasgowfirstname.lastname@example.org">