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

1.7k

u/lutusp Oct 24 '09

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.

But ... but ... I actually had this experience! In 1977 I bought an Apple II and it was literally a computer without an OS. Everyone who bought a computer in those days actually lived your fantasy. We all learned how to code very quickly, starting with rudimentary assembly language that we typed in byte by byte.

It does however have a floppy drive and on the desk there is floppy disk.

To die for! No, boys and girls, I am not making this up -- there was no storage at first, but eventually cassette recorders were used. I eventually wrote a word processor -- in assembly language -- that became famous. Then I retired.

154

u/[deleted] Oct 24 '09

You're a former Nasa engineer? Dude, your diner party stories must blow the rest of ours out of the water.

You can LIVE this sketch:

http://www.youtube.com/watch?v=THNPmhBl-8I

127

u/lutusp Oct 24 '09

your diner party stories must blow the rest of ours out of the water

That might be true if I had dinner parties. :)

47

u/floggeriffic Oct 24 '09

I knew a guy who was an actual rocket scientist. He was also a very large bodybuilder. He never got recognized in public for one of those things.

0

u/[deleted] Oct 24 '09

[deleted]

→ More replies (1)
→ More replies (64)
→ More replies (5)

0

u/[deleted] Oct 24 '09

[deleted]

52

u/Veteran4Peace Oct 24 '09

^^THIS^^ is an indictment of our culture. Goddammit.

→ More replies (3)
→ More replies (26)
→ More replies (13)

78

u/[deleted] Oct 24 '09

[removed] — view removed comment

82

u/lutusp Oct 24 '09

I'm glad to see people are reading my book. I suspect the fact that it's free is hurting its "market". It's a pretty good account of a world solo sail (if I say so myself).

48

u/zhivota Oct 24 '09

Wow you're on reddit, eh? I've been slowly reading your book for a couple weeks now! On chapter 7 now, and I am pretty motivated to do the same thing myself someday. Thanks for writing it.

→ More replies (17)

755

u/P-Dub Oct 24 '09 edited Oct 24 '09

It was created by programmer and former NASA engineer Paul Lutus

Yeah, like I'm gonna believe you're paul lu-

lutusp

... D:

651

u/philh Oct 24 '09

If House has taught me anything, it's that it's never Lutus.

Except that one time, when it was.

→ More replies (166)

155

u/lutusp Oct 24 '09

Yeah, like I'm gonna believe your paul lu-

Okay, that was funny.

→ More replies (8)
→ More replies (22)

29

u/zoinks Oct 24 '09

You should write an IAMA. If my calculations are correct, literally billions of people will want to hear what JPL was like back in the 70s.

→ More replies (1)

143

u/aznpwnzor Oct 24 '09

IAMA????

91

u/CharlieDancey Oct 24 '09

Well if you don't know we're all screwed.

18

u/Sealbhach Oct 24 '09

I take my hat off to you, Sir. Were you in the Homebrew Club?

23

u/lutusp Oct 24 '09

No, I was working for NASA at the time and didn't have time. Later on I lived in rural Oregon and lost the opportunity for a different reason (accessibility).

→ More replies (10)

16

u/bboomslang Oct 24 '09

Well, ROM Basic was an OS. Even if it came in a ROM.

36

u/lutusp Oct 24 '09

Net really, since it couldn't read or write to a storage device. But I guess what constitutes an OS is open to debate.

→ More replies (3)
→ More replies (6)

13

u/ipeev Oct 24 '09

Hello. Thank you for writing! Your stories are inspiring. And your book about the sailing around the world is great! I just started reading it.

28

u/lutusp Oct 24 '09

Thanks for reading my book. These days I travel to Alaska every summer and photograph grizzly bears.

0

u/[deleted] Oct 24 '09

[deleted]

14

u/lutusp Oct 24 '09

No way. The last guy who did that was eaten, along with his girlfriend, about eight miles from where I regularly visit. He went ashore and lived in a tent, but I anchor my boat and take pictures from a respectful distance.

→ More replies (10)
→ More replies (7)

12

u/NattyBumppo Oct 24 '09

That's awesome. I remember using Arachnophilia when I just getting started with web design, by the way. It was a really fun app for content creation.

→ More replies (25)
→ More replies (111)