Bjarne Stroustrup × Ryan Peterman · "Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes"
About halfway through, Ryan Peterman asks about a cautionary tale that circulates in the C++ community: the Vasa. Bjarne Stroustrup brightens immediately. [01:13:21]
The Vasa was a 17th-century Swedish warship, ordered by the king to fight well and to look beautiful on diplomatic visits. The keel was already laid when the king heard that a likely enemy was building ships with two gun decks, so he ordered a second one. The ship grew, so he wanted more statues too. Before it sailed, Stroustrup says, they tested its stability by running the crew from one side of the deck to the other; it should have survived fourteen crossings, and they stopped at seven because it looked dangerous. It sailed on schedule anyway, trumpets blaring, crew families aboard. Halfway across the harbor a gust of wind came, and it was gone.
When the standards committee met in Stockholm, he told them the story and drew one lesson from it:
"They built more features on top without improving the foundation."— Bjarne Stroustrup · [01:17:03]
He flags that some details are rumor himself. According to the historical record, the ship sank in 1628, thirty men ran across the deck only three times before the test was halted, and archaeologists have found no trace of a second gun deck being added mid-build. As a parable, though, it does the job. The whole episode is about one problem: how a language with millions of users repairs its foundation without tearing the house down.
Bjarne Stroustrup is Danish, did his computer science PhD at Cambridge, then joined Bell Labs, where he built C++. He is now a professor of computer science at Columbia University. He says he lost half his hair debugging a simulator he rewrote in BCPL during his PhD, and the other half getting C++ going.
Ryan Peterman's show interviews senior engineers and the people who created foundational systems, and he tends to ask about getting hired, growing, and what advice you would give your younger self. He came prepared this time: many questions draw on the long retrospectives Stroustrup wrote for the History of Programming Languages conference. Stroustrup, for his part, several times declines the question as asked and pulls it back to "what problem are you actually solving?"
The episode came out in May 2026. For two or three years before that, C++ had been under fire over memory safety; a 2024 report from the White House Office of the National Cyber Director explicitly called for a move to memory-safe languages. Stroustrup's answer is profiles: coding rules that the compiler enforces. He says C++26 already includes a standard hardening option, and he is pushing for fuller profiles in C++29.
Peterman asks what pieces you would need to build a programming language today. Stroustrup calls it the wrong question: first ask whether you have a problem that existing languages cannot solve. His own problem was concrete. Arriving at Bell Labs and looking at the people down the hall who had built Unix and C, he felt he had to do something big to belong, so he set out to build a distributed Unix. One end of that job touched process scheduling and device drivers; the other had to describe modules on different machines and the protocols between them. The languages that could do the low level could not do the high level, and the high-level ones were too slow and could not touch hardware.
Behind that judgment was an earlier lesson. During his PhD at Cambridge he wrote a distributed-systems simulator in Simula; its first full-scale run tied up the department mainframe for so long that he was kicked off. He rewrote the program in BCPL, a language with a single data type, the word. It was miserable, but the program ran roughly 50 times faster, and he vowed never again to attack a problem with tools that inadequate. C++ began as Simula's classes put into C: Simula's expressiveness at C's speed.
Every key early decision served that problem. He found about 25 different linkers in use inside Bell Labs alone, so he made a rule never to touch the linker. Every machine had its own optimizer, and he did not want to become an optimizer specialist, so he used C as his assembler and translated C++ into C. C compatibility came the same way:
"…we can have Dennis's mistakes which we know and we can have my mistakes which we don't know yet."— Bjarne Stroustrup · [00:31:08]
He took the first option. The same logic explains why he never called C++ an object-oriented language. He did not want object-oriented complex numbers; "2 plus z" should be written 2 + z, because three centuries of mathematical notation work well, and nothing that needs no runtime dispatch should pay for it. Static typing follows too: when a telephone switch hits a runtime error, no programmer is sitting at a screen waiting to open a debugger.
Peterman voices a common engineering intuition: the closer to the machine, the faster, and every layer of abstraction costs something. Stroustrup replies that abstraction gets compiled away. He used to talk about "zero-overhead abstraction," and now people criticize the phrase for underselling C++ compilers:
"We can do negative overhead abstraction."— Bjarne Stroustrup · [01:23:29]
His reasoning is that the more information an optimizer has, the better it does; for the same code, C++ can do much more at compile time, so he holds that C++ is as fast as C or faster in most cases. The fact-check below puts numbers against that.
The more interesting half of this thread is its flip side. Last year he gave a talk to a group of performance-minded people from finance titled "Don't be (too) clever." His experience is that 1990s-style hand-tuned code, with nests of pointers and extra allocations, often runs slower on today's machines and compilers. So his standard first move when improving code is to throw the clever parts away and time it; usually it gets faster. In a paper with a friend in Spain who works on fluid dynamics, doing this on a performance test suite cut the code to about 80% of its size and made it 20% faster. He cites Knuth: only two or three percent of code is worth optimizing, and you time it rather than guess.
The thread ends at memory safety. As soon as Peterman raises C++'s reputation for it, Stroustrup says he is tired of hearing it. In his view the problem was solved in theory long ago: use span instead of raw pointers, use vector, use the hardened standard libraries every vendor already ships. People keep writing old-style code and keep getting old-style bugs. He wants the compiler to forbid the dangerous patterns by default. When some on the committee argue that standards should only codify common industry practice, his answer is:
"But when the bugs are common in industry, you should do something else."— Bjarne Stroustrup · [00:49:18]
The same logic makes him pessimistic about models writing code, at least the ten or twenty percent of code where performance and safety are critical. Models, he argues, can only be trained on old code:
"So I find that LLM based code is imitating old code and getting old performance and old bugs."— Bjarne Stroustrup · [01:32:38]
He also worries about validation: a human's change is local, but a slightly different prompt can rewrite large swaths of code, and regulated industries then have to revalidate all of it. He concedes that in ten years some of what he says will turn out wrong.
C++ was never his to dictate, Stroustrup says. In 1989 representatives of IBM, HP and other giants walked into his office and asked him to standardize it. He said no, he was still experimenting. They said their organizations could not use a language that was unstandardized and owned by a corporation they sometimes competed with: we trust you, but not your employer. After an hour of arm-twisting he gave in, then asked: by the way, what are the ANSI rules for standardization? Had he refused, he believes, C++ would have become a cute academic language loved by a small community and faded out of the mainstream.
The price of standardization is process. Last he checked, the committee had 527 members and worked by consensus. He wants to see 90% in favor and starts to worry at 80%. There is no threshold written into the rules. If 95% vote yes but the 5% against are the compiler implementers from Google, Apple and Microsoft, no convenor would call that consensus.
"…that's painful and tedious and good."— Bjarne Stroustrup · [00:56:40]
When the C++11 memory model was being settled, the IBM and Intel representatives had been deadlocked for days, each in a corner of a large room. He spent a couple of hours walking between the corners doing "shuttle diplomacy" until they reached an agreement.
Looking back, he says he got most of the design right and could improve every detail, but can't, because the same people who call C++ too complicated also demand two new features and warn him not to break their million lines of code. He admits three things he would do differently: fight harder against C's implicit narrowing conversions between built-in types, which he tried and was overruled on by more senior people at Bell Labs; delay the release of C++ until something template-like could support a good standard library, a gap Alex Stepanov's STL later filled, which he calls real luck; and have a group of five or six experienced people make decisions, rather than a vote among five hundred.
"I'm so tired of that." Stroustrup goes on to cite Herb Sutter's numbers: more than 90% of buffer-overflow-type problems come from people not writing modern C++. [00:46:31]
Insufficient evidence
Sutter's 2024 essay confirms that about 70% of language-caused CVEs in C and C++ code are safety problems, but it does not split them by modern versus C-style code; one type-safety class he highlights is C++ code using static_cast where dynamic_cast was called for, not C-style code. We found no public source for the "90% from old-style code" figure.
Raw Python is about 70 times slower than raw C++; C++ is as fast as C or faster in most cases. [00:44:15]
Supported, but overstated
A 2017 study comparing 27 languages on ten Benchmarks Game problems, normalized to C = 1, puts Python's run time at 71.9 and C++ at 1.56, so Python is about 46 times slower than C++: the right order of magnitude. But the same table has C++ taking over 50% longer than C, which does not support "as fast or faster."
In the domain he cares about, attempts to have AI generate code have not been successful, with more bugs and more security holes. [01:29:34]
Insufficient evidence
A controlled study from Dan Boneh's group at CCS 2023 (47 participants, 2022-era Codex) found that people with an AI assistant wrote less secure code on four of five tasks and were more confident about it. On the one C task, the results were mixed. The direction has support; for his domain, the evidence is missing.