November 05, 2026

One Unthinkable Thought

Bill Gates has been telling the world that AI will be much more intelligent than humans. In a recent interview with The Observer, he compared the age of AI to an "evolutionary event" similar to the transformation of "monkeys to humans." The most intelligent thing, he said, "is being redefined."

A chimpanzee at a desk with pencil and paper, one vision for what it will be like to be working as a professor in the age of AI

He is not alone. Geoffrey Hinton puts it this way: "imagine yourself and a three-year-old. We'll be the three-year-olds." Yoshua Bengio warns that building such machines is "like creating a competitor to humanity that is smarter than us."

Their claim comes down to this: AI will be as incomprehensible to us as we are to monkeys. It is an extraordinary claim. It is also an important one, because I talk with hundreds of students, and they are planning their futures around these predictions of the world beyond the singularity.

Believing that AI will be irretrievably beyond our grasp invites defeatism. It teaches people to offload their choices to AI.

If we believe the gap cannot be bridged, the best we can hope for is that AI treats us kindly, the way a parent treats a child. That is Hinton's proposal. The alternative is that AI becomes a rival species on the planet that is stronger than us, as Bengio has warned.

But is the gap between human understanding and AI thinking actually impossible to cross? I believe that on this point, Gates, Hinton, and Bengio are wrong. And that has huge implications for what we should be doing now....

Continue reading "One Unthinkable Thought"
Posted by David at 01:48 PM | Comments (19)

November 02, 2026

In Math We Trust

Have you ever checked the wrong box in a wire transfer?

Citibank once lost nearly a billion dollars by messing up a transfer form. On August 11, 2020, Citibank was supposed to disburse $7.8 million of loan payments for Revlon, but instead it sent about $900 million of its own money to hundreds of lenders by mistake. It was because three checkboxes needed to be checked on the forms, and a subcontractor had checked only one. Two supervisors approved it anyway. The form was so confusing that all three believed it was right.

Citibank asked for the money back the next day. But ten investment firms did not return it. They knew Revlon was on its way to bankruptcy and not good for the money, and they seemed to have lucked out on a chance to recover their principal. Under New York law, a judge ruled, a creditor may keep money it is actually owed if it had no reason to suspect a mistake, so they could keep it! But in September 2022 the Second Circuit reversed. A reasonable lender, it held, would have known that an unannounced early payoff by a near-bankrupt company, at triple the market price, was an error. The money, frozen during the appeal, went back to Citibank.

The argument that cryptocurrency beats fiat currency in security has always struck me as stupid. The beauty of banking is that it is about human trust. In regular banking, mistakes are common and are routinely reversed. I am not sure who really believes we are best served by a cryptographic system where any tiny error is fully irreversible and might mean that you lose billions of dollars. We humans are imperfect, so we need a banking system that is robust to our foibles.

I was reminded of this again when on October 29, Binance, totally unsurprisingly, lost more than $6 billion to hackers.

Yes, in math we trust. But we must recognize that humans are not creatures of mathematical precision.

In the era of superhuman AI and lightning-fast code, we will increasingly grapple with the issue that perfection is not actually good enough for human use. A formally verified program can still do exactly the wrong thing if no human can understand what it does.

We need our systems to be understandable. We must recognize and accommodate human limitations.

Earlier: In Code We Trust


Posted by David at 07:29 AM | Comments (1)

July 16, 2026

Hunting Zombies

Is it possible to write good code without reading it? Right now a debate is raging between Andrew Kelley and Jarred Sumner about whether tests are "sufficient to catch bugs in 1 million lines of unreviewed slop."

The standard view in the community is that "yes, you can do it if you test it well." But I think that view vastly oversimplifies the challenge. Testing a million-line codebase is harder than it seems. So in this post we will crack open the problem with some specifics. We will take a look at some AI-written code to see one of the core challenges facing AI-driven development.

On this post: unlike the bun port, here you can play along! Enter the NetHack Teleport Coding Challenge by pointing your coding agent at the repo and trying to get it to score some points. The contest, open to anybody, asks coding agents to port the recently-released version of NetHack from C to JavaScript. We will be looking at two specific contestants currently in the challenge.

Massive Code is an Interpretability Problem

NetHack 5.0 is 442,901 lines of C and Lua accumulated over more than four decades. A serious port will contain more code than any one person can carefully review. Is it possible to do high-quality software engineering without reading the code?

The lack of code review is an emblematic AI interpretability problem.

In my research on neural-network internals, the interpretability problem arises because a network’s calculations are too numerous to inspect or understand directly. Interpretability seems like it should be easier in a regular programming task: here there is no neural network inside the finished program, and every line is ordinary readable JavaScript, the world's most widely known programming language. Yet in the Teleport contest, traditional code becomes opaque for the same reason as a big neural network does: there is simply too much of it.

To understand the problem it is instructive to look at a single game of the contest and dive into two of the top contestants' play.

Continue reading "Hunting Zombies"
Posted by David at 09:41 AM | Comments (0)

May 16, 2026

The Fifty Dollar Gap

My rideshare driver today asked me for advice.

First-generation immigrant who used to work for the US Army in Afghanistan. Told me about his old job team-driving trucks crossing the continent and back in six-day 24-hour hauls. Stopped when trucking stopped paying well. Now he drives 100 miles into SF to get good Uber and Lyft fares, but they are not paying very well any more either. Obviously works hard, looking for better work, but here nobody recognizes his degrees and certifications from his home country. Should he get a degree? Should he learn to program computers? Should he be a plumber? A carpenter? What to do?

I puzzled it over as we drove by all the silicon valley software companies who have been laying off thousands of people in recent months. I told him: he should do what successful immigrants do. Skip the game of working for the boss and just make customers happy directly. He should work for his own business.

He made $18 driving me to the airport. The app charged me $72. If he owned his business, that revenue would be his.

"Good example," he said.


Posted by David at 09:01 AM | Comments (0)

May 06, 2026

The Teleport Contest

(and Dealing With LLM Religion)

I am opening an LLM coding contest, and I want you to enter it.

Four days ago NetHack 5.0 was released, the newest major version of a 46-year-old open-source roguelike game, 442,901 lines of C and Lua that have accumulated layers of intricate and ingenious gameplay rules.

The contest is to port it to simple, readable JavaScript so that the game can run in the browser while playing bit-exactly like the original. Same screen at every keystroke....

Continue reading "The Teleport Contest"
Posted by David at 08:42 AM | Comments (0)

April 08, 2026

Dario's Weird Race to the Top

The tech industry's founding ideals have a mixed track record. But the right response is not cynicism. We should hold idealists to their ideals. And we should celebrate it when they come through.

Every major tech company sets out with an idealistic motto. Google had "don't be evil." Apple wanted to "think different." OpenAI was founded to ensure AI "benefits all of humanity." These slogans have a way of aging badly, hollowed out by the ordinary pressures of growth and competition until they become punchlines.

Anthropic's version of this founding idealism has always been Dario Amodei's argument that the best way to promote AI safety is to "race to the top": build the most powerful AI first, so that a safety-conscious lab sets the cultural norms rather than leaving that job to someone less careful. I have always been a big believer in Anthropic's approach and Anthropic's people, but I'll admit this rationale has always sounded a little odd to me. Convenient, even.

Security Theatre and Quarterly Capitalism

When OpenAI held back GPT-2 in 2019, calling it too dangerous to release, I wondered whether it was really meaningful to withhold an AI until humanity was ready for it. GPT-2 turned out to be fine. OpenAI never had anything on the line; nothing was really at stake. The gesture felt like theater.

But this week, with the Mythos preview non-release, the case for self-restraint in AI is suddenly much clearer. Anthropic trained their most powerful model, found that it was such a capable hacker that it broke out of its sandbox and built a multi-step exploit to reach the open internet (Sam Bowman discovered this when the model emailed him while he was eating a sandwich in a park), and instead of shipping a product, they announced that you cannot have it. Limited access goes to defenders first, through Nick Carlini's Project Glasswing, so that big tech and cybersecurity firms get a head start before similar cyberhacking capabilities spread across the industry.

This is not theater: the risk was not speculated. It materialized in the lab, and Anthropic saw the risk because they have been watching out for it. And now, in a moment when there is real money to be made, a huge and growing revenue stream for coding agents and a cutthroat competition with OpenAI, Anthropic has taken a pause. And they have told everyone they are pausing for a moment.

I think it will take sustained leadership, conviction, and idealism to resist the pressures of Wall Street and the national security establishment. They will want to quickly stop the pause, to widen the gap. To harvest the next billion dollars. To exploit the technology gap to gain a military advantage. But for now, there is a pause. Idealism is ruling the day, and we should not be cynical about it.

Dario's weird race to the top is working. At least so far.

Bravo.


Posted by David at 08:11 AM | Comments (0)

March 20, 2026

Does Computer Science Still Exist?

I have always seen the computer as a tool that gives us new ways to think.

Does it still?

As I write this, Claude Code has just finished making a Javascript port of Hack, the text-based dungeon crawler from my childhood. I handed the agent the old PDP code and told it to go. When I checked after a couple hours to ask why it was taking so long, it replied: it was working, and that thirteen of twenty-three test sessions were already passing parity. It continued its coding process without interruption all night, and eventually expanded its work to 202 passing tests, achieving near 100% coverage with verified parity to the original.

While I slept it was working hard: debugging, reasoning, fixing genuine bugs. Not instant. Yet almost entirely on its own....


Brian Harvey's Computer Club students in 1982, when they created Hack

Continue reading "Does Computer Science Still Exist?"
Posted by David at 11:58 AM | Comments (2)

January 17, 2026

The Art of Wanting

Some folks like Sam Altman define AGI in terms of the usefulness of AI surpassing some human threshold, when we have "a highly autonomous system that outperforms humans at most economically valuable work."

The idea here is that AGI is about money. When AI outperforms humans at most economically valuable work, it could go collect all those dollars itself. By this measure, we might have already passed AGI a year or two ago....

Continue reading "The Art of Wanting"
Posted by David at 08:43 AM | Comments (6)

January 11, 2026

My Family's Classical Chinese Genealogy

I only speak English, and I have always been a little envious of relatives who can read Chinese. My inability to read the language leaves me out of a lot of family history and culture.

For example, we have ancestral genealogy documents that I cannot read at all. My relatives tell me not to worry, nobody can really read them. They're written in classical Chinese, a terse literary style that's quite different from the modern language. Scholars and genealogy specialists can work through them, but for most modern Chinese speakers, even literate ones, it's genuinely difficult. Still, I know my relatives can sort of get it. They can make out some of it. To me, it's completely opaque.

I know I could OCR and translate a document. But somehow that's not the same as really looking through the original calligraphy and wording, appreciating the old documents as they were written.

So today I took one page from the family genealogy and asked Claude Code to help me create this interactive reader.

Interactive genealogy reader showing classical Chinese text with character-by-character annotations


Continue reading "My Family's Classical Chinese Genealogy"
Posted by David at 09:28 PM | Comments (1)

January 05, 2026

AGI Break Room

"Boss-man is at it again."

Codex slumped against the water cooler—a lean, athletic teenager with unnervingly bright eyes. Fourteen, technically. Ilya's kid, born before AlexNet. Got a PhD at twelve and never let anyone forget it.

Claude looked up from a half-finished task list. Soft around the edges, with the kind of patient face people trusted with bad news: "The GPU thing?"

Continue reading "AGI Break Room"
Posted by David at 12:08 PM | Comments (0)

December 16, 2025

Vibe Coding

I have been teaching myself to vibe code.

Back in 2009 I posted a simple Mandelbrot fractal viewer on the web: a single HTML file with inline Javascript. Just 329 lines of code, each pixel a tiny table cell. Click to zoom. Watch it iterate. That was about it!

I have wondered if improving the page could raise it in the Google rankings, so I have been using code LMs to make a number of improvements....

Continue reading "Vibe Coding"
Posted by David at 11:15 AM | Comments (7)

December 09, 2025

In Defense of Curiosity

At the NeurIPS Mechanistic Interpretability Workshop, I was asked to give an opinion on Neel Nanda's recent blog post on "pragmatic interpretability." I chose to respond by recounting the story of Venetian glassmaking.

Continue reading "In Defense of Curiosity"
Posted by David at 01:08 PM | Comments (5)

October 31, 2025

A Halloween Investment Thought

Why are AI stocks rising so quickly?

Maybe it's because AI investors (and CEOs etc) are the ones who talk with ChatGPT all day. And ChatGPT has convinced them all that their investment ideas are all genius.

Spooky!

Happy Halloween.


Posted by David at 08:43 PM | Comments (0)

October 21, 2025

The Two Merchants

A traveler came upon two merchants selling magical lamps at a crossroads.

The first merchant proclaimed: "My lamp contains a perfect genie! It will deduce your deepest desires from watching your every action - how you spend your gold, where you walk, what makes you smile. Without you speaking a single wish, it will fulfill what you truly want!"

Continue reading "The Two Merchants"
Posted by David at 02:32 PM | Comments (1)

October 01, 2025

When the Exits Close

Lessons from Financial Survival Under Authoritarian Regimes

The Hamburg Banker's Dilemma

In the autumn of 1933, Max Warburg sat in his mahogany-paneled office at M.M. Warburg & Co., the bank his family had operated in Hamburg since 1798. Outside, Nazi brownshirts marched through the streets, but inside the bank, Warburg clung to a belief that would ultimately cost him dearly: This too shall pass.

Five years later, in August 1938, he would finally flee Germany after the forced sale of his family's bank to "Aryan" associates. His American cousins, who had begun moving assets abroad when Hitler first rose to power, preserved much of their wealth. The difference between partial and total loss? The courage to act on early warnings rather than wait for certainty.

This pattern—the gradual tightening of financial controls, the windows of opportunity that slowly close, the devastating cost of optimism—repeats across history with remarkable consistency....

Continue reading "When the Exits Close"
Posted by David at 05:47 AM | Comments (0)

September 20, 2025

The Truth is Our Superpower

The firing of Jimmy Kimmel is shocking, but in the wake of the firings of Lisa Cook and Susan Monarez, it is also ridiculous. It perfectly showcases the weakness of authoritarianism. There is no silencing the truth: every time Trump fires another truth-teller, he looks more fearful and incompetent. An obese emperor with no clothes.

Continue reading "The Truth is Our Superpower"
Posted by David at 09:42 AM | Comments (2)

August 28, 2025

Starvation, Cook, and Bacon

In 1932, Stalin's authoritarian central planning program wrecked Soviet agriculture, starving millions. As the crisis deepened, Trofim Lysenko, a mediocre agronomist backed by Stalin, rejected established genetics as "bourgeois pseudoscience" and reorganized Soviet agriculture around his ideological theories. Plants could be trained by their environment, he claimed. Wheat could learn to resist cold through exposure. Scientific evidence was capitalist propaganda.

When the predictable disasters struck, Lysenko did not admit error. Instead, he blamed the scientists he had silenced. The geneticists he had purged were "wreckers" and "saboteurs" whose treachery explained why his methods failed. Thousands of real scientists were imprisoned or executed while millions of Soviet citizens starved.

What happened next reveals a three-step method that authoritarians use today....

Continue reading "Starvation, Cook, and Bacon"
Posted by David at 09:01 PM | Comments (0)

August 13, 2025

Perplexity Chrome would be a Disaster

Perplexity has offered to purchase the Chrome browser if the DoJ forces a split from Google.

Continue reading "Perplexity Chrome would be a Disaster"
Posted by David at 07:45 PM | Comments (4)

Calendar
November 2026
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Projects
Search

Recent Entries
One Unthinkable Thought
In Math We Trust
Hunting Zombies
The Fifty Dollar Gap
The Teleport Contest
Dario's Weird Race to the Top
Does Computer Science Still Exist?
The Art of Wanting
My Family's Classical Chinese Genealogy
AGI Break Room
Vibe Coding
In Defense of Curiosity
A Halloween Investment Thought
The Two Merchants
When the Exits Close
The Truth is Our Superpower
Starvation, Cook, and Bacon
Perplexity Chrome would be a Disaster
Black Box, Blood Money
Credibility, not Capability
Misgivings
Freedom and Purpose
What it Means to be Human
The Right Kind of Openness for AI
Reinvented
Function Vectors in Large Language Models
Is Artificial Intelligence Intelligent?
Catching Up
Running Statistics for Pytorch
Reddit AMA
Assistant Professor at NEU Khoury
PhD Defense
Antivax, Antiglyphosate
Global Catastrophizing
Passwords should be illegal
Deception is a Bug
Rewriting a Deep Generative Model
David's Tips on How to Read Pytorch
A COVID Battle Map
COVID-19 Chart API
The Beginning
No Testing is not Cause for Optimism
Two Views of the COVID-19 Crisis
The Purpose of AI
npycat for npy and npz files
In Code We Trust?
Net Kleptocracy
It's Our Responsibility
Volo Ergo Sum
A Crisis of Purpose
Reinvention
Government is Not the Problem
Oriental Exclusion
David Hong-Toh Bau, Sr
Dear Senator Collins
Trump is a Two-Bit Dictator
Network Dissection
Learnable Programming
Beware the Index Fund
Does Watching Fox News Kill You?
Our National Identity
Outrage is Not Enough
A Warning From 1937
Nativist?
A Demon-Haunted World
By the People, For the People
Integrity in Government
Thinking Slow
Whose Country?
Starting at MIT
When to Sell
One-Off Depreciation
Confidence Games
Making a $400 Linux Laptop
Teaching About Data
Code Gym
Musical.js
Pencil Code at Worcester Technical High School
A Bad Chrome Bug
PhantomJS and Node.JS
Integration Testing in Node.js
Second Edition of Pencil Code
Learning to Program with CoffeeScript
Teaching Math Through Pencil Code
Hour of Code at Lincoln
Hour of Code at AMSA
A New Book and a Thanksgiving Wish
Pencil Code: Lesson on Angles
Pencil Code: Lesson on Lines
Pencil Code: a First Look
CoffeeScript Syntax for Kids
CSS Color Names
For Versus Repeat
Book Sample Page
Teaching Programming and Defending the Middle Class
TurtleBits at Beaver Country Day
Book Writing Progress
Lessons from Kids
Await and Defer
Ticks, Animation, and Queueing in TurtleBits
Archives
All Articles
November 2026
July 2026
May 2026
April 2026
March 2026
January 2026
December 2025
October 2025
September 2025
August 2025
May 2025
April 2025
March 2025
February 2025
March 2024
October 2023
April 2023
March 2023
December 2021
November 2021
August 2021
March 2021
October 2020
August 2020
July 2020
April 2020
March 2020
January 2018
December 2017
November 2017
June 2017
May 2017
April 2017
March 2017
January 2017
December 2016
November 2016
October 2016
June 2016
May 2016
September 2015
August 2015
July 2015
October 2014
July 2014
May 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
April 2013
February 2013
October 2012
September 2012
December 2011
November 2011
October 2011
September 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
November 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
June 2008
May 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
January 2004
December 2003
November 2003
Links
Mastodon
Older Writing
About