
"I'm Terry Davis. I'm the smartest programmer that's ever lived. I was chosen by God to make his temple and I was given divine intellect."
That's how he opened a programming tutorial in 2017, and it's how most people meet him: a clip on YouTube of a gray-haired man in a baseball cap, talking fast, spinning 3D shapes on a 16-color screen. The joke writes itself, and plenty of people made it. But the thing he built is real, it's strange and beautiful, and he built almost all of it alone.
Terrence Andrew Davis was born on December 15, 1969 in West Allis, Wisconsin, the seventh of eight children. His father was an industrial engineer, and the family moved around: Washington, Michigan, California, Arizona. Terry started programming on an Apple II in a gifted program at school and taught himself assembly language on a Commodore 64. "When I was a teenager, I had a book, Mapping the Commodore 64, that told what every location in memory did," he wrote later. "I liked copying the ROM to RAM and poking around at the ROM BASIC's variables."
He went to Arizona State. His own published transcript shows a bachelor's degree in computer systems engineering in December 1992, magna cum laude, and a master's in electrical engineering in 1994. While still an undergrad he was hired by Ticketmaster to work on their operating system, and he stayed there until 1996.
In March 1996, when he was 26, it came apart. He told the story himself to Vice in 2014. He started seeing people in suits following him. "I was listening to the radio and it seemed like the radio was talking to me." He drove south with no plan, and in Marfa, Texas he tore the panels off his car looking for a tracking device and threw the keys into the desert. When police picked him up he dove out of the cruiser and broke his collarbone. In the hospital he heard doctors mention "artifacts" on his X-rays, decided they were alien implants, and ran. He ended up in a mental hospital for two weeks.
Looking back, he was blunt about it: "It looks a lot like mental illness, as opposed to some glorious revelation from God." He was diagnosed bipolar and later schizophrenic. From 1996 to 2003, he said, he landed in a mental hospital about every six months. He went on disability and lived with his parents in Las Vegas.
Around 2003 he dusted off some code he'd started years before and kept going. It was called J Operating System, then LoseThos, then SparrowOS, and finally, in 2013, TempleOS. By then he believed God had asked for it, as his third temple. "God's temple is finished," his homepage said in July 2013.

Here's what makes programmers stop laughing. TempleOS is a complete 64-bit operating system: kernel, compiler, graphics, file system, editor, games and documentation, written by one man (apart from a borrowed font and a few small pieces he credits), around 120,000 lines at its peak, cut to about 81,000 by the end. It boots in about a second. It has its own programming language, HolyC, and the command line is the compiler, so you type code and it just runs. One programmer who tried it, Richard Mitton, wrote that watching its test suite run "is a jaw-dropping experience" and that "it certainly makes you wonder where we went so wrong."
Every odd choice came with two reasons, a technical one and a holy one:
He described it as "a kayak, not a Titanic -- it will crash if you do something wrong. You quickly reboot, however." And: "The vision for TempleOS is a modern, 64-bit Commodore 64."
Press F7 anywhere in TempleOS and it gives you a random word, pulled by timing your keypress to the microsecond. Shift-F7 gives you a Bible passage. That's the oracle. He believed it was the Holy Spirit talking, "like tongues", and he consulted it about everything, then posted the results as "Quotes from God":
Favorite animal? "Elephant two." "Bears."
What do elephants think about? "Skin hunger."
What makes elephants happy? "Baths."
What's for dinner? "Whale."
Should I listen to classical? "Poison."
Eleventh commandment? Thou shall not litter.
templeos.org, July 2013
"God's favorite animals are bears and elephants," he added. "They are funny shaped -- I think God must have seen too much starvation over the years." Asked what to do when everything seems bad, the oracle once told him: "Plant trees."

There were hymns too, dozens of them, played through the PC speaker. "Do a text search for 'new song' in the Bible. It's mentioned nine times. I did hymns." One of them, "Risen", became the fan anthem and has been covered on piano, remixed and stretched to ten hours.
He made hundreds of videos and live streams. Most of his own channels are gone, but fans kept copies. A few that show who he was:
Hacker News once held a poll on whether to unban him. It ended in a tie, 243 to 243.
This is my favorite quote from him. He really did have birds: he kept cockatiels, and one of his "Quotes from God" is a question about them. What makes my birds laugh? "Bite ouch." In one of his videos he asks himself what reality is, and answers with his bird:

What's reality? I don't know. When my bird was looking at my computer monitor, I thought, that bird has no idea what he's looking at. And yet, what does the bird do? Does he panic? No, he can't really panic. He just does the best he can. Is he able to live in a world where he's so ignorant? Well, he doesn't really have a choice. The bird's okay, even though he doesn't understand the world. You're that bird looking at the monitor, and you're thinking to yourself, I can figure this out. Maybe you have some bird ideas. Maybe that's the best you can do.
Terry A. Davis, in one of his videos (date unknown). Watch the clip
It's the gentlest thing he ever said, and he could be saying it about himself. Here's a man who built an entire computer world by hand and believed God spoke to him through it, admitting that he doesn't really know what he's looking at either. And he doesn't panic about it. The bird doesn't understand the screen, it can't, and it's okay anyway. You look, you have your bird ideas, you do the best you can.
The clips people share most are the ugly ones. He used racial slurs constantly, on streams, in video titles, on his website, even in his documentation, along with homophobic and antisemitic lines. His most famous line, about the CIA, contains the n-word and ends "You just run them over"; it's where the slang word "glowie" comes from. Prank callers worked out that they could bait him into it on live streams, and they did, over and over. He defended the words on his own site: "when I fight Satan, I use the sharpest knives I can find." The same page ends: "They call schizophrenics 'animals'."
It got worse near the end. In 2017 he left his parents' house after a fight with his father and was homeless, in and out of jail and hospital. By June 2018 his homepage called him "King Terry" and listed violent "decrees". He was refusing medication; he said it made him sick, and in one video he called it "really awful." Fans offered him housing in Atlanta and Houston, and he turned them down.

In August 2018 he was living outdoors in The Dalles, Oregon, a small town on the Columbia River, using the computers at the public library and still uploading videos. On the morning of August 11 he posted one recorded outside the library:
Well, I'm King Terry and [I] learned how to purify myself in a horribly impure environment. It's pretty rough living homeless... I don't know, I really like this library... Well, it's good to be king. But maybe... I think maybe I'm just like a little bizarre little person who walks back and forth. Whatever, you know.
"Rises to Throne", August 11, 2018 (some words unclear)
That night, just after 9, he was hit by a train near the tracks at First Street and Terminal Avenue. He was 48. Here is what the local paper, The Dalles Chronicle, reported from police: witnesses saw him straddle the rail, there was no sign he was drunk, and according to the police report he was walking along the tracks with his back to the train, then turned and faced it. The engineer believed it was suicide.
That's as far as the record goes. No official ruling has ever been published. You'll read online that investigators "could not determine" whether it was deliberate, or that it was ruled an accident, or a suicide; none of those claims comes with a source. The theory that the CIA did it comes from his own fears, and the witnesses and the train's camera say otherwise. Wikipedia also says that in his last video he explained deleting his old videos so as not to "litter" the internet. He doesn't say that in the video. A fan later told the newspaper that was his reason.
His name didn't come out for weeks. When it did, the small-town paper's phone wouldn't stop ringing, including calls from as far away as Australia.
His family asked people who cared about him to give to groups working on mental illness, such as the Brain & Behavior Research Foundation and NAMI. TempleOS is public domain, and people still run it and keep it alive in forks like ZealOS. Fans saved around 4,000 of his video files, his websites and his code. Fredrik Knudsen's documentary TempleOS | Down the Rabbit Hole is the best long telling of the story.
The editor of OSNews, who had to ban him, put it simply: "Davis was clearly a gifted programmer — writing an entire operating system is no small feat — and it was sad to see him affected by his mental illness." I keep coming back to the bird. "Maybe you have some bird ideas. Maybe that's the best you can do."
If you're going through something like this yourself, in the US you can call or text 988.
No account needed. You'll post as Anonymous Coward, and that ID stays the same for you on this thread.