# 特里·A·戴维斯

**特里·A·戴维斯**（Terry A. Davis，本名特伦斯·安德鲁·戴维斯，Terrence Andrew Davis；1969年12月15日—2018年8月11日）是一位美国程序员，创造了[TempleOS](https://www.edgepedia.org/zh/templeos)——一套完整的64位操作系统。多年来，他在患有精神分裂症的情况下独自完成了该系统的编写、编译和文档撰写；他于20世纪90年代中期被诊断出该病。<sup>[1](https://junkuchan.org/file/93accbbc3c3cdacc86b01802cbdd8a9f8c3b1776781112606a5079b13fa47492.pdf)</sup><sup> • </sup><sup>[2](https://www.osnews.com/story/30710/creator-of-templeos-terry-davis-has-passed-away/)</sup><sup> • </sup><sup>[3](https://www.repubblica.it/tecnologia/2014/12/07/news/terry_il_programmatore_di_dio_dieci_anni_per_creare_il_tempio_digitale-102322184/)</sup>他将这个项目描述为一座由上帝指令建造的圣殿，并将完成的系统及其全部源代码释放到公有领域。<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup><sup> • </sup><sup>[5](https://www.templeos.org/)</sup>

| 关键事实 | 详情 |
|---|---|
| 生卒 | 1969年生于威斯康星州西艾利斯；2018年8月11日在俄勒冈州达尔斯被火车撞击身亡，享年48岁<sup>[1](https://junkuchan.org/file/93accbbc3c3cdacc86b01802cbdd8a9f8c3b1776781112606a5079b13fa47492.pdf)</sup><sup> • </sup><sup>[6](https://knowyourmeme.com/sensitive/memes/people/terry-davis-templeos)</sup> |
| 教育 | 亚利桑那州立大学电气工程学士及硕士（硕士，1994年）；全国优秀学者，SAT成绩1440分<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup><sup> • </sup><sup>[7](https://zeal-operating-system.github.io/Doc/AboutZealOS.DD.html)</sup> |
| 主要作品 | TempleOS，一套64位、仅运行于0环、不联网的操作系统，用他自己设计的语言HolyC写成；截至2014年共121,176行代码<sup>[8](https://www.osnews.com/story/28091/gods-lonely-programmer/)</sup><sup> • </sup><sup>[9](https://github.com/cia-foundation/TempleOS)</sup> |
| 设计约束 | 640×480分辨率、16色、无网络、无内存保护或虚拟内存，一切均在核心态运行<sup>[10](https://www.researchgate.net/publication/383849313_TempleOS_architecture_and_principles_of_lightweight_operating_system_development)</sup> |
| 许可 | 所有TempleOS、J Operating System、SparrowOS和LoseThos内容均以公有领域发布<sup>[5](https://www.templeos.org/)</sup> |
| 早期名称 | J Operating System（2004年）、LoseThos、SparrowOS，后定名TempleOS<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup><sup> • </sup><sup>[11](https://ia600409.us.archive.org/12/items/TerryADavis_TempleOS_Archive/websites/misc/timelines.issarice.com%20-%20Timeline%20of%20TempleOS%20%282017-11-09%29.pdf)</sup> |
| 后续 | 他去世后开发终止；社区维护着templeos.org，ZealOS等分支延续着代码库<sup>[12](https://templeos.org/support.html)</sup><sup> • </sup><sup>[13](https://github.com/Zeal-Operating-System/ZealOS)</sup> |

## 早年生活与教育

戴维斯出生于威斯康星州西艾利斯，位于[密尔沃基](https://www.edgepedia.org/zh/milwaukee)正西，在八个孩子中排行第七；父亲是一名工业工程师，童年时期全家辗转于威斯康星、华盛顿、密歇根、加利福尼亚和亚利桑那各州。<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup>在一项小学资优项目中，他开始使用Apple II，并在20世纪80年代初于[Commodore 64](https://www.edgepedia.org/zh/commodore-64)上学会了汇编语言，此后一直编程到高中。<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup>

他进入亚利桑那州立大学，先获得学士学位，后于1994年获得电气工程硕士学位。<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup>ZealOS的一份文档记录显示，他是[亚利桑那州立大学](https://www.edgepedia.org/zh/arizona-state-university)的全国优秀学者，SAT成绩1440分。<sup>[7](https://zeal-operating-system.github.io/Doc/AboutZealOS.DD.html)</sup>本科期间，他被[Ticketmaster](https://www.edgepedia.org/zh/ticketmaster)聘用编写操作系统；公司后来将他调去从事一些未有成果的研究项目，于是他于1996年初向国防承包商投递简历，希望建造卫星控制系统。<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup>

## TempleOS

戴维斯于20世纪90年代中期开始开发这套操作系统，2004年OSNews对其工作进行报道时，他已公开称之为J Operating System。<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup>他将其更名为LoseThos，典出电影《野战排》中的一个场景，之后又改为SparrowOS，最终定名TempleOS。<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup><sup> • </sup><sup>[11](https://ia600409.us.archive.org/12/items/TerryADavis_TempleOS_Archive/websites/misc/timelines.issarice.com%20-%20Timeline%20of%20TempleOS%20%282017-11-09%29.pdf)</sup>他说上帝指示他建造它，作为一座数字圣殿，规格由他自己设定：640×480、16色显示、单音音频、不联网。<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup><sup> • </sup><sup>[10](https://www.researchgate.net/publication/383849313_TempleOS_architecture_and_principles_of_lightweight_operating_system_development)</sup>

到2014年11月，TempleOS已达121,176行代码，OSNews将这一规模比作Photoshop 1.0，而[Windows 7](https://www.edgepedia.org/zh/windows-7)约有4000万行。<sup>[8](https://www.osnews.com/story/28091/gods-lonely-programmer/)</sup>关于投入时间的说法不一，且各有出处：TechRadar和2014年的媒体报道称约十年之功，<sup>[8](https://www.osnews.com/story/28091/gods-lonely-programmer/)</sup><sup> • </sup><sup>[14](https://www.techradar.com/news/best-alternative-operating-systems)</sup>ZealOS的致谢文件称戴维斯用15.0年全职编写了整个TempleOS，<sup>[15](https://zeal-operating-system.github.io/Doc/Credits.DD.html)</sup>而戴维斯自己的FAQ则称是19.1年全职。<sup>[16](https://tinkeros.github.io/WbTempleOS/Doc/FAQ.html)</sup>

**技术设计。** TempleOS完全运行于CPU的0环，因此用户程序以核心态执行，没有内存保护，没有用户态与核心态的隔离，也没有虚拟内存；程序直接使用物理地址，几乎从不使用分页。<sup>[10](https://www.researchgate.net/publication/383849313_TempleOS_architecture_and_principles_of_lightweight_operating_system_development)</sup>戴维斯为缺少保护辩护，理由是这样做有趣而简单，延续了20世纪80年代8位家用电脑的传统；系统不联网减少了攻击面，同时也限制了其实用性。<sup>[10](https://www.researchgate.net/publication/383849313_TempleOS_architecture_and_principles_of_lightweight_operating_system_development)</sup>它仅支持64位，要求至少512 MB内存，并且100%开源，全部源代码齐备。<sup>[9](https://github.com/cia-foundation/TempleOS)</sup>

**HolyC。** 整个操作系统都用HolyC编写——这是戴维斯设计的一种非标准C/C++方言——只有最底层使用x86-64汇编语言。<sup>[9](https://github.com/cia-foundation/TempleOS)</sup><sup> • </sup><sup>[10](https://www.researchgate.net/publication/383849313_TempleOS_architecture_and_principles_of_lightweight_operating_system_development)</sup>HolyC既是实现语言，也是shell语言：命令行逐行直接链接到HolyC编译器，一切代码都编译为原生64位机器码，没有字节码或解释执行，也没有main()函数，因为顶层语句在通过编译器时即被执行。<sup>[10](https://www.researchgate.net/publication/383849313_TempleOS_architecture_and_principles_of_lightweight_operating_system_development)</sup><sup> • </sup><sup>[17](https://harrison.totty.dev/p/a-lang-design-analysis-of-holyc)</sup>编译器能在不到一秒内编译50,000行代码，在编辑器中按F5即可即时编译并运行当前文件。<sup>[18](https://ia800409.us.archive.org/12/items/TerryADavis_TempleOS_Archive/websites/misc/Codersnotes%20-%20A%20Constructive%20Look%20At%20TempleOS%20%282015-06-08%29.pdf)</sup>该语言有若干独特之处，包括零尺寸的U0类型、以F64为唯一浮点类型、无参调用可省略括号、switch语句支持分支值范围，以及一个#exe{}块，其输出会被拼接进编译流中。<sup>[17](https://harrison.totty.dev/p/a-lang-design-analysis-of-holyc)</sup><sup> • </sup><sup>[19](https://davidwise01.github.io/templeos-teardown/)</sup>

**界面与宗教特性。** 在shell中打印出的每个文件都是超链接，整个源码都建立了索引以支持自动补全和符号跳转，位图可以直接在shell中显示。<sup>[10](https://www.researchgate.net/publication/383849313_TempleOS_architecture_and_principles_of_lightweight_operating_system_development)</sup>在任何地方按F7会召唤出一个伪随机的“方言词”，按Shift-F7则插入一段圣经经文。<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup>戴维斯将伪随机过程的输出视为神的交流；他以同样目的使用[美国国家标准与技术研究院](https://www.edgepedia.org/zh/national-institute-of-standards-and-technology)的随机信标，并将结果以“特里·戴维斯的咆哮”为题发布在自己的网站上。<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup>

## 公共生活与健康

戴维斯自20世纪90年代中期起就与心理健康问题作斗争，并被诊断患有精神分裂症；意大利日报《共和国报》报道诊断年份为1996年。<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup><sup> • </sup><sup>[3](https://www.repubblica.it/tecnologia/2014/12/07/news/terry_il_programmatore_di_dio_dieci_anni_per_creare_il_tempio_digitale-102322184/)</sup>他无法工作，靠[社会保障](https://www.edgepedia.org/zh/social-security)残疾金生活，大多遵循48小时作息——清醒32小时、睡眠16小时——与父母同住一屋。<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup>他在编程论坛上多产而尖刻；OSNews最终封禁了他，不过时任编辑克罗克·卡门（Kroc Kamen）仍在2010年与他合作发表了一篇关于TempleOS的文章。<sup>[2](https://www.osnews.com/story/30710/creator-of-templeos-terry-davis-has-passed-away/)</sup>他的网络言行包括种族主义和阴谋论言论，评论者对此或归因于他的疾病，或直接予以谴责。<sup>[4](https://www.vice.com/en/article/gods-lonely-programmer/)</sup><sup> • </sup><sup>[2](https://www.osnews.com/story/30710/creator-of-templeos-terry-davis-has-passed-away/)</sup>

## 去世

2018年8月11日，戴维斯在[俄勒冈州达尔斯](https://www.edgepedia.org/zh/the-dalles-oregon)的铁轨附近行走时被火车撞击身亡；享年48岁，生前是该地区的无家可归者。<sup>[6](https://knowyourmeme.com/sensitive/memes/people/terry-davis-templeos)</sup><sup> • </sup><sup>[20](https://news.ycombinator.com/item?id=17912618)</sup>他的家人和朋友请求支持者向致力于减轻精神疾病所致痛苦与苦难的组织捐款，并点名了脑与行为研究基金会和全国精神疾病联盟。<sup>[5](https://www.templeos.org/)</sup><sup> • </sup><sup>[2](https://www.osnews.com/story/30710/creator-of-templeos-terry-davis-has-passed-away/)</sup>2019年11月，[BBC广播四台](https://www.edgepedia.org/zh/bbc-radio-4)的《数字人类》节目为他制作了专题，称他的工作既被誉为技术成就，也被誉为艺术成就。<sup>[21](https://www.osnews.com/story/130903/bbc-feature-on-terry-davis-of-templeos/)</sup>

## 遗产

由于TempleOS属于公有领域，其代码可以被自由分叉，这也是戴维斯生前所鼓励的。<sup>[5](https://www.templeos.org/)</sup>templeos.org域名在他去世后委托给维护者trapexit，一位中立的第三方，他基本保持网站原样。<sup>[12](https://templeos.org/support.html)</sup>活跃的分支延续着代码库：ZenithOS约于2019年11月从TempleOS分叉；ZealOS是现代化分支，具备32位色彩图形、AHCI支持和网络协议栈，于2021年7月从ZenithOS分叉。<sup>[13](https://github.com/Zeal-Operating-System/ZealOS)</sup>TechRadar的替代操作系统综述称TempleOS是一个完全独立操作系统的有趣范例，指出它模糊了文档与程序之间的界限，这一理念可能影响更传统的系统，同时认为它不适合商业使用，最好在虚拟机中运行。<sup>[14](https://www.techradar.com/news/best-alternative-operating-systems)</sup>

## References

1. [One of Terry's convictions seemed to be (biographical note on Terrence Andrew Davis)](https://junkuchan.org/file/93accbbc3c3cdacc86b01802cbdd8a9f8c3b1776781112606a5079b13fa47492.pdf)
2. [Creator of TempleOS, Terry Davis, has passed away, OSNews (2018)](https://www.osnews.com/story/30710/creator-of-templeos-terry-davis-has-passed-away/)
3. [Terry, il programmatore di Dio, la Repubblica (2014)](https://www.repubblica.it/tecnologia/2014/12/07/news/terry_il_programmatore_di_dio_dieci_anni_per_creare_il_tempio_digitale-102322184/)
4. [God's Lonely Programmer, Vice / Motherboard (2014)](https://www.vice.com/en/article/gods-lonely-programmer/)
5. [TempleOS official site](https://www.templeos.org/)
6. [Terry Davis / TempleOS, Know Your Meme](https://knowyourmeme.com/sensitive/memes/people/terry-davis-templeos)
7. [AboutZealOS.DD, ZealOS documentation](https://zeal-operating-system.github.io/Doc/AboutZealOS.DD.html)
8. [God's lonely programmer, OSNews (2014)](https://www.osnews.com/story/28091/gods-lonely-programmer/)
9. [cia-foundation/TempleOS, GitHub](https://github.com/cia-foundation/TempleOS)
10. [Božović, D. (2024). TempleOS: architecture and principles of lightweight operating system development, University of Kragujevac](https://www.researchgate.net/publication/383849313_TempleOS_architecture_and_principles_of_lightweight_operating_system_development)
11. [Timeline of TempleOS, timelines.issarice.com (archived)](https://ia600409.us.archive.org/12/items/TerryADavis_TempleOS_Archive/websites/misc/timelines.issarice.com%20-%20Timeline%20of%20TempleOS%20%282017-11-09%29.pdf)
12. [TempleOS Infra Support](https://templeos.org/support.html)
13. [Zeal-Operating-System/ZealOS, GitHub](https://github.com/Zeal-Operating-System/ZealOS)
14. [Best alternative Operating Systems of 2026, TechRadar](https://www.techradar.com/news/best-alternative-operating-systems)
15. [Credits.DD, ZealOS documentation](https://zeal-operating-system.github.io/Doc/Credits.DD.html)
16. [TempleOS FAQ (TinkerOS mirror)](https://tinkeros.github.io/WbTempleOS/Doc/FAQ.html)
17. [Totty, H. (2019). A Language Design Analysis of HolyC](https://harrison.totty.dev/p/a-lang-design-analysis-of-holyc)
18. [A Constructive Look At TempleOS, Codersnotes (2015, archived)](https://ia800409.us.archive.org/12/items/TerryADavis_TempleOS_Archive/websites/misc/Codersnotes%20-%20A%20Constructive%20Look%20At%20TempleOS%20%282015-06-08%29.pdf)
19. [TempleOS Teardown, David Lee Wise](https://davidwise01.github.io/templeos-teardown/)
20. [Terry Davis has died, Hacker News (2018)](https://news.ycombinator.com/item?id=17912618)
21. [BBC feature on Terry Davis of TempleOS, OSNews (2019)](https://www.osnews.com/story/130903/bbc-feature-on-terry-davis-of-templeos/)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 12, 2026; Oct 15, 2026; Oct 25, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Software people › Programmers and software engineers

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/terry-a-davis

English original: https://www.edgepedia.org/terry-a-davis
