Safekipedia

TempleOS

Discoverer · ages 10+Adapted from Wikipedia
A screenshot of the TempleOS operating system running inside VirtualBox, showing a list of games.

TempleOS (formerly J Operating System, LoseThos, and SparrowOS) was a Biblical-themed, lightweight operating system (OS) designed to be the Third Temple from the Hebrew Bible. It was created by American computer programmer Terry A. Davis, who developed it alone over the course of a decade. Davis had a series of manic episodes, which he later described as a revelation from God. Some people have considered TempleOS an example of coding as an art form. Because of Davis's psychological instability and its influence over the project, it has been compared to similar outsider art.

TempleOS was described as a modern x86-64 Commodore 64. Its interface was a mixture of DOS and Turbo C. Davis said that features such as its 640×480 resolution, 16-color display, and single-voice audio were designed according to explicit instructions from God. Instead of BASIC, the system was programmed in a custom JIT variant of C called HolyC. It also included an original flight simulator, compiler, and kernel.

TempleOS was first released in 2005 as J Operating System. It was renamed in 2013 and was last updated in 2017, before Terry's death. For the system used on mainframe computers in the 1960s, see J (operating system).

Main article: Terry A. Davis

Davis, c. 1980s

Terry A. Davis was an electrical engineer from Wisconsin. He began developing TempleOS around 1993. One of its early names was the "J Operating System," which he later changed to "LoseThos." That name was a reference to a scene from the 1986 film Platoon. He also used the name "SparrowOS" before settling on "TempleOS."

In 2008, Davis wrote that LoseThos was "primarily for making video games. It has no networking or Internet support. As far as I'm concerned, that would be reinventing the wheel."

System overview

TempleOS is a 64-bit, multi-core, cooperative multitasking operating system. It does not use preemption, so all tasks must voluntarily yield. It was released into the public domain and has source code, which makes it both libre software and open source software. It has no kernel-user separation, so all tasks must run in ring-0-only mode, and all tasks share one single address space. TempleOS has no network drivers, but it is fit for recreational programming. It uses 8-bit ASCII text and includes built-in 2D and 3D graphics libraries, running at 640×480 VGA resolution with 16 colors. It also supports keyboard and mouse input, and it supports ISO 9660, FAT32, and RedSea file systems (the latter created by Davis), with support for file compression. According to Davis, many of these specifications, such as the 640×480 resolution, the 16-color display, and single-voice audio, were directly requested of him by God. He explained that the limited resolution was meant to make it easier for children to draw illustrations for God. The operating system includes an original flight simulator, compiler, and kernel. One bundled program, After Egypt, is a game in which the player travels to a burning bush to use a "high-speed stopwatch." The stopwatch is meant to act as an oracle that generates pseudorandom text, which Davis likened to a Ouija board and glossolalia. TempleOS was written in a programming language Davis developed called "HolyC," and Davis wrote over 100,000 lines of code for the OS.

HolyC

HolyC (formerly C+), possibly a pun on Holy See, is a middle ground between the C and C++ programming languages, with some unique differences. Terry A. Davis designed it specifically for TempleOS. It works both as a general-purpose language for building applications and as a scripting language for automating tasks within TempleOS. HolyC is the just-in-time compiled language of TempleOS. It is an imperative, statically typed programming language, although it uses some object-oriented programming ideas.

HolyC shares much of its syntax with C, but it has several differences made for its just-in-time compilation and its connection to TempleOS. It does not require a main() function, and code outside of functions runs in order, which lets HolyC work as an interactive shell. It supports class declarations, range cases in switch statements, and 64-bit integer behavior by default. Function-like macros are not supported.

Critical reception

TempleOS received mostly "sympathetic" reviews. Tech journalist David Cassel said that programming websites tried to be patient and understanding with Davis. TechRepublic and OSNews both published positive articles about his work, even though OSNews had banned Davis for hostile comments aimed at its readers and staff.

In his TechRepublic review, James Sanders wrote that TempleOS shows the dedication and passion of one man, and that it does not need to be anything more. OSNews editor Kroc Camen said the OS shows that computing can still be a hobby. He joked that he should be free to build an OS that uses interpretive dance as its input method, even if companies like Apple disapproved. In 2017, the OS was displayed as part of an outsider art exhibition in Bourgogne, France.

Legacy

After Terry Davis died in 2018, OSNews editor Thom Holwerda wrote that Davis was clearly a gifted programmer, and that it was sad to see him affected by his mental illness. One fan called Davis a "programming legend," and a computer engineer compared building TempleOS to a skyscraper built by one person. He said it "actually boggles my mind that one man wrote all that," and that it is hard for people outside the field to understand how great an achievement it is to write an entire operating system alone.

Quiz time!

5 questions about TempleOS

Question 1 of 5

Who created TempleOS, and how did he build it?

Keep exploring

This article is a child-friendly adaptation of the Wikipedia article on TempleOS, available under CC BY-SA 4.0.

Images from Wikimedia Commons. Tap any image to view credits and license.