Joe Armstrong Built Erlang Around a Strange Rule: Let It Crash. Its Famous “Nine Nines” Needs a Footnote.

Joe Armstrong smiling in a cap at a conference, beside a light panel with a supervision-tree diagram showing one crashed process and his name.


Most programming advice about errors comes down to one word: prevent. Check the input, guard the pointer, wrap the call. Joe Armstrong’s advice, written into his 2003 doctoral thesis, sounds like the opposite: “If you can’t do what you want to do, die. Let it crash. Do not program defensively.”

He was not describing hobby code. He was describing how Ericsson built telephone switches, machines that were expected to keep running for years. The phrase “let it crash” became Erlang’s best-known slogan, and it is also one of the most misunderstood. So is the famous number attached to it: nine nines of reliability.

A machine that is never allowed to stop

Armstrong joined the Ericsson Computer Science Laboratory in Stockholm in 1985. His boss, Bjarne Däcker, gave him an assignment Armstrong later quoted in his history of the language: “solve Ericsson’s software problem.” The lab’s research program, as he described it in his thesis, aimed “to find better ways of programming Telecom applications.”

Telephony was a hard target. A single switch must handle “tens or hundreds of thousands of simultaneous transactions,” Armstrong wrote. Its software had to be changed while it was running, “without loss of service.” And one rule came straight from Ericsson’s AXE exchanges: the failure of a process “should only influence the immediate transaction involved.” One broken call could not be allowed to take every other call down with it.

When Armstrong and his colleague Robert Virding asked researchers at conferences what happened if one of their nodes crashed, the answers were not encouraging. The usual replies, Armstrong recalled, were “the system won’t work” or “our model assumes that there are no failures.”

From a slow Smalltalk model to a new language

Armstrong first modelled telephony in Smalltalk, but “the Smalltalk was very slow.” When he showed his notation to a colleague, Roger Skagervall, the reply was short: “that’s a Prolog program.” Erlang began, in Armstrong’s words, as “adding concurrency to Prolog,” running as an interpreter written in Prolog itself. Development started in 1986.

It quickly stopped being a one-person project. Virding wrote a second implementation. Mike Williams found the first internal users in 1987 and later wrote the C emulator for Erlang’s virtual machine. Williams also contributed the idea of process links, which Armstrong credits to the “release mechanism used in old analogue telephones.” That detail matters: the core of Erlang’s error handling was inspired by old telephone hardware.

What “let it crash” actually means

Read on its own, “let it crash” sounds like permission to ignore errors. The thesis says something more specific. Its full list of slogans begins with “Let some other process do the error recovery.” The model, Armstrong explained, is two computers watching each other: “We use exactly the same method in Erlang, only instead of computers we use pairs of processes.”

In practice, a worker process does the job and a separate supervisor process watches it. Erlang processes share no memory, so a crashing worker cannot corrupt its neighbours. When it dies, the link delivers the news to the supervisor, which starts it again. The supervisor can even sit on another machine, because, as Armstrong put it, “you cannot build a fault-tolerant system if you only have one computer.”

The thesis also draws a line most summaries skip. If the programmer “knows what to do to correct the condition that caused the exception, then this is not an error.” A missing file can be trapped and handled where it happens. The crash is reserved for the cases where “the programmer doesn’t know what to do,” the unexpected states where defensive code tends to guess and make things worse. Armstrong was honest about the limits, too: process isolation, he wrote, “is not perfect,” and one process can still mount what amounts to a denial-of-service attack on another.

The AXD301 and the nine nines

The idea got its big test after Ericsson’s AXE-N project collapsed in December 1995, an event Armstrong called “the single most important event in the history of Erlang.” Erlang was chosen for the new AXD301 ATM switch, built by more than 60 Erlang programmers and organised around OTP’s “supervision trees.” A snapshot in late 2001 counted about 1.1 million lines of Erlang code.

The AXD301 is where the legend comes from. Armstrong wrote that it “achieved a NINE nines reliability,” which works out to about 31 milliseconds of downtime a year. The number has been repeated ever since as a property of Erlang itself.

The sources tell a narrower story. Armstrong’s own thesis admits that the only long-term evidence was “a power-point presentation” in which a major customer reported an 11-node system at 99.9999999%, “though how these figure had been obtained was not documented.” Mats Cronqvist, a system architect on the AXD301, later explained that British Telecom “claimed nine nines service availability integrated over about 5 node-years.” He also pointed out that there was “much more C than Erlang in the system,” and that Armstrong “was not part of the AXD 301 team.” He called the claim “pretty bogus,” yet added that compared with similar systems, the switch “was amazingly reliable.” Ulf Wiger, who led AXD301 design, confirmed the figure was a real customer data point and said the average availability reported across all deployments was lower, but “consistently better than 99.999%.”

So the documented version is less magical but still impressive: one customer’s reported availability for one network, not a measured law of the language.

Banned, then set free

The success did not protect Erlang inside Ericsson. In February 1998, Ericsson Radio Systems banned it for new products. An internal policy paper gave the reason: a “proprietary language” meant a continued effort to maintain its support and tools. Däcker later noted the irony that this “nagging about ‘proprietary’” made it possible to release Erlang as open source, which Ericsson did in December 1998. Armstrong and most of the core team then left to found a startup, Bluetail. Looking back, Armstrong wrote that the ban “had the opposite effect and stimulated the long-term growth of Erlang.”

Open source gave Erlang a second life. In 2012, WhatsApp’s engineers wrote on their blog that Erlang was a key part of their infrastructure and showed a single server holding more than 2 million TCP connections. Armstrong died in April 2019; the Erlang community remembered him as the language’s father.

The idea that outlived the switch

Few teams today build telephone exchanges, but many build systems that restart failed services, isolate workloads and accept that something will always be broken somewhere. Armstrong’s contribution was to make that assumption the starting point instead of an afterthought.

The useful question his work leaves behind is not “how do I stop this from failing?” It is: when this part fails, who notices, and who brings it back?

Sources

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *