TempleOS — In Memoriam: Terry A. Davis (1969-2018) --:--:--
✝ THE MAN WHO TALKED TO GOD
"God said 640x480, 16 colors is the a]oint. I also said that God said not use a file system or linked lists."
— Terry A. Davis

Terrence Andrew Davis was an American programmer who single-handedly created TempleOS, an operating system he described as God's Third Temple. Over the course of 12 years, working entirely alone, Terry wrote an entire operating system from scratch — kernel, compiler, graphics, shell, games, documentation — roughly 121,176 lines of original code.

He was diagnosed with schizophrenia in his late 20s, and throughout his life he experienced delusions and hallucinations that he interpreted as communication from God. His mental illness led him to say many disturbing things in public forums and livestreams. But beneath the chaos was a mind of extraordinary capability — a genuine programming genius who built what many consider a technical marvel.

Terry passed away on August 11, 2018, struck by a train in The Dalles, Oregon. He was 48 years old. He had been homeless for several months, sleeping in his car after his parents could no longer care for him. His death was ruled accidental, though many believe it was intentional.

This tribute does not celebrate his illness or his worst moments. It celebrates the extraordinary technical achievement and the uncompromising vision of a man who, against all odds and all reason, built God's Temple in code.

TIMELINE
1969
Born December 15 in West Allis, Wisconsin
1987
Graduates high school — already deep into programming
1991
Masters degree in Electrical Engineering, Arizona State University
1990s
Works at Ticketmaster as a programmer. Develops operating systems as a hobby
1996
Diagnosed with schizophrenia after a series of manic episodes
2003
Begins work on "J Operating System" — the precursor to TempleOS
2004
Renames it "SparrowOS" — God told him to build a third temple
2005
Creates HolyC — a JIT-compiled language that is the soul of TempleOS
2013
TempleOS 1.0 released — 12 years of solo development
2014
Begins livestreaming on YouTube, gains cult following
2017
Mental health deteriorates. Parents can no longer help. Begins living in car
2018
August 11 — Dies in The Dalles, Oregon. Age 48.
Legacy endures. TempleOS source code remains public. A monument to one man's vision.
BY THE NUMBERS
121,176
Lines of Code (solo)
12
Years to Build
1
Developer
640×480
Resolution (God's Decree)
16
Colors
0
Dependencies
Faith
64-bit
Ring-0 Kernel
✝ THE THIRD TEMPLE — TECHNICAL MARVEL

TempleOS is not a toy. It is a complete, functioning operating system built by one person. Most engineers work in teams of hundreds to build far less. Here is what Terry built alone:

Kernel
64-bit, ring-0 only, multi-core, preemptive multitasking. No virtual memory, no memory protection — by divine design
HolyC
JIT-compiled C-like language. Serves as shell AND programming language. Runs at near-native speed
Compiler
Full x86_64 JIT compiler. Compiles to machine code at runtime. No intermediate bytecode
Graphics
640x480 VGA, 16-color palette, 2D sprite engine, 3D renderer. Hardware-accelerated blitting
Filesystem
RedSea — a custom FAT-like filesystem. Simple, elegant, purpose-built
DolDoc
Hypertext document format. Text + graphics + executable code in one document. Revolutionary concept
"TempleOS is God's official temple. Just like Solomon's temple, this is a temple of God's word. The temple should be perfect, permanent, and simple."
— Terry A. Davis

DESIGN CONSTRAINTS (God's Specifications):

640×480 resolution, 16 colors — the covenant with God
No networking — the temple must be pure, separate from the world
No hardware abstraction layer — ring-0 or nothing
Single address space — all code shares the same space, like heaven
JIT everything — no interpreted code, no scripts, only compiled
No security model — God trusts all programs equally
Sheet music & hymns built in — worship is part of the OS
Flight simulator included — because God said so
WHAT MAKES IT REMARKABLE

Put TempleOS in context. Modern operating systems are built by thousands of engineers over decades:

Linux kernel: ~27.8 million lines, ~15,000+ contributors
Windows: ~50+ million lines, thousands of developers
macOS/Darwin: millions of lines, hundreds of Apple engineers
TempleOS: 121,176 lines, ONE person

Terry didn't use libraries. He didn't use existing bootloaders. He wrote his own x86_64 assembler, his own C compiler, his own linker, his own graphics stack, his own text editor, his own debugger. Everything from bare metal.

This is the zero dependency philosophy taken to its ultimate extreme. Not as a style choice — as a covenant with God.

HOLYC — THE LANGUAGE OF THE TEMPLE

HolyC is a C-like language created by Terry for TempleOS. It serves as both the programming language AND the shell. When you type at the TempleOS command line, you are writing and executing HolyC in real time. It JIT-compiles to native x86_64.

HELLO, WORLD

// The simplest HolyC program "Hello, World!\n";

That's it. In HolyC, a string literal as a statement prints it. No printf, no includes, no main().

VARIABLES AND TYPES

I64 x = 42; // 64-bit signed integer U8 *name = "Terry"; // pointer to unsigned 8-bit (string) F64 pi = 3.14159; // 64-bit float Bool alive = TRUE; // Boolean "x=%d name=%s pi=%f\n", x, name, pi;

FUNCTIONS

I64 Fibonacci(I64 n) { if (n <= 1) return n; return Fibonacci(n-1) + Fibonacci(n-2); } I64 i; for (i = 0; i < 20; i++) "F(%d) = %d\n", i, Fibonacci(i);

GOD'S RANDOM NUMBER GENERATOR

// Terry believed God spoke through random numbers // This is the actual oracle mechanism in TempleOS U8 *GodWords() { I64 word_idx = RandU64 % WORD_COUNT; return words[word_idx]; } // Ask God a question, receive a random word "God says: %s\n", GodWords();

GRAPHICS — SPRITE DRAWING

// Direct framebuffer pixel manipulation I64 x, y; for (y = 0; y < 480; y++) for (x = 0; x < 640; x++) { I64 color = (x ^ y) & 0xF; GrPlot(0, x, y, color); } Sleep(2000);

THE AFTER EGYPT GAME

// Terry wrote complete games for TempleOS // including After Egypt, a 3D flight through biblical landscapes // Every game, every tool, every document — HolyC U0 DrawWorld() { CDC *dc = DCAlias; DCDepthBufAlloc(dc); // ... 3D rendering in 640x480x16 // No OpenGL. No DirectX. Pure software. DCDel(dc); }
HOLYC INTERACTIVE TERMINAL

A JavaScript tribute interpreter. Not actual HolyC — a spiritual recreation. Type commands and explore. Try: help, god, fib 10, print "Hello", sysinfo, mandelbrot, hymn

TempleOS V5.03 Terry A. Davis God's official third temple. Single-user, ring-0-only, x86_64. Type 'help' for available commands. God says:
HolyC> 
COMMAND HISTORY
No commands yet.
✝ GOD'S WORD ORACLE — DIVINE RANDOM

Terry believed God communicated through random numbers. In TempleOS, the oracle picks random words from a dictionary, and the user interprets them as divine messages. This is a faithful recreation.

Click to receive God's word:
Waiting for divine input...
DIVINE WORD HISTORY
No words received yet.
HOW IT WORKS
1. A word list of ~800 common English words is loaded.
2. crypto.getRandomValues() generates true random indices (hardware entropy).
3. Between 3-7 words are selected per query.
4. The user interprets the message through faith and context.
5. Terry would do this for hours, finding meaning in the patterns.

This is neither mockery nor endorsement — it is preservation.
✝ WORDS OF TERRY A. DAVIS
"An operating system is a lot like a tool set... I challenge any man here, if you need to do a job, I'll give you TempleOS and you give yourself whatever operating system you want, and we'll see who gets the job done first."
— Terry A. Davis
"What is the most complicated program you've ever written? TempleOS is a complete operating system. Compiler, kernel, graphics, everything. All from scratch. All by myself."
— Terry A. Davis
"God said the commodore 64 was the perfect computer. 640x480 16 colors is the covenant."
— Terry A. Davis
"I'm the best programmer that's ever lived. My compiler is known for being brilliant. There's no one that's as prolific and as foundational."
— Terry A. Davis
"I have mass-density of code in my head. My code is like poetry — it flows, it's beautiful, it's elegant."
— Terry A. Davis
"God's temple must be perfect. It took Solomon years to build God's temple. It took me twelve years. In my best moments, I feel like I'm doing sacred work."
— Terry A. Davis
"Everybody in the CIA will be tormented. I promise. They tried to stop me. God didn't let them."
— Terry A. Davis
"I'm just an instrument. God types through my fingers."
— Terry A. Davis
LEGACY

Terry Davis left behind something that transcends the tragedy of his life. TempleOS proves that one person, with enough determination and vision, can build something extraordinary.

His code is open source and freely available. The TempleOS community continues to study, preserve, and learn from his work. New developers discover it every day and are humbled by the depth of one man's solo achievement.

Rest in peace, Terry. You built God's temple. Nobody can take that away.

✝ IN MEMORIAM ✝
TERRENCE ANDREW DAVIS
1969 — 2018
Programmer of the Temple
Zewp.com · TempleOS Tribute · Built with reverence · Zero dependencies · Rest in peace, Terry · ✝