CSE 331 Reading 4
Due Friday, November 20 at 11:59pm (late policy).
Our motto for this course is: Your job is to deliver code that you know works. Sooner or later you will change a program you did not write, whether a person wrote it or a machine did. What do you need besides the code, and can you get it?
The three options below answer differently. Naur says you need the theory of the program, the understanding its authors carry in their heads, and that no document can hand it to you. Winters says you need the ability to change the code safely, and that tests, policies, and practice build that ability over time. Carlini set AI agents to write a C compiler and says its tests had to be nearly perfect, or the agents would solve the wrong problem. Regehr fuzzed that compiler, found 34 bugs, and says there is no chance his fixed version is correct.
Your task: Choose one of the three options, read it, and write a reflection. See the readings page for information on what you need to submit and how reflections are graded. When you are done, submit on Gradescope as described in the "Submit" section below.
Each title below is a link to the original. If for any reason a link does not work, you can also use the "cached" links, which point to copies stored on UW servers: a PDF of each article and, for each, an HTML version that is easier to read with a screen reader or on a phone (cached links require UW NetID login).
Articles
Naur 1985, Programming as Theory Building
Originally presented by Naur as a keynote in 1984, Programming as Theory Building applies philosopher Gilbert Ryle's notion of theory to programming. In short, to have a theory is not only to know how to do something but also to be able to explain it, justify it, and answer questions about it. The programmer who has the theory of a program can say how each part matches the affairs of the world it serves, why each part is as it is, and how to change it, none of which can be written down in full. As a result, the program's text and documentation are secondary to its theory. Naur gives two cases, a compiler and a 200,000-line real-time system. In both, teams given full documentation still needed the programmers who had been with the program from the start. A program lives as long as a team that has its theory stays in charge and dies when that team dissolves, though "a dead program may continue to be used for execution in a computer and to produce useful results." Rebuilding the theory from documentation alone is "strictly impossible"; rather, a new team should discard the text and solve the problem afresh. About 45 minutes to read (cached: PDF, HTML).
Winters 2020, What Is Software Engineering?
Winters wrote this first chapter of Software Engineering at Google, a free book by Google engineers about code meant to last for decades, presenting software engineering as "programming integrated over time." Given enough time, a program must eventually change as its underlying libraries, hardware, and language also change; the chapter calls the ability to change sustainability. But what makes change hard is Hyrum's Law: "With a sufficient number of users of an API, it does not matter what you promise in the contract: all observable behaviors of your system will be depended on by somebody." So using undocumented behaviors to write "clever" code marks another line between programming and software engineering: "It's programming if 'clever' is a compliment, but it's software engineering if 'clever' is an accusation." The chapter shares various anecdotes of change, such as Google's 2006 compiler upgrade and how the company made upgrades routine afterward, as well as other factors of sustainability, such as scale and trade-offs. About 45 minutes to read (cached: PDF, HTML).
Carlini and Regehr 2026, two posts on Claude's C compiler
Read these two together:
- Carlini, Building a C compiler with a team of parallel Claudes, February 2026
- Regehr, I Fuzzed, and Vibe Fixed, the Vibed C Compiler, March 2026
Carlini, a researcher at Anthropic, set sixteen instances of Claude to write a C compiler that could build Linux and then mostly walked away. After nearly 2,000 sessions and about $20,000, the agents wrote a 100,000-line compiler in Rust that builds Linux on three architectures and has "a 99% pass rate on most compiler test suites". In this post, Carlini describes the harness around the agents, such as the tests: "it's important that the task verifier is nearly perfect, otherwise Claude will solve the wrong problem." But for an autonomous system, "it is easy to see tests pass and assume the job is done, when this is rarely the case." About 15 minutes to read (cached: PDF, HTML).
Regehr's research group built Csmith and YARPGen, tools that test compilers with random programs. Running them on Claude's compiler, Regehr found 34 bugs, most of which were miscompilations, i.e., cases where a compiler silently produces a program that does the wrong thing. They were "surface-level bugs that you would simply not find in a serious compiler." Since he does not write Rust, he had another model, Codex, write each fix, a regression test, and a summary for the post. The fixes impressed him, but whether they are good ones he cannot say: "I don't care to try to understand a vibe coded C compiler." The post opens with a correction, since its first version trusted a vibe-coded test script that reported no miscompilations when there were many. Even with his additional fixes, Regehr believes that "there's no chance" that his fork of the compiler is correct. About 15 minutes to read (cached: PDF, HTML).
Extras
These are optional. You may bring one into your reflection if you connect it to the article you chose.
Stenström and Willison 2025, the JustHTML parser
Read these two in order:
- Stenström, How I wrote JustHTML using coding agents, December 2025
- Willison, JustHTML is a fascinating example of vibe engineering in action, December 2025
Stenström spent a couple of months of off-hours pointing coding agents at the thousands of html5lib tests, the gold standard for HTML5 parsing, until his pure-Python parser passed them all. The reference implementation, html5lib, passed 88%. He chose the project because it came with those tests, so the agent could run them, see what failed, and iterate. He picked the API design, reviewed every commit, and once threw the whole thing away to start over as a port of a Rust parser. On a whim he ran a coverage tool and had the agent delete every line no test reached, from 786 lines of tree builder to 453, then worried he had cut too much and had it write a fuzzer. "After writing the parser, I still don't know HTML5 properly. The agent wrote it for me." "I didn't understand all the algorithmic choices, but I understood when it didn't do the right thing." About 10 minutes to read (cached: PDF, HTML).
Willison did not know the library had been written with AI until he had tried it and found that it worked. He calls what Stenström did "vibe engineering", as opposed to "vibe coding", where an LLM writes code "without any semblance of code review". His list of what made it engineering runs from the test suite hooked in at the start to the fuzzer at the end. The role it describes feels to him "more like a lead architect role than a hands-on coder." About 5 minutes to read (cached: PDF, HTML).
Marick 1997, How to Misuse Code Coverage
Marick had written four coverage tools before he wrote this. A
coverage tool reports which lines or conditions your tests never
exercised, and the obvious use is to write a test for each one until
the report is empty. His second example shows what that misses: an
if handles two of a function's three return codes, every test
passes, coverage is complete, and the program is still wrong, because
the bug is code that does not exist, a fault of omission. His key
observation: "If a part of your test suite is weak in a way that
coverage can detect, it's likely also weak in a way coverage can't
detect." So a missed condition is a clue that a feature was
undertested, and the fix is to rethink how that feature should have
been tested. Treat clues as commands and you are the Sorcerer's
Apprentice,
with tools that work "with inhuman efficiency" toward "only what you
thought you wanted." About 25 minutes to read
(cached: PDF,
HTML).
Bessey 2010, A Few Billion Lines of Code Later
Bessey and eight colleagues at Coverity wrote this account of selling
a static bug finder, a tool that finds bugs by reading code rather
than running it. By late 2009 about 700 customers had licensed it,
with over a billion lines of code among them. The authors'
"fundamental law of bug finding is No Check = No Bug". It has two
corollaries: you can't check code you don't see, and you can't check
code you can't parse. Seeing the code means finding it inside a
customer's build system; one customer had never heard of make.
Parsing it is hard because "The C language does not exist": people
write whatever their compiler accepts. The harder lessons are about
people. A customer shown a loop that can never run called it a false
positive, since "a loop executes at least once." An upgraded tool
that found more bugs made a manager's graph go the wrong way: "no
manager gets a bonus for Figure 2." An error nobody understands gets
labeled false, so the team dropped analyses too clever to explain.
About 40 minutes to read
(cached: PDF,
HTML).
Stenberg 2024 to 2026, the curl posts
Daniel Stenberg has led curl, the tool and library for moving data over the internet, since the 1990s. The project is almost 180,000 lines of C. Five posts from his blog, read in order, follow what AI has done to curl's security reports and its code:
-
January 2024, The I in LLM stands for intelligence: AI-written reports of bugs that do not exist arrive, and "better crap is worse", since a well-written wrong report takes longer to disprove. He expects tools "that actually work (better)", and suspects "an ever so tiny (intelligent) human check" would make any of them much better (cached: PDF, HTML).
-
October 2025, A new breed of analyzers: two researchers using AI-powered analyzers send over four hundred suspected bugs, "remarkably few of them complete false positives", "pretty much concurrently with the AI slop avalanche" (cached: PDF, HTML).
-
April 2026, High-Quality Chaos: the bounty is gone, and "The slop situation is not a problem anymore." Reports come at double 2025's rate, the confirmed rate is back to the pre-AI level, and "Almost every security report now uses AI to various degrees." He calls it "the high quality chaos era" (cached: PDF, HTML).
-
June 2026, A human in control: human reviews are much better than the AI bots', though the bots often find an issue after the humans are done. "We stand for every bit of code we merge – as humans" (cached: PDF, HTML).
-
October 2026, "ignore the slop": critics tell him to ignore AI-made reports, and he says he cannot: "Since spring 2026 the slop reports are practically gone. Our current challenge is much harder: high volume, high quality" (cached: PDF, HTML).
About 35 minutes for the five.
Submit
Submit your reflection on Gradescope by Friday, November 20 at 11:59pm. The Gradescope assignment will ask you which option you read and whether you used AI for editing, and it has one box for each of the three parts of your reflection. See the readings page for more information.