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.

Crafting Interpreters

187 pointsby afshinmehalmost 7 years ago

8 comments

erikpukinskisalmost 7 years ago
This is awesome. I have been writing and re-writing several horrible regex-based parsers (<a href="https:&#x2F;&#x2F;github.com&#x2F;erikpukinskis&#x2F;parse-a-little-js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;erikpukinskis&#x2F;parse-a-little-js</a>) to back an IDE I am building, and I can sense I am well passed the “you need to learn how to do this properly, Erik) point.<p>So far this book seems to be just at the right pitch for my purposes.<p>Does anyone else have any recommendationed reading for someone like me? My absolute priority is keeping the code simple and having as few features as possible.<p>I’ve actually been using my ignorance as a design constraint... I don’t want to allow complex syntax in the editor, (it’s not a general purpose editor) and I want the parser source to be approachable.<p>But perhaps by this point I may have the resolve to resist the power a proper parser will give me.
评论 #17497806 未加载
评论 #17497521 未加载
评论 #17498296 未加载
评论 #17497248 未加载
评论 #17497453 未加载
评论 #17516057 未加载
评论 #17497241 未加载
zerralmost 7 years ago
It would be interesting if authors (of this and similar materials) will comment how this kind of activity helped them landing new gigs and&#x2F;or investments, contacts, etc...
评论 #17496522 未加载
评论 #17497268 未加载
scottiousalmost 7 years ago
I love the authors other work, it really helped me when I was getting into compiler design. I&#x27;m very excited to start reading.
Silhouettealmost 7 years ago
This is shaping up to be an interesting read if you&#x27;ve ever thought about designing your own language and wondered what happens next after the basic stuff that every compiler tutorial covers.<p>It&#x27;s also beautifully presented, so compliments to author for that as well.
mrcactu5almost 7 years ago
i think this is cool. i could learn new languages all day. however I&#x27;ve seen people argue on HN that writing language is a waste of time. why should we embark on such an exercise?
评论 #17497716 未加载
评论 #17497891 未加载
评论 #17497764 未加载
评论 #17499094 未加载
评论 #17497794 未加载
评论 #17497715 未加载
jokoonalmost 7 years ago
I&#x27;ve started reading it, until it used the visitor pattern for its parser. It sort of generates Java code with some hacky way of doing things. It felt complex for no good reason.<p>I have nothing against patterns, but it made it harder to follow, so I stopped reading it.
评论 #17496750 未加载
评论 #17496751 未加载
_raulalmost 7 years ago
Notice that while the linked page says &quot;You can read the whole book, for free, online&quot;, chapters 18 to 30 haven&#x27;t been written yet (e.g: <a href="http:&#x2F;&#x2F;craftinginterpreters.com&#x2F;types-of-values.html" rel="nofollow">http:&#x2F;&#x2F;craftinginterpreters.com&#x2F;types-of-values.html</a>).
评论 #17496560 未加载
评论 #17496923 未加载
vectorEQalmost 7 years ago
i love these kinds of articles, but i dont understand why put the first 2 lines in it, which kind of contradict eachother.<p>&quot; A handbook for making programming languages.<p>This book contains everything you need to implement a full-featured, efficient scripting language.&quot;<p>The title makes it look like you would write a compiler &#x2F;assembler or some plugin for existing one. and then the first scentence dives down to the actual content.<p>This is obvious from the title here. it just bugs me these kind of words (programming language vs scripting language) are used like that.<p>Other than that, always interested to read about both topics :D
评论 #17497220 未加载
评论 #17497211 未加载
评论 #17497196 未加载