184

Microsoft open-sources "the earliest DOS source code discovered to date"

https://opensource.microsoft.com/blog/2026/04/28/continuing-...

It is rare that I say this but, thanks MS! Arguably just as, if not more, important is the BASIC that they wrote. That was what they actually wanted to do. DOS just got them the contract with IBM. For decades MS was really a developer tools company with a side biz of writing operating systems and other misc software. They also open sourced that BASIC code too [1].

[1] https://opensource.microsoft.com/blog/2025/09/03/microsoft-o...

4 hours agojmward01

wow, they had to OCR it back in from paper printouts

> This source code is old enough that it hadn’t been stored digitally. “A dedicated team of historians and preservationists led by Yufeng Gao and Rich Cini,” calling itself the “DOS Disassembly Group,” painstakingly transcribed and scanned in code from paper printouts provided by Paterson. This process was made even more difficult because modern OCR software struggled with the quality of the decades-old printout.

5 hours agolocusofself

I'd like to hear more about what works in OCR of dot-matrix fonts.

I've been able to OCR letter-quality printer output to 97% (mostly Os and Xs problems).

But it seems that machine-learning text-recognition is also now biased to reject computer code because it doesn't look like human language.

4 hours agoFarmerPotato

Yet another case where text printed on paper outlived any digital storage.

4 hours agoSoftTalker

Seems like it was never digitally stored in the first place, and the printed text was barely readable due to age. Not really a big win for paper.

4 hours agojshier

Well it had to have been on disk or tape at some point. It wasn't all typed in by hand every time they needed to build a new version.

4 hours agoSoftTalker

unless they used punch cards

20 minutes agodebesyla

> unless they used punch cards

For MS-DOS?

6 minutes agoandsoitis

The idea that it never existed digitally is obviously untrue. Likely poor wording in the author's part. They probably meant something like, so old that a printout is all that survived (which sounds vaguely like not being digital to someone in an era so far removed from a time when programs were/could realistically be printed.)

3 hours agozargon

> a time when programs were/could realistically be printed

Really depends on the program. Source code is often quite manageable. Even artifacts aren't always as large as you might expect. Busybox on my system weighs in at 1.9 MiB or alternatively 928 KiB with zstd maxed out.

But I don't really see a point to printing any of it. A situation that might require the printouts is likely to largely preclude the continued existence of modern electronics, the ability to replace batteries, or even a connection to a reliable electrical grid.

2 hours agofc417fc802

Yeah, that's why I tried to include both categories. Even for programs that are small enough to be printed, we just don't do it any more. I could have worded that part better myself.

an hour agozargon

How did they print it then, I wonder?

2 hours agoirishcoffee

They had some old German guy with a big beard, and two interns, running some sort of big contraption that looked like a medieval torture instrument, and the interns would run and put letters in a row and then the old guy move a massive letter and in the end out came a bit of paper with source code on it.

an hour agobryanrasmussen

> struggled with the quality of the decades-old printout.

barely

It sounds like this printout has deteriorated badly and was barely readable.

4 hours agopetcat

It is wonderful how early years of modern computing was brilliant. We treated machines as they really are: machines. Performance, creativity, science..., all possible to make a 386 machine work. Nowadays is all about libraries, virtualization, [bad] code over [bad] code over [bad] code..., I dont like it.

5 hours agoteamsolid

For a very long while now, we had programmers who never understood any low level concepts at all. They have started with js or python, and never looked 'down'. There are no limits to monstrosities they will consider normal.

Linus Torvalds, a few months ago, said something to this effect when discussing AI coding tools. That his (also, mine) generation was lucky to have started with low level stuff and managed to retain the understanding of the whole stack - and kids these days don't get that. Good luck acquiring this level of feel for computers, algorithms, data structures today, when a kid's first experience with coding will be a seemingly genius chatbot.

an hour agoaenis

I sometimes think that my mental model of a computer is still an Apple ][+ with 48K of RAM leads to my writing better code.

4 hours agodhosek

And mine is a Commodore Vic-20 circa 1981, with 3583 bytes of free RAM. Programmed in 6502 assembler. Can't get much closer to the CPU than that.

17 minutes agostevesimmons

I wonder how long it'll be before they release the source for the earliest Windows versions. The fact that they still have the source for this very old DOS at least gives hope that they also do for old Windows.

5 hours agouserbinator

The day they would make Windows 2000 codebase open source (or source available) would be the day I could die happy (although I'd probably be long dead anyways by the time there's a glimmerof chance of it happening). What a beautiful, smooth-running operating system it was.

3 hours agoGaryBluto

Wasn't there a 2000 source leak a while ago? I remember some exploits coming out after the leak.

44 minutes agoNitpickLawyer

Agreed. It's still my favorite Windows version.

2 hours agooptymizer

There is a mostly complete leak of it...

3 hours agolondons_explore

I imagine its not far off. I get the impression they are almost done with windows as a platform.

2 hours agoprotocolture

I am sure that there is a lot good material to take inspiration and learning even from the early Windows 3.11.

5 hours agoteamsolid

Do a deep dive into how OS/360 formalized to having DOS.

4 hours agomycall

/s ?

4 hours agoSoftTalker

Pretty sure it's a bot or simple karma farming operation.

2 hours agoAlecSchueler

They waited a couple decades too long for this to be of interest.

4 hours agothrowaway27448

Time to find vulnerabilities!

I remember in the naughts, coming across a dos machine that was quite out of time… even for the university basement it was living in next to a pile of lead brick. Its only job was to run an instrument via an home-built ISA card and write data out to 5.25” floppies.

What uses would this code have in 2026?

5 hours agoimoverclocked

It's a single user OS that runs everything in ring zero by design. I'm not sure, definitionally, that it can have security vulnerabilities. I... guess maybe code execution on exposure to an untrusted floppy disk filesystem?

18 minutes agoyjftsjthsd-h

To see what decisions they made. Like any historical document. Aim to understand the people of the time.

4 hours agoFarmerPotato
[deleted]
4 hours ago
[deleted]
4 hours ago

Too little, too late.

4 hours agodooosss

in the words of mr. mitch-hedburg “here, you throw this away“

5 hours agosigna11

He could have sold those printouts instead of giving them away.

3 hours agoTedDoesntTalk

Back when it was all written by hand and optimized well.

5 hours agofroyooh

[flagged]

4 hours agoxuzhenpeng

[flagged]