[ prog / sol / mona ]

prog


What if we made DOS, but UEFI.

6 2023-06-14 09:57

"The CIA encourages code obsfucation. They make it more complicated than necessary. TempleOS is, literally, more simple than necessary. It is obnoxiously simple... to the point it hurts."

"In UNIX everything is a file, in TempleOS everything is a document" (documents can have embedded models and sprites as well)

TempleOS core features:

x86_64, ring-0-only, single-address-map (identity), multitasking kernel with multicore support.
Free, public domain, 100% open source.
64-bit compiler/assembler for HolyC (a non-standard dialect of C/C++). Truly compiles, doesn't interpret. Just-in-Time and Ahead-of-Time compilation. With JIT, no need for object or exe files.
640x480 16 color VGA graphics.
Oracle in with <F7> for words or <SHIFT-F7> for passages.
Many games, demos and documentation.

#EXAMPLE

aria2c -x 2 'https://archive.org/download/TempleOS_ISO_Archive/TempleOSCDV5.03.ISO'

# Create a virtual HDD:
qemu-img create -f qcow2 TOS_disk.qcow2 2G

# Install TOS
qemu-system-x86_64 -hda TOS_disk.qcow2 -smp cores=2 -enable-kvm -cpu host -m 4096M -rtc base=localtime -soundhw pcspk -cdrom TempleOSCDV5.03.ISO -boot d

# Run the TempleOS VM
qemu-system-x86_64 -hda TOS_disk.qcow2 -smp cores=2 -enable-kvm -cpu host -m 4096M -rtc base=localtime -soundhw pcspk -boot c

Links
* Site: https://web.archive.org/web/20170221041504/http://www.templeos.org/
* New/Unofficial site: https://templeos.org
* Terry's old blog: https://web.archive.org/web/20141020170729/http://www.templeos.org:80/Wb/Accts/TS/Wb2/Rants/TAD/TADRants.html
* Mirror: https://templeos.holyc.xyz
* ISOs: https://archive.org/details/TempleOS_ISO_Archive (some versions lack After Egypt)
* Docs: https://templeos.holyc.xyz/Wb/Doc/HelpIndex.html
* Videos: https://archive.org/download/TerryADavis_TempleOS_Archive/videos/ (and other archives)
* Shrine: https://github.com/minexew/Shrine
* ZenithOS: ~~ zenithos.org ~~ (dead link)
* ZealOS: https://github.com/Zeal-Operating-System/ZealOS
* HolyC: https://web.archive.org/web/20170325000321/http://www.templeos.org/Wb/Doc/HolyC.html
* Unofficial docs (including HolyC): https://templeos.me
* HolyC compiler for Windoze/Linux: https://github.com/nrootconauto/3Days
* More...: https://github.com/topics/holyc
* https://harrison.totty.dev/p/a-lang-design-analysis-of-holyc

GodWords for Lunix
You need to have /usr/share/dict/words file. On Arch and Artix, you can obtain this file by running doas pacman -S words

#!/bin/bash
#This prints ten random words.

echo "$(shuf -n 10 /usr/share/dict/words --random-source=/dev/urandom | tr '\n' ' ')"
9


VIP:

do not edit these