Microsoft’s original source code

gatesnotes.com

448 points by EvgeniyZh a day ago


stkai - 21 hours ago

The source code is such a fun read (for the comments). I found some source code for GW-BASIC, and here are two of my favorites:

  ;WE COULD NOT FIT THE NUMBER INTO THE BUFFER DESPITE OUR VALIENT
  ;EFFORTS WE MUST POP ALL THE CHARACTERS BACK OFF THE STACK AND
  ;POP OFF THE BEGINNING BUFFER PRINT LOCATION AND INPUT A "%" SIGN THERE

  ;CONSTANTS FOR THE RANDOM NUMBER GENERATOR FOLLOW
  ;DO NOT CHANGE THESE WITHOUT CONSULTING KNUTH VOL 2
  ;CHAPTER 3 FIRST
Edit: GW-BASIC, not QBASIC (https://github.com/microsoft/GW-BASIC)
nilsbunger - 6 hours ago

Steve Jobs used to say the problem with Microsoft is they don’t have taste.

The font-shimmering effect on scroll immediately reminded me of that, it is really distracting. And you can’t use reader mode to disable it.

(FWIW, I’m a fan of Bill Gates and all he’s done for the world)

MrFurious - 6 minutes ago

This website froze my phone, not joking.

zabzonk - 19 hours ago

I've written an Intel 8080 emulator that was portable between Dec10/VAX/IBM VM CMS. That was easy - the 8080 can be done quite simply with a 256 value switch - I did mine in FORTRAN77.

Writing a BASIC interpreter, with floating point, is much harder. Gates, Allen and other collaborators BASIC was pretty damned good.

n0rdy - 4 hours ago

Flipping through the source code is like a time machine tour of tech's evolution over the past 50 years. It made me wonder: will our 2025 code look as ancient by 2075?

And, btw, great infographics within the post.

jwnin - 21 hours ago

Some luck, and willingness to take risks paid off in ways that could never be anticipated. Not sure I'll see something like the pc era in my lifetime. Perhaps mobile phones, or the Internet.

jer0me - 21 hours ago

The source code is linked at the end (warning: it's a 100 MB PDF).

https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542...

_fat_santa - 5 hours ago

Total sidenode but "Gates Notes" has to be one of the most exotic personal blogs I've ever seen. At this point would you even consider this a personal blog?

azemetre - 17 hours ago

It's interesting reading this after finishing Palo Alto by Malcom Harris.

keepamovin - 15 hours ago

Damn this is cool. I think text is an underutilized medium for design.

ChuckMcM - 18 hours ago

I would say, "Looking forward to the github repo with this code in ASCII" but I realize Microsoft would likely not allow that.

santiagobasulto - 21 hours ago

Microsoft (and maybe even Bill Gates personally) generated a strong "dislike" sentiment to the hacker community. But we can't deny that he and Paul Allen were pure breed hackers and helped a lot the development of technology. Of course, we all prefer OSS and we'd pick Linus (or insert OSS dev name here) 100 times over one of the "evil capitalists"/s, but nevertheless they have to be recognized.

Barrin92 - 17 hours ago

What stands out to me about Gates and Allen is the serious technical chops. Writing an emulator for the PDP-10 and then an interpreter, line editor, I/O system all in 4KB of memory. The code is worth reading and in addition to that they had a very solid business sense and pretty serious work ethic for people who were 20 years old.

It stands to me in real contrast to the "fake it till you make it", "if it works you shipped too late" hustle culture that took hold of the industry, with entire products just being API wrappers. Really hope we see more companies that start out like Microsoft again.

firefax - 6 hours ago

Why do I need to enable JS to view this website?

amai - 3 hours ago

Source code published as PDF? Come on, this should be published on Github.

srb24 - 13 hours ago

i thought they started by writing traffic control software, where's that source code? :)

enigma101 - 4 hours ago

pretty slick

nxpnsv - 11 hours ago

Nice design

froggertoaster - 16 hours ago

I met Bill Gates briefly a few years ago. Nice guy. Definitely buying his book.

starik36 - 21 hours ago

The screenshot of the source code at the end of the article is a ton of printed code.

How was it then entered into the Altair? Did someone have to retype it? Or was there media that predated floppies that was used?

davidblue - 19 hours ago

Love how absolutely engorged and broken this web page is to dramatically depict a style that - were the article actually just published in plain text - would be what... a millionth the size? Should have known better than to be surprised that the "source code" one can "download" and "look through" is in a goddamned PDF.

I do truly wonder if the fact that he was publishing a PDF as downloadable "code" even caused him any pause lol.

billforsternz - 21 hours ago

There's something rather cringeworthy about the heavy and painful animations etc. on this website trying to create a 1970s computer technology vibe but instead just giving me a headache. I'd much prefer the same information, and the same vibe, with some much less fancy, lightweight easy to read web tech that actually simulates an authentic 1970s experience (I remember that era well! I'm an 8080 programmer myself from way way back).

winrid - 17 hours ago

This website is the biggest missed opportunity to use win98.css ever

switch007 - 19 hours ago

Guys, even reading this article could land you in jail!! Reading the code will forever taint your knowledge and cause every line you write to be subject to a lawsuit !! Stay safe !11

(Anyone else remember 2004, how scared everyone was when the Windows 2000 source was leaked?)

MaxGripe - 20 hours ago

[flagged]

chipper2387 - 19 hours ago

[flagged]

redwood - 20 hours ago

[flagged]

gloosx - 12 hours ago

[flagged]

hulitu - 14 hours ago

> Celebrate 50 years of Microsoft

Maybe vomit. So many days lost trying to use Windows, Office and other "apps"[1] from Mictosoft.

[1] They were never able to write programs.

Seanambers - 19 hours ago

Its written for people who know nothing about computers but most people who will read it knows loads.

rayiner - 18 hours ago

The fact that Microsoft has a $2.77 trillion market cap despite being terrible at virtually everything it tries to do proves large swaths of the economy are fake.

whatever1 - 17 hours ago

Cool Bill. But do you have what it takes to fix the onedrive shared folder bug that has been open for more than a year?

breadwinner - 21 hours ago

Microsoft got its start by Bill Gates doing some dumpster diving. Back then software wasn't seen as valuable thing, only hardware was. Source code wasn't something to be protected, so printouts of code would be thrown in trash. And that's where Bill Gates found the source code for Basic interpreter, which he ported and it became the first Microsoft product.

https://americanhistory.si.edu/comphist/gates.htm

https://paulallen.com/Futurist/Microsoft.aspx

ok123456 - an hour ago

Gates pivoting back to being a "computer genius" reflects how badly his philanthropic reputation laundering operation is going.