https://wiki.haskell.org/index.php?title=HaskellImplementorsWorkshop/2013/Adams&feed=atom&action=historyHaskellImplementorsWorkshop/2013/Adams - Revision history2016-12-09T16:31:34ZRevision history for this page on the wikiMediaWiki 1.19.14+dfsg-1https://wiki.haskell.org/index.php?title=HaskellImplementorsWorkshop/2013/Adams&diff=56847&oldid=prevEdward Z Yang: Created page with "= Optimizing "Scrap Your Boilerplate" with HERMIT = ''Michael D. Adams, Andrew Farmer and José Pedro Magalhães'' GHC has a flexible system for adding new optimizations to ..."2013-09-16T06:37:32Z<p>Created page with &quot;= Optimizing &quot;Scrap Your Boilerplate&quot; with HERMIT = &#039;&#039;Michael D. Adams, Andrew Farmer and José Pedro Magalhães&#039;&#039; GHC has a flexible system for adding new optimizations to ...&quot;</p>
<p><b>New page</b></p><div>= Optimizing &quot;Scrap Your Boilerplate&quot; with HERMIT =<br />
<br />
''Michael D. Adams, Andrew Farmer and José Pedro Magalhães''<br />
<br />
GHC has a flexible system for adding new optimizations to the compiler pipeline. However, the traditional workflow for developing these optimizations is still batch oriented, which slows down the development of new optimizations. The HERMIT system addresses this by extending GHC and allowing compiler developers to experiment with optimizations interactively and thus more easily explore various optimization designs. Such an optimization can then be converted to a traditional, batch optimization for practical use by compiler users.<br />
<br />
In this talk, we present a case study in this methodology by using HERMIT to develop an optimization for the Scrap Your Boilerplate library. Code written with Scrap Your Boilerplate is often an order of magnitude or more slower than equivalent handwritten code, and previous attempts at optimizing Scrap Your Boilerplate have met with little success. Nevertheless, by using the interactive style of optimization development enabled by HERMIT, we can create an optimization that completely eliminates the runtime overhead of Scrap Your Boilerplate programs and produces code that is as fast as handwritten code.</div>Edward Z Yang