Hacker ApprovedDepartments

Types and Programming Languages

Types and Programming Languages by Benjamin C. Pierce

by Benjamin C. Pierce

Shares rank 6 of 28 computer science textbooks by recommenders

Recommended as the main book on type systems for its good coverage, though critics find its type-system treatment rudimentary and less grounded than CI.

Recommended as the main book on type systems for its good coverage, though critics find its type-system treatment rudimentary and less grounded than CI.

7 people gave an opinion

recommend it
7
criticize it
0
approval share
100%
Each figure is one person. RecommendsCriticizes

Recommended in 4 of 13 months

  1. November 2025: not recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: not recommended
  6. April 2026: recommended
  7. May 2026: not recommended
  8. June 2026: not recommended
  9. July 2026: recommended
  10. August 2026: not recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 7 people recommend itNeeds 10 or more, not met.
  • Nobody criticizes itNeeds 2 to 1 or better, met.
  • Recommended in 4 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Recommended as the main book

    “The main book I can recommend is Types and Programming Languages by Pierce.”

    Comment from 11 Apr 2026 in “Ask HN: Best books on building a programming language”
  • Good coverage of type systems

    “has some great coverage of this topic”

    Comment from 17 Oct 2026 in “Types of types: Haskell's Kind system”

What people warn about

Each mark is one comment

  • Rudimentary type system coverage

    “this book gives extremely rudimentary information on type systems”

    Comment from 5 Jul 2026 in “Introduction to Compilers and Language Design”
  • Less grounded than CI

    “It's not a bad book, but less grounded than CI”

    Comment from 15 Apr 2026 in “Want to Write a Compiler? Just Read These Two Papers (2008)”

Other computer science textbooks people recommend

The four most recommended other computer science textbooks, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Types and Programming Languages by Benjamin C. Pierce compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Structure and Interpretation of Computer Programsby Abelson and Sussman55592%12—Approved
The Art of Computer Programmingby Donald E. Knuth28682%10—Approved
Structure and Interpretation of Computer Programsby Abelson and Sussman120100%9—Approved
Quantum Computation and Quantum Informationby Nielsen and Chuang120100%3——
Types and Programming Languagesby Benjamin C. PierceThis page70100%4——
See all 28 computer science textbooks, ranked

What people said

4 of the 7 comments that mention it, newest first. Each links to the original comment.

“has some great coverage of this topic”

RecommendsComment from 17 Oct 2026 in “Types of types: Haskell's Kind system”

“this book gives extremely rudimentary information on type systems”

MixedComment from 5 Jul 2026 in “Introduction to Compilers and Language Design”

“It's not a bad book, but less grounded than CI”

MixedComment from 15 Apr 2026 in “Want to Write a Compiler? Just Read These Two Papers (2008)”

“The main book I can recommend is Types and Programming Languages by Pierce.”

RecommendsComment from 11 Apr 2026 in “Ask HN: Best books on building a programming language”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.