<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Verdana","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Fantastic.&nbsp; As Simon says, what would be most helpful is better documentation on the wki, in the Commentary. The root is here<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><a href="http://hackage.haskell.org/trac/ghc/wiki/Commentary">http://hackage.haskell.org/trac/ghc/wiki/Commentary</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">and the rudimentary GHCi docs are here<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/GHCi">
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/GHCi</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">If that&#8217;s too awkward, a link to a PDF would be good, but it&#8217;s clearly not editable by others.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D">Simon<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></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;"> William Kenyon [mailto:wk249@cam.ac.uk]
<br>
<b>Sent:</b> 30 April 2013 10:28<br>
<b>To:</b> Simon Marlow; Simon Peyton-Jones<br>
<b>Cc:</b> Norman Ramsey; ghc-devs@haskell.org<br>
<b>Subject:</b> Re: Fwd: GHC internals<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&gt; If you mean the details of bytecode compilation and the bytecode interpreter, I'm really not sure that there is. &nbsp;That's bad; there &nbsp;</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">&gt; should be. I'm ccing Simon M in case he knows of something.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal">I'm just starting to write detailed documentation for the bytecode generator and interpreter as part of my Masters project,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">What format would be most useful for you guys? I could do it in haddock and then include it into my project?&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Or just do it in plain latex and make my report publicly&nbsp;available?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Will<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On 30 April 2013 10:02, Simon Marlow &lt;<a href="mailto:marlowsd@gmail.com" target="_blank">marlowsd@gmail.com</a>&gt; wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">From: *Simon Peyton-Jones* &lt;<a href="mailto:simonpj@microsoft.com" target="_blank">simonpj@microsoft.com</a><br>
&lt;mailto:<a href="mailto:simonpj@microsoft.com" target="_blank">simonpj@microsoft.com</a>&gt;&gt;<o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
<br>
Norman<br>
<br>
| &nbsp; &nbsp;- Is there anything published about the implementation of GHCi?<br>
| &nbsp; &nbsp; &nbsp;Or perhaps something on the Developers' Wiki that explains how it<br>
works?<br>
<br>
If you mean the details of bytecode compilation and the bytecode<br>
interpreter, I'm really not sure that there is. &nbsp;That's bad; there<br>
should be. I'm ccing Simon M in case he knows of something.<o:p></o:p></p>
</div>
</blockquote>
<p class="MsoNormal"><br>
Julian Seward wrote some notes on the way GHCi works, which are in the commentary:<br>
<br>
<a href="http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/GHCi" target="_blank">http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/GHCi</a><br>
<br>
It's not much, but there are some technical details about stacks and suchlike there. &nbsp;The bytecode itself is a pretty simple stack machine, I can probably answer questions if there's anything you need some help with.<br>
<br>
Cheers,<br>
&nbsp; &nbsp; &nbsp; &nbsp; Simon<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
<br>
<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">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><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
</body>
</html>