TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The sequel to Writing an Interpreter in Go is coming this summer

64 点作者 misternugget将近 7 年前

7 条评论

jnbiche将近 7 年前
Once again, I&#x27;m put out a plea for a modern programming language book written similar to this one, but for a statically-typed functional language. Like a basic ML or mini-Haskell. Yes, I know there are some examples in PlZoo and similar, but I&#x27;d love to follow a step-by-step book instead of a lump of code, or a dense research paper.<p>I&#x27;d pay good money for such a book, if it was well-written.<p>Stephen Diehl was on the way to writing such a book, but he stopped before he got to type checking and pattern matching, which are exactly what I&#x27;ve tended to struggle with. I can write a lisp or other dynamically-typed lambda calculus-based language with ease. The hard part is the type checker and (to a lesser extent) Hindley-Milner. I&#x27;ve managed to figure out Hindley-Milner but am stuck on how to write the pattern matcher and certain aspects of the type checker.<p>There are also one or two dense academic books from the 1970s that I found hard to follow. The one that&#x27;s helped me get the furthest is Pierce&#x27;s Types and Programming Languages, which is dense and academic but also well-written and with good examples. But I&#x27;d really love such a book written in a similar style to this &quot;Compiler Book&quot;, &quot;Writing an Interpreter in Go&quot;, etc.<p>Also, a general complaint about recent compiler&#x2F;interpreter books: Most of these books go deep into parsing (the easiest part) and ASTs, but then they spend relatively little time on codegen and type checking, which are far more difficult.
评论 #17348989 未加载
评论 #17350454 未加载
stephen82将近 7 年前
10 days ago, I finished the first book and now I can&#x27;t wait to get in my hands this second book about compilers!<p>I&#x27;m currently reading &quot;Compiler Design in C&quot; by Allen I. Holub, <a href="https:&#x2F;&#x2F;holub.com&#x2F;compiler&#x2F;" rel="nofollow">https:&#x2F;&#x2F;holub.com&#x2F;compiler&#x2F;</a>, and so far I like it.<p>But to use Go in place of C would be a nice alternative as well!<p>I can&#x27;t wait to read the new book.
评论 #17349072 未加载
otterpro将近 7 年前
I also recommend Robert Nystrom&#x27;s book Crafting Interpreters (<a href="http:&#x2F;&#x2F;www.craftinginterpreters.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.craftinginterpreters.com&#x2F;</a>) for learning about interpreters. While it is still work-in-progress, the quality is great, and it is free to read online. The author also wrote one of my favorite book, Game Programming Patterns (<a href="http:&#x2F;&#x2F;gameprogrammingpatterns.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;gameprogrammingpatterns.com&#x2F;</a>)
nappy-doo将近 7 年前
I read this book -- typing&#x2F;modifying the code as I went, and enjoyed it immensely. Like others in the thread, I&#x27;d recommend this book.
fabrik42将近 7 年前
I read the first part and can highly recommend it!
stcredzero将近 7 年前
<i>Secure Connection Failed</i><p>The connection to the server was reset while the page was loading.<p><pre><code> The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please contact the website owners to inform them of this problem.</code></pre>
评论 #17348445 未加载
scboffspring将近 7 年前
Looks neat! I just bought the previous one. Had a very quick read through it, it looks really good.<p>Looking forward to the compiler one!