105 points · by ingve · 4y ago · 102 comments
https://devblogs.microsoft.com/oldnewthing/20071224-00/?p=24...
(Arguably DOS was barely in the picture already by the time Windows 3.x's 386 Enhanced Mode came around. It is a hypervisor where DOS and Windows live in virtual machines!)
Windows/386 was the first version to do that, I believe. It's worth noting that it and its descendants were based around this hypervisor architecture but the fact seems to be little-known, perhaps because the virtualisation was so "transparent" (and allowing pass-through hardware access by default). Only later did things like Xen, KVM, QubesOS, etc. "rediscover" this architecture --- but with a "deny by default" model for security instead.
IBM invented hypervisors in the 1960s, and IBM mainframes have seen continual production use of hypervisors ever since then. IBM's mainframe hypervisors had a massive impact on the computer science research community – basically all academic hypervisor research can be historically traced to that initial work inside IBM – and it was that research which the initial developers of systems such as Xen and KVM drew upon.
By contrast, Windows/386 and its successors (Win3.x 386 Enhanced Mode, and Win95/98/Me's VMM kernel) were essentially a historical dead-end. They weren't doing anything which hadn't already been done on other platforms a decade or more earlier. Systems on other platforms were doing far more advanced virtualisation at the same time. They didn't really contribute any significant ideas to future systems, or to academic research into hypervisor technology.
If Xen/KVM/QubesOS/etc started by "rediscovering" anything, it was by "rediscovering" IBM VM, not by "rediscovering" Windows/386.
https://en.wikipedia.org/wiki/CEMM was earlier
I had a 486 with 8Mb of RAM and a 40Mb disk, DBLSPACEd. It usually didn't had enough low memory (because DBLSPACE was a hog) for some games, so... I started Windows and played these DOS games from there.
I don't remember which one game occasionally would drop out with OOM in the DOS (it had 8Mb in the minimal requirements) but run just fine when started from Windows. Virtual memory with swap for the rescue!
I even used Calendar (if my memory serves me well) as an alarm clock to remind myself about the time.
"The Win32 API is implemented by three modules, each consisting of a 16-bit and a 32-bit component:"
Fully?
PC-DOS had a 6.3, but as far as I know, MS-DOS only went to 6.22 before going to 7 (which was not shipped standalone).
Probably typo mistake from author?
MS-DOS ended at 6.22.
PC DOS started to significantly _diverge_ from MS-DOS thereafter, with PC DOS 6.3, then 7, then 7.01, then 7.1.
Unix and Linux, what a world.
The DOSBox development team really likes to take their time, and often rejects outside contributions. They are only interested in running games, so will even reject bug fixes, unless you can show the bug harms some game. They are still on SourceForge and Subversion, which also acts to discourage outside contributors. Overall a rather conservative and risk-averse approach.
The forks are at GitHub, and have GitHub Actions for CI, and more modern build processes/etc. DOSBox-X wants to support running all applications, including non-games; DOSBox Staging has more of a games-centric focus, but still is much more open to new and improved features than the original DOSBox is. Both have a much faster development and release cycle, and are much more welcoming to new contributors.
DOS itself may not be a moving target, but there is still a long way to go in supporting corner cases, features of the platform which applications rarely use, etc.
[0] https://dosbox-x.com/ https://github.com/joncampbell123/dosbox-x
[1] https://dosbox-staging.github.io/ https://github.com/dosbox-staging/dosbox-staging
I read somewhere[0] that a major reason for DOS's success was that it had thousands of programs "already written" for it on launch day due to backwards compatibility with CP/M software. Iirc the same article argued that backwards compatibility is Microsoft's (and Intel's) greatest strength. I can run programs compiled on Windows 95 on Windows 10 today. They go really far with this -- one version of Windows had a hack built into the kernel to work around a bug in SimCity![1]
[0] Placeholder for source, if someone finds it!
[1] https://www.joelonsoftware.com/2004/06/13/how-microsoft-lost...
Sure some new games are cross-platform and work in Linux and Mac, but for anyone who's been gaming for awhile, most of your favorites are PC, and a lot of 'em will still work. A few of the ones that used oddball custom memory management near the end of the DOS era won't work on a modern system. And some that used custom VB controls in the Win-95 era. But a surprising number overall still do.
One that amuses me is SST.[1] Written in the late-60s to early 70s on a mainframe, then ported to PC in the early 90s, still works just fine in Windows 10 (last updated in 2019). Still has a teletype terminal style interface, but also it still just works. And sure, a lot of that was due to the porting done in the 90s, but a lot is also just due to the basic stability of the platform.
That's a game my dad might've played in school, and my grandson could play now.
I wonder how much software written today will still 'just work' in 30+ years? Sure, we can use virtual machines and emulators and such, but without that, will anything written today still 'just work' the way old software does? So much now is constant churn with monthly/weekly/daily updates and dependencies and everything - constant maintenance to keep it running. So many network dependencies even for things that don't need them. I'd say most of us aren't really building software to last.
And if nothing is built to last, that great value of backward compatibility and longevity is lost. Which is kinda sad.
Probably not the article you want, but has a little tidbits:
Yeah, that’s not what a hybrid kernel entails, and that is certainly not the primary difference between DOS and NT. I had to stop reading.
To me, it would be far more interesting to see what modern compilers and development tooling could do towards producing DOS programs and operating system extensions. The tooling from back in the day was very baroque. You had to rely on different mutually incomparable dos extenders to get around all the limitations. (Just try to find the documentation to Phar Lap 386 in 2022.)
The STL didn't exist until the late 90s, and before C++98 it was a wild-west.
There are a lot of these little optimizations that are found in modern compilers that you could only dream about in 1991.
This is a very old version, but I've seen bits and pieces of the last one they shipped and things like command.com and the "kernel" were nearly the same as this, except for maybe some memory management changes. What part did you want to reimplement?
https://forums.overclockers.com.au/threads/retro-faq-dos-199...
He said if I could pass his end-of-year test he would give me the permission to start coding in C++ (I already had Borland C++ at home and was WAY past all this). He was a complete dick about it. Mr. Crow. He can eat it now.
I threw the test and intended to get a perfect 0%. One question that came up is what was the first operating system for the IBM computer system. It was PC-DOS because that's the contracted name. MS-DOS was the name for the generic Intel based system. I knew the answer.
His answer sheet was WRONG. So I got 1 out of 40 questions right. I could have scored a 100% but I hated him as a teacher so much.
His words were "You will never be anything in computers unless you can pass my class". Three letters to prove him wrong: CTO.