Skip to content
HN On Hacker News ↗

Writing a C Compiler, in Zig

▲ 178 points 69 comments by tosh 4w ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

1 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 1 of 1
SEGMENTS · AI 0 of 1
WORD COUNT 111
PEAK AI % 1% · §1
Analyzed
Apr 23
backend: pangram/v3.3
Segments scanned
1 windows
avg 111 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 111 words · 1 segments analyzed

Human AI-generated
§1 Human · 1%

⏏️ First foray into the Zig programming language 2025-06-17 This is a series of articles I wrote while writing paella, following Nora Sandler's Writing a C Compiler. It was both an exercise to learn Zig and a way to waste time instead of looking for work, as I am currently "between jobs". I did not edit them as I collect them here outside of fixing some broken links.

Chapter 1: Intro Chapter 2: Unary Chapter 3: Binary Chapter 4: Logic Chapter 5: Variables Chapter 6: Conditions Chapter 7: Blocks Chapter 8: Loops Chapter 9: Functions Chapter 10: Linking

If/when I continue with the book, I shall post the following writeups here.