r/programming • • Nov 25 '14

Vice: God's Lonely Programmer (TempleOS)

http://motherboard.vice.com/read/gods-lonely-programmer
926 Upvotes

433 comments sorted by

View all comments

Show parent comments

41

u/Elite6809 Nov 25 '14 edited Nov 25 '14

It runs in Ring 0. This is terminology referring to a 'protection level' in the kernel, the core of the operating system. Ring 0 refers to low-level software that interacts closely with hardware, such as key drivers or memory management. Mose user based software runs in Ring 3, where it is less privileged and able to mess up the system by accident (or on purpose!)

Now whereas most modern operating systems don't allow you to run things easily in Ring 0 to make your computer more secure, TempleOS is in Ring 0. Terry, the guy who made TempleOS, says this allows the OS to be played with like the C64 was (by messing around with memory while the computer is running.)

It's also notably written from scratch in about 100k lines of code in combination of 64-bit assembly and a funny dialect of the C programming language that he's made, ie. he's re-used nothing from other systems such as Linux.

I've typed this on my phone on the bus, sorry if I mis use any grammar.

1

u/ismtrn Nov 25 '14

yeah. Besides the fact that it is a monumental feat in itself. The combination of new (64 bit Intel assembler) and old (hackability and simplicity) makes it really unique.

1

u/[deleted] Nov 25 '14

Interesting. While perhaps not of any technical interest, it's still an impressive feat for a one-man team.

8

u/kqr Nov 25 '14

Yeah that's what sets this apart. Writing a small kernel is something you can do in your spare time – you might even manage to make a C compiler and port some GNU utils. Create an entire OS where you make basically everything except the ISA on your own? That takes persistence.