A different kind of computer V: accidentally Turing complete
Some systems became computers when nobody was planning for it: the Game of Life, Rule 110, Wireworld, Minecraft, Magic: The Gathering, PowerPoint, x86 mov and TypeScript's types. With Life and Rule 110 in Python, and why it keeps happening.
The last part was about computers that exist only as programs, and both of them were designed that way on purpose. This one is about systems that became computers when nobody was planning for it: a grid of cells with three rules, a single row of ones and zeros, a card game, a slide deck, a spreadsheet and one x86 instruction. All of them turned out to be Turing complete, which means that with enough time and memory they can compute anything a real computer can.
What it takes #
The name comes from the machine Alan Turing described in 1936: a long tape of symbols, a head that reads and writes one symbol at a time, and a table of rules that says what to write, where to move and which state comes next. Python, C and JavaScript are all Turing complete, and so is almost every language anyone uses for real work.
The bar is surprisingly low. A system gets there when it has three things: memory it can read and write, a way to take one path or another depending on what's in that memory, and a way to keep going for as long as needed, with loops or recursion. Show that someone can build a Turing machine out of the parts, and the system can run any program at all, however slowly.
There's one technicality. A Turing machine has an infinite tape, and no real computer has infinite memory, so strictly speaking nothing physical is Turing complete. The usual convention is to ignore that and ask what the system could do if the memory kept growing.
The Game of Life #
John Conway, a mathematician at Cambridge, tried rule after rule on squared paper and Go boards, looking for one that was simple to state and still hard to predict. The one he settled on appeared in Martin Gardner's Mathematical Games column in Scientific American in October 1970.
The universe is an infinite grid of square cells, each one alive or dead. Every generation, all cells update at the same time, looking at their eight neighbors:
- A dead cell with exactly 3 live neighbors becomes alive.
- A live cell with 2 or 3 live neighbors stays alive.
- Every other cell dies or stays dead.
People write this as B3/S23, born with 3 and survives with 2 or 3. The only move a player ever makes is drawing the starting pattern, and the rules do the rest.
This is Life in about twenty lines of Python, running a glider, the most famous pattern of all:1
def step(alive):
counts = {}
for x, y in alive:
for dx in (-1, 0, 1):
for dy in (-1, 0, 1):
if dx or dy:
cell = (x + dx, y + dy)
counts[cell] = counts.get(cell, 0) + 1
return {cell for cell, n in counts.items()
if n == 3 or (n == 2 and cell in alive)}
def show(alive, w=8, h=4):
return ["".join("#" if (x, y) in alive else "." for x in range(w))
for y in range(h)]
glider = {(1, 0), (2, 1), (0, 2), (1, 2), (2, 2)}
frames = [glider]
for _ in range(4):
frames.append(step(frames[-1]))
for row in zip(*(show(f) for f in frames)):
print(" ".join(row))$ python3 life.py .#...... ........ ........ ........ ........ ..#..... #.#..... ..#..... .#...... ..#..... ###..... .##..... #.#..... ..##.... ...#.... ........ .#...... .##..... .##..... .###....
Source
$ python3 life.py
.#...... ........ ........ ........ ........
..#..... #.#..... ..#..... .#...... ..#.....
###..... .##..... #.#..... ..##.... ...#....
........ .#...... .##..... .##..... .###....Five generations side by side, from left to right. A few details in there:
- The board is a set of coordinates of live cells, with no array behind it. Nothing limits its size, which matches Life's infinite grid: a glider can travel forever and the set only ever holds five cells.
-
steponly counts neighbors around live cells. A dead cell with no live neighbors can't be born, so there's no reason to look at it. - The
returnline is the whole rule. A count of 3 means alive no matter what, and a count of 2 keeps the cell as it was. - After four generations the glider has its original shape again, one cell down and one cell to the right. Patterns that do this are called spaceships, because they carry a shape across the grid.
Conway offered a prize of 50 dollars to anyone who could find a pattern that grows forever, and in November 1970 a group at MIT led by Bill Gosper found one: a gun that fires a new glider every 30 generations.2

A stream of gliders works like a wire carrying bits: a glider is a 1, a gap is a 0. Two streams that cross at the right angle and timing destroy each other, and that collision behaves like a logic gate. Gates can be combined into memory and arithmetic. Elwyn Berlekamp, Conway and Richard Guy sketched the proof that Life is universal in 1982, in their book Winning Ways, and in 2000 Paul Rendell built an actual Turing machine in Life, out of guns, gliders and other known patterns.

That screenshot comes from Golly, a free and open source Life simulator. It uses an algorithm called Hashlife, which remembers patterns it has already computed and skips over them, and that's how the generation counter at the top reached a number with 28 digits.
Rule 110: one row of cells #
Life has two dimensions. Stephen Wolfram spent the early 1980s studying something even smaller: a single row of cells, each 0 or 1, where every new cell depends only on itself and its two neighbors. Three cells give 8 possible neighborhoods, and a rule says which ones produce a 1. Write the answers in order, from 111 down to 000, and you get an 8-bit number. That number is the rule's name. For Rule 110:
- 111: 0
- 110: 1
- 101: 1
- 100: 0
- 011: 1
- 010: 1
- 001: 1
- 000: 0
Read top to bottom, that's 01101110, which is 110 in binary. In 1985 Wolfram conjectured that this rule was universal. Matthew Cook, who worked as his research assistant, found the proof in the 1990s. He presented it at a conference at the Santa Fe Institute in 1998, and Wolfram Research went to court, arguing that it broke his nondisclosure agreement. The paper was pulled from the conference proceedings and only came out in 2004, in the journal Complex Systems.3 Rule 110 is usually described as one of the simplest Turing complete systems known.
Here it is in Python, starting from a single live cell:
RULE = 110
table = {n: RULE >> n & 1 for n in range(8)}
width = 64
cells = [0] * width
cells[-1] = 1
for _ in range(24):
print("".join("#" if c else "." for c in cells))
cells = [table[cells[i - 1] << 2 | cells[i] << 1 | cells[(i + 1) % width]]
for i in range(width)]$ python3 rule110.py ...............................................................# ..............................................................## .............................................................### ............................................................##.# ...........................................................##### ..........................................................##...# .........................................................###..## ........................................................##.#.### .......................................................#######.# ......................................................##.....### .....................................................###....##.# ....................................................##.#...##### ...................................................#####..##...# ..................................................##...#.###..## .................................................###..####.#.### ................................................##.#.##..#####.# ...............................................########.##...### ..............................................##......####..##.# .............................................###.....##..#.##### ............................................##.#....###.####...# ...........................................#####...##.###..#..## ..........................................##...#..#####.#.##.### .........................................###..##.##...########.# ........................................##.#.######..##......###
Source
$ python3 rule110.py
...............................................................#
..............................................................##
.............................................................###
............................................................##.#
...........................................................#####
..........................................................##...#
.........................................................###..##
........................................................##.#.###
.......................................................#######.#
......................................................##.....###
.....................................................###....##.#
....................................................##.#...#####
...................................................#####..##...#
..................................................##...#.###..##
.................................................###..####.#.###
................................................##.#.##..#####.#
...............................................########.##...###
..............................................##......####..##.#
.............................................###.....##..#.#####
............................................##.#....###.####...#
...........................................#####...##.###..#..##
..........................................##...#..#####.#.##.###
.........................................###..##.##...########.#
........................................##.#.######..##......###Each line is one generation, and time goes down the page. How it works:
-
RULE >> n & 1reads bitnof the rule number, so the table is built straight from the name. ChangeRULEto 90 and the same script draws a Sierpinski triangle. Change it to 30 and it draws something close to random.4 -
cells[i - 1] << 2 | cells[i] << 1 | cells[(i + 1) % width]packs the three neighbors into a number from 0 to 7, which is exactly the position of that neighborhood in the table. - In Python,
cells[-1]is the last item of the list, so the left edge wraps around on its own.% widthdoes the same on the right, and the row behaves like a ring. - The pattern only grows to the left. On the right side, 001 gives 1 and 100 gives 0, so a live cell can spread one way and not the other.
The proof doesn't start from a single cell. It needs a row prepared with a repeating background pattern, and on top of that background some structures move like particles at different speeds. Cook used their collisions to emulate a simple kind of machine called a cyclic tag system, which in turn can emulate a Turing machine. A run from a random row shows both: the fine regular texture is the background, and the diagonal streaks and triangles are the moving structures running into each other.

Wireworld: circuits drawn in cells #
Life and Rule 110 hide their computers in collisions. Wireworld, created by Brian Silverman in 1987 and made popular by a Scientific American column in January 1990, puts them in plain sight. Each cell is in one of four states, and the rules read like a description of electronics:
- Empty stays empty.
- An electron head becomes an electron tail.
- An electron tail becomes a conductor.
- A conductor becomes an electron head if exactly one or two of its neighbors are heads.
Draw a line of conductor cells and you have a wire. Put a head and a tail on it and an electron runs along the wire, one cell per generation, always away from its tail. With the right shapes at the junctions, wires become diodes, clocks and logic gates. This one is an XOR gate fed by two clocks, and its output only gets a pulse when exactly one electron arrives:

Between 1990 and 1992 David Moore and Mark Owen, with help from a few others, built a complete computer in Wireworld, and they only wrote it up in 2004. It has 64 registers of 16 bits, and every one of its instructions is the same: move a value from one register to another. Everything else happens through special registers. Writing to one of them feeds the adder, writing to another sets the display, and writing to register 63 changes the program counter, which is how a jump works. Its program tests odd numbers one by one and shows each prime it finds on a row of seven-segment digits, all drawn in cells. One instruction takes 2,304 generations.
Computers nobody asked for #
Cellular automata were at least designed by people interested in computation. The examples below come from places with completely different jobs.
Minecraft has redstone, a material that carries a signal from block to block, plus torches that invert it and repeaters that delay it. That's enough for logic gates, so players build CPUs out of it. One of the best known is CHUNGUS 2, built by a player called sammyuri over several months, and it's powerful enough that a small team got a two-color version of Minecraft running on it, inside Minecraft.
Magic: The Gathering got its proof in 2019. Three researchers built a game state, using only cards legal in tournaments, where a Turing machine runs on the table and every move of both players is forced. The first player wins if and only if the machine halts. Since no algorithm can decide whether an arbitrary Turing machine halts, no algorithm can decide who wins that game either.
PowerPoint was shown to be Turing complete in 2017, at SIGBOVIK, a joke conference held every April at Carnegie Mellon. The machine, driven by a punch card, is made only of shapes and animations.
Excel's formula language became Turing complete on purpose, which makes it the odd one in this list. In December 2020 Microsoft announced LAMBDA, a function that turns a formula into a named function that can call other functions and itself. With recursion available, Microsoft Research stated plainly that any computation can now be written as a formula.
On x86 processors, mov alone is enough. A 2013 paper showed that the instruction that copies data from one place to another, plus a single jump back to the beginning, can simulate a Turing machine, because memory lookups can stand in for comparisons and arithmetic. Two years later the movfuscator turned that into a real C compiler whose output contains only mov instructions, presented as a way to make compiled programs miserable to reverse engineer.
TypeScript's type system can compute too. Its conditional and recursive types are enough for loops and decisions, and in February 2025 that was taken as far as it goes: Doom running inside the type checker, on a WebAssembly runtime written entirely in types. The project took more than a year, produced around 3.5 trillion lines of type definitions, 177 TB in total, and the first frame took 12 days to render.
Why it keeps happening #
Memory, a branch and a way to repeat are easy to add by accident. A game wants cards that trigger other cards, a spreadsheet wants formulas that reuse formulas, a type system wants types that depend on other types. Each feature is reasonable alone, and together they cross the line.
Crossing it has a cost, and the cost is the halting problem. Once a system is Turing complete, there's no general way to know in advance whether a given input will ever finish. A compiler for a Turing complete type system can loop forever, which is why TypeScript gives up after a fixed depth with the error "Type instantiation is excessively deep and possibly infinite". The same property is a security problem: a feature that can compute can sometimes be turned into a program the designers never imagined. For that reason some tools stay below the line on purpose. The Dhall configuration language, for example, is designed so that every program finishes.
Where to start #
I'd start by playing with Life. Golly is free, runs on Windows, macOS and Linux, comes with a big library of patterns, and also runs Wireworld and many other rules. For reading, LifeWiki documents thousands of patterns, from the glider up to complete computers.
For Rule 110 and its 255 siblings, the script above is enough. Change RULE, give it a random first row with random.randint(0, 1), make width bigger, and look at what comes out. Rules 30, 90 and 110 make a good first tour.
For Wireworld, the Wireworld computer pages explain the machine piece by piece, from a single wire to the full prime calculator, and they're one of the best introductions to how a processor works that I know of.
And for more accidental computers, Surprisingly Turing-Complete is a long, maintained catalogue of them, with sources for each one.
Notes
The glider is also the hacker emblem, proposed by Eric S. Raymond in 2003 as a symbol of hacker culture. ↩
Conway's prize was for a pattern that grows without limit. The glider gun won it, since every glider it fires adds five more cells to the grid. ↩
The result was already in Wolfram's own book, A New Kind of Science, published in 2002. ↩
Mathematica used Rule 30 for years to generate random integers. ↩