“Crafting Interpreters”

Learning and science

programming book

SHOW HN2017

116points
40comments
#372of 2,242 in 2017
Top 17%of 2017 by points

How HN took it

DebatedReal support and real criticism

5 positive, 4 neutral or asking, 0 mixed, 6 critical, out of 15 comments about the project. Thread score -0.08.

Docs: 0 for, 5 againstIdea: 3 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Good read and useful for learning language design

    From 2 comments
    • Some typos : cook it down to a small number of primitives that the "back end" can do its magic on. backend. Most other syntax trees always evaluate their subtress. subtrees. Good…
      ejanus on HN
    • && having higher precedence than || makes sense because && is boolean multiplication and || is boolean addition.
      rspeele on HN

Objections

  • Not a Show HN because it is a blog-style chapter, though others say books count

    From 3 comments
    • This is not a Show HN.
      TekMol on HN
    • Is the posting of a book chapter different from a blog post? The Show HN rules say blog posts can't be Show HNs. And the reason given is they "can't be tried out".
      TekMol on HN
    • It's fine. We always intended books to count as valid Show HNs.
      dang on HN
  • Some claims about Turing-completeness and syntactic sugar are imprecise

    From 2 comments
    • More nitpicking: > You can prove that by writing a simulator for a Turing machine in your language. Since Turing proved his machine can compute any computable function, by…
      justinpombrio on HN
    • A bit of nitpicking: "the function to compute the truth value of a given proof" should be "the function that returns the truth value of a given statement" (1st change because it…
      ASipos on HN

Requests

  • Fix typos and wording errors in the chapter

    From 3 comments
    • A bit of nitpicking: "the function to compute the truth value of a given proof" should be "the function that returns the truth value of a given statement" (1st change because it…
      ASipos on HN
    • > "It turns out that the answer to both is “no” and, in astonishingly, the two questions are deeply intertwined." Did you forget a word here?
      sn9 on HN
    • Some typos : cook it down to a small number of primitives that the "back end" can do its magic on. backend. Most other syntax trees always evaluate their subtress. subtrees. Good…
      ejanus on HN
  • Post only the whole book as Show HN, not each chapter

    From 1 comment
    • to make it more obvious that I was self-posting Not really what Show HN is for, though, so if you skip it for just chapter updates (rather than the whole book) you'll probably…
      pvg on HN

Questions

  • Why && and || need different precedence

    From 1 comment
    • The author asks why && and || need different precedence (Unless I misunderstood). This is because `a && (b || c)` has a different truth table than `(a && b) || c`
      pacaro on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/14637212)