<div dir="ltr">you have access to hardware for testing HTM? I thought haswell wasn&#39;t publicly available yet...</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 20, 2013 at 10:31 AM, Ryan Yates <span dir="ltr">&lt;<a href="mailto:fryguybob@gmail.com" target="_blank">fryguybob@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">Thanks!  I&#39;ll work on getting it onto the wiki soon.  My next step is to apply hardware transactions to improve STM performance.  For this I will need to collect some meaningful STM benchmarks.  If anyone has some particular use cases or code where they would like to see improved STM performance on I would love to know.  There are several potential improvements to the existing STM performance that I will also investigate along the way.<span class="HOEnZb"><font color="#888888"><div>


<br></div></font></span><div><span class="HOEnZb"><font color="#888888">Ryan</font></span><div><div class="h5"><br><div><br><div class="gmail_quote">On Mon, May 20, 2013 at 10:04 AM, Simon Peyton-Jones <span dir="ltr">&lt;<a href="mailto:simonpj@microsoft.com" target="_blank">simonpj@microsoft.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 lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1f497d">Ryan<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1f497d">Great stuff.  What you have is almost certainly more accurate, complete, and up to date than anything else we have, so thank you.  As others have said, putting
 it on the GHC wiki would be much the best place.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1f497d">Perhaps here:
<a href="http://hackage.haskell.org/trac/ghc/wiki/Commentary/Rts/STM" target="_blank">http://hackage.haskell.org/trac/ghc/wiki/Commentary/Rts/STM</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1f497d">Simon<u></u><u></u></span></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1f497d">Microsoft Research Limited (company number 03369488) is registered in England and Wales<u></u><u></u></span></i></p>



<p class="MsoNormal"><i><span lang="EN-US" style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1f497d">Registered office 21 Station Road, Cambridge, CB1 2FB
</span></i><b><span style="font-size:11.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:ghc-devs-bounces@haskell.org" target="_blank">ghc-devs-bounces@haskell.org</a> [mailto:<a href="mailto:ghc-devs-bounces@haskell.org" target="_blank">ghc-devs-bounces@haskell.org</a>]
<b>On Behalf Of </b>Ryan Yates<br>
<b>Sent:</b> 17 May 2013 21:06<br>
<b>To:</b> <a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<b>Cc:</b> Michael L. Scott<br>
<b>Subject:</b> STM Commentary<u></u><u></u></span></p>
</div>
</div><div><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">For a while now I&#39;ve been working on understanding GHC&#39;s STM implementation and I finally have something to share.  I&#39;ve written a commentary on the implementation which can be found here:<u></u><u></u></p>



<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="http://fryguybob.github.io/STM-Commentary/" target="_blank">http://fryguybob.github.io/STM-Commentary/</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The source is here:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://github.com/fryguybob/STM-Commentary/" target="_blank">https://github.com/fryguybob/STM-Commentary/</a><u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">It still could use a bit of polish and I would love to hear about any missing details, confusion, or misunderstandings.  My goal in writing this was to fill in the gap found here <a href="http://hackage.haskell.org/trac/ghc/wiki/Commentary/Rts/STM" target="_blank">http://hackage.haskell.org/trac/ghc/wiki/Commentary/Rts/STM</a>.
  I happy to have it live where it is most appropriate.  If anyone has opinions on that, let me know.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Any comments are welcome, it may be easiest to just comment on the source directly on Github, but I will, of course, take feedback in any form.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Ryan Yates<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
<br></blockquote></div><br></div>