Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of Compiler construction

    Compiler construction

    Niklaus Wirth · 1996

    A refreshing antidote to heavy theoretical tomes, this book is a concise, practical guide to modern compiler design and construction by an acknowledged master. Readers are taken step-by-step through each stage of compiler design, using the simple yet powerful method of recursive descent to create a compiler for Oberon-0, a subset of the author's Oberon language. A disk provided with the book gives full listings of the Oberon-0 compiler and associated tools. The hands-on, pragmatic approach makes the book equally attractive for project-oriented courses in compiler design and for software engineers wishing to develop their skills in system software.

    Computer Science
    Open LibraryAmazon
    Stats for nerds
    30recommend
    81mentions
    40people
    2008–2026years
    74% recommend23% neutral2% critical

    Mentions per year

    2008201020122014201620182020202220242026

    What Hacker News says

    1. prydtFeb 2026
      I would highly recommend Wirth's Compiler Construction. Great, short book with a lot to say.
      thread
    2. microtherionDec 2025
      Wirth also wrote an extremely accessible book on Compiler Construction, using exactly the hand written recursive descent parsing approach discussed by OP.

      The initial edition was published in 1976, in German, but the latest version is available online:

      https://people.inf.ethz.ch/wirth/CompilerConstruction/Compil...

      There are also parser generators like ANTLR (https://en.wikipedia.org/wiki/ANTLR) which take an input not unlike yacc, but generate a LL parser using explicit code, rather than the table driven LALR parsing of yacc.

      thread
    3. eatonphilJan 2024
      I loved the book Compiler Construction. Wirth's emphasis on minimalism is a huge inspiration.
      thread
    4. i_don_t_knowOct 2023
      Niklas Wirth wrote a nice concise book on compiler construction. He’s targeting his own register-based RISC architecture.

      https://people.inf.ethz.ch/wirth/CompilerConstruction/index....

      thread
    5. johndoe0815Aug 2023
      I can also recommend Niklaus Wirth's "Project Oberon" - not quite literate programming, but extremely well explained code examples and data structures of the Oberon OS/language/UI system: http://www.projectoberon.net

      Wirth's "Compiler Construction" is very concise and written in a similar way: https://people.inf.ethz.ch/wirth/CompilerConstruction/ - he manages to describe a complete compiler for an Oberon subset (earlier versions of the book used PASCAL) in a bit more than 100 pages.

      thread
    6. johndoe0815Sep 2022
      Maybe not revolutionary, but I think this article about static binary translation is a great introduction to the topic:

      http://www.gtoal.com/sbt/

      (see also the "Virtual Machines" book by Smith and Nair, ISBN-13 978-1558609105, if you are interested in this topic).

      I can also recommend John Lions' "Commentary on the Sixth Edition Unix Operating System" - https://warsus.github.io/lions-/, Douglas Comer's Xinu (https://xinu.cs.purdue.edu) as well as Niklaus Wirth's "Compiler Construction" (https://people.inf.ethz.ch/wirth/CompilerConstruction/Compil...) and Project Oberon (http://www.projectoberon.com).

      thread

    Related

    Cover of Algorithms and data structures
    2008–2026

    Algorithms and data structures

    Niklaus Wirth
    8 recommend · 20
    Cover of Project Oberon
    2009–2026

    Project Oberon

    Niklaus Wirth
    30 recommend · 129
    Cover of A Small C compiler
    2018–2024

    A Small C compiler

    James E. Hendrix
    1 recommend · 4
    Cover of Algorithms + data structures=programs
    2007–2026

    Algorithms + data structures=programs

    Niklaus Wirth
    35 recommend · 81
    Cover of Engineering a compiler
    2007–2026

    Engineering a compiler

    Keith D. Cooper
    39 recommend · 91
    Cover of Modern compiler design
    2008–2026

    Modern compiler design

    Dick Grune
    12 recommend · 30
    Cover of Advanced compiler design and implementation
    2008–2025

    Advanced compiler design and implementation

    Steven S. Muchnick
    13 recommend · 25
    Cover of The architecture of symbolic computers
    2009–2026

    The architecture of symbolic computers

    Peter M. Kogge
    6 recommend · 24