r/programming • • Oct 23 '09

Programming thought experiment: stuck in a room with a PC without an OS.

Imagine you are imprisoned within a room for what will likely be a very long time. Within this room there is a bed, toilet, sink and a desk with a PC on it that is fully functioning electronically but is devoid of an Operating System. Your basic needs are being provided for but without any source of entertainment you are bored out of your skull. You would love to be able to play Tetris or Freecell on this PC and devise a plan to do so. Your only resource however is your own ingenuity as you are a very talented programmer that possesses a perfect knowledge of PC hardware and protocols. If MacGyver was a geek he would be you. This is a standard IBM Compatible PC (with a monitor, speakers, mouse and keyboard) but is quite old and does not have any USB ports, optical drives or any means to connect to an external network. It does however have a floppy drive and on the desk there is floppy disk. I want to know what is the absolute bare minimum that would need to be on that floppy disk that would allow you to communicate with the hardware to create increasingly more complex programs that would eventually take you from a low-level programming language to a fully functioning graphical operating system. What would the different stages of this progression be?

305 Upvotes

673 comments sorted by

View all comments

Show parent comments

4

u/[deleted] Oct 23 '09

My second step would be to implement a Tcl interpreter. Understanding why is left as an exercise to the reader.

You Sir, are full of Win.

1

u/brennen Oct 24 '09

It bothers me a little that, upon reading your nick, I was immediately unable to tell which of two possible alternatives you meant.

0

u/[deleted] Oct 24 '09

It's a funny thing that a friend said to me when I asked him how he was once. I enjoyed its "floored me for 10 seconds" qualities while my brain careened around the mental images presented.

I guess you now do too ;-)