TempleOS Mobile App
An unofficial mobile tribute to TempleOS, native on iOS and Android.
What it is
TempleOS Mobile App is an unofficial, native mobile interpretation of TempleOS, the operating system Terry A. Davis created. Built for fun by Ricky Axel, it brings Terry’s programs and the distinctive TempleOS experience to iPhone, iPad and Android, keeping how they look and behave as far as a phone allows.
It is not an emulator: the apps don’t boot the TempleOS kernel or emulate a PC. Each app (Kotlin on Android, Swift on iOS) has its own HolyC compiler and sandboxed interpreter. Terry’s original games and demos run on that interpreter, together with much of his graphics, math, sound and menu code, and his source code and documentation come with them, all from the TempleOS V5.03 ISO.
For the bundled programs, Settings › Engine offers a second way to run them: Pure Kotlin on Android and Pure Swift on iOS. A translator in the project’s source code turns Terry’s HolyC into Kotlin and Swift ahead of time, and the result is compiled into the app, with no interpreter behind it. Automated tests run each translated program next to the interpreter and compare its pictures, sound, timing and memory. Programs you write or edit always run on the interpreter, Pure Terry.
What you can do in the current builds:
- Use a TempleOS-style desktop, with overlapping windows in landscape and a window deck in portrait.
- Type HolyC in the terminal, or write, save and run your own programs in the editor.
- Browse the
C:drive and read the original documentation. - Play Terry’s games, such as BattleLines, Varoom, Maze and X-Caliber, with touch controls or a keyboard.
- Try God Words and Paint.
Everything works offline, and your files stay on your device. Not everything runs yet: most of the games and demos in the menus work, a few only partly, and programs that rely on parts of TempleOS the apps don’t recreate yet are left out.
Source code
The source code of the native iOS and Android apps is public on GitHub. It is this unofficial project’s repository, not an official TempleOS release. Like TempleOS, which Terry dedicated to the public domain, the code is in the public domain: I released it under the Unlicense, so anyone may copy, change, use and share it, for any purpose, without asking. The legal page says where each part of the project comes from.
Anyone that uses the app and believes that the project can be improved to better fit Terry’s vision or think certain performance improvements would help on specific programs to fit Terry’s vision, etc. Please add a video displaying the original TempleOS program with proof of such via Terry himself or running it for real and recording it and comparing it to your improvement. Hopefully some people want to improve any programs you think will better deliver Terry’s vision in this aspect, code improvements are welcomed. Since I’m busy with my main streaming project most of the time, this’ll be somewhat of a pet hobby project. Since Terry is one of my programming idols, it would be an honor to interpret it in such an accessible way based on what is essentially fossilized code of someone no longer here that helped me get to where I am today, even if for a little while. I honestly don’t see myself managing this forever though, but this sounds like a fun project for a little while.
Why I made this
I made this project for fun, outside of my main project, because Terry’s story moved me as a teenager. He showed me what was possible for someone like me.
Terry’s work showed me that living with mental illness does not prevent someone from accomplishing extraordinary things. The fact that he created something as technically ambitious as TempleOS is incredible to me. He was the greatest programmer who ever lived.
I don’t agree with or endorse everything Terry said or believed. I appreciate his contributions to programming culture, and this little thing is simply my way of exploring that inspiration.
Watching videos of Terry's operating system working on real hardware and then comparing and tweaking the functionality on the app was surreal to say the least. I hope the people who try it out get to experience even a fraction of what it felt like to me.
t. Ricky Axel