TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Illustrated GHC [pdf]

58 pointsby donsover 10 years ago

4 comments

ameliusover 10 years ago
As someone interested in functional programming and compilers, I recently tried to use GHC&#x27;s intermediate output. However, I got a little disappointed about the documentation that&#x27;s available for compiler writers. From what is essentially a research compiler, I&#x27;d expected a little higher standards, also in the department of available tools, and examples. In other words, the experience came too close to what I would call &quot;hacking&quot;.<p>Furthermore, the &quot;Core&quot; language is, I believe, for many purposes, more complicated than necessary (e.g., it is typed). It would be nice if there were a simpler alternative, e.g., for small projects.<p>Of course, I could be wrong about this (perhaps I looked in the wrong places), but this is just what I noticed.<p>Besides this, of course, Haskell is a cool language, and GHC an awesome compiler! :)
评论 #8824043 未加载
评论 #8823965 未加载
评论 #8823939 未加载
评论 #8823963 未加载
hardwaresoftonover 10 years ago
Fantastic in depth PDF. While lacking the talk (as others have mentioned) I was able to determine in large strokes what&#x27;s going on at the lower layers of Haskell. I particularly found the FFI interface section (ex. the breakdown of a call to getLine) extremely interesting&#x2F;useful.<p>While I think real understanding will come if&#x2F;when I have to actually wrestle with the lower layers of GHC (or am contributing to the source code or something), this served as a great overview, and a quick explanation of how Haskell &quot;really&quot; works.
jamesfisherover 10 years ago
This looks great, but needs some interpretation, like an accompanying talk. I got lost in box-and-line diagrams which I did not know how to interpret.<p>An introduction to GHC which I found helpful is its AOSA chapter: <a href="http://www.aosabook.org/en/ghc.html" rel="nofollow">http:&#x2F;&#x2F;www.aosabook.org&#x2F;en&#x2F;ghc.html</a>
mcguireover 10 years ago
I haven&#x27;t looked at the source; is GHC using <i>both</i> C-- (<a href="http://www.cminusminus.org/" rel="nofollow">http:&#x2F;&#x2F;www.cminusminus.org&#x2F;</a>) and LLVM?