Why Windows 11 still ships with Windows 95's memory manager hidden inside it (windowslatest.com)
85 points by khalidkhair 2 days ago
abanana 2 hours ago
> The tradition goes back to SimCity, which only ran on Windows 95 because Microsoft wrote special code for it... Yes, Microsoft modified its OS just to cover up one game’s bug... The SimCity hack was a one-off
The stuff around SimCity in this article is poorly written. It seems the author has misunderstood it to have been a one-off special case. I looked back at Joel Spolsky's article, and he does make it quite clear that the SimCity example was just one of many: "it still ran old 16 bit software perfectly. Microsoft obsessed about this, spending a big chunk of change testing every old program they could find with Windows 95".
The article does later mention "Windows XP’s hidden database of app fixes" but doesn't appreciate that the concept really started with Windows 95, and in a big way, not "just to cover up one game’s bug".
tclancy an hour ago
Rough guess but this is all content farming of Raymond Chen posts at https://devblogs.microsoft.com/oldnewthing/ though I can't find a smoking gun. I definitely remember an article about Intuit doing something some dumb they had to keep an internal API around reporting the wrong value or something like that.
Grombobulous 4 minutes ago
I have read some similar things about macOS having app-specific fixes for popular apps.
It might have been this article: https://news.ycombinator.com/item?id=34034413
philipallstar an hour ago
From an article on this[0]:
> On beta versions of Windows 95, SimCity wasn’t working in testing. Microsoft tracked down the bug and added specific code to Windows 95 that looks for SimCity. If it finds SimCity running, it runs the memory allocator in a special mode that doesn’t free memory right away. That’s the kind of obsession with backward compatibility that made people willing to upgrade to Windows 95.
[0] https://www.joelonsoftware.com/2000/05/24/strategy-letter-ii...
jonathanlydall 2 hours ago
The article’s content is generally quite weak, could probably have been covered in an old school tweet with screenshots and nothing of value would have been lost.
The only positive thing I can say about it is that it doesn’t appear to be written by AI.
I don’t think this person truly understands what they’re writing about, they did a little research, made some screenshots and put enough words in the article so that it will show up in search engines.
It’s reminiscent to me of many articles on Windows error codes, almost all of them are basically generic, generally quite long with drivel, and steering you to install some “fix it” software. Any technical person coming across these just finds them annoying as they clearly gamed the search results with unhelpful content.
pishpash an hour ago
One may even speculate the author got some, or a lot of ... "help", if it's even a real author.
jonathanlydall an hour ago
Chyzwar an hour ago
Your comment also do not bring anything interesting to discussion.
hoten an hour ago
AnimalMuppet 34 minutes ago
I worked for this place that made a security auditing tool. The agent had to know which version of Windows it was running on. When Microsoft came out with a new version, the agent didn't know what it was running on, since it hadn't been updated to include that version. I forget what it did in response, but it didn't run right - maybe just terminated?
Microsoft discovered this in their testing, before they released the new Windows version. In response, they added our agent to a list of programs that Windows would lie to about the Windows version. If our program asked, we would be told the previous version.
Well, that was great, in that our program didn't terminate early (or whatever it did). But now, even after we updated our agent, it still wouldn't know whether it was running on the new version of Windows, and so would not audit it correctly!
This dance shows just how far Microsoft went with backward compatibility. We were not a top-1000-most-used program by any means, but they knew about us and tested us and fixed for us. (I mean, we didn't want it, in this case, but it was still impressive.)
ww520 14 minutes ago
How did they identify your software? Could you guys produce a sibling program whose job is to identify the windows version and notify the main program?
LASR an hour ago
Whatever one might think of Windows and Microsoft, the idea that you can still run apps that are 30+ years old is incredible.
nostrademons 2 minutes ago
My kid's a big fan of original StarCraft, which is now going on 28 years old.
I think you need an emulator to run Civ1, though. My kid was asking if we could try it and I'm like "I don't think I can find that on Steam..."
pureagave 35 minutes ago
I worked on device connectivity in Windows core OS division in the Longhorn/Vista push. I came from the Linux and SunOS world before that. It was simply crazy at the dedication and effort put in to make Windows backwards compatible with whatever old broken and poorly behaving USB and printer device. We would have no-named cheap web cams that didn't function to USB spec but "worked" in Windows 98 that needed to work in Vista while still implementing new secure driver models that broke all cheap device assumptions. It was a long hard trek to get all those devices working.
Grombobulous 3 minutes ago
Did you have to procure a physical library of random devices for that kind of work?
expedition32 an hour ago
Also Windows has a huge community of people who will help you.
With Linux you're stuck trying to decipher the ramblings of neckbeards.
officeplant an hour ago
it's not 1999 anymore, we've already moved past the golden era of stackoverflow and forums to support Linux & Windows questions into a new dawn of poorly sourced reddit bot comments.
Spivak 42 minutes ago
I really want to believe you and that I've just missed the magic support forums but trying to find answers to problems on Windows is just a million forums of the same essentially "turn it off and on again" advice
Linux forums might be obtuse but at least they'll have actual technical details about the problem. Almost without fail any "fix" they propose won't work on your system because it's for a different distro that was EoL 5 years ago but they'll at least give you something to work with.
RajT88 27 minutes ago
xp84 33 minutes ago
RajT88 32 minutes ago
Alternate theory:
https://web.archive.org/web/20130226221212/http://windows95t...
Dwedit 2 hours ago
Why show a screenshot of a different game (SimCity 2000) when discussing SimCity?
jonathanlydall 2 hours ago
You can see my other comment, but short version is that I think it’s just content for the sake of content without the person actually really understanding the topic much more than most of their readers.
immibis2 an hour ago
Because this article is an AI slop rehashing for SEO.
sedatk an hour ago
It actually seems like Windows 11 shipping with Windows 3.1's memory manager that was kept in Windows 95 memory manager as a compatibility option.
manoDev an hour ago
This is a great example of how implementation becomes the specification.
Blikkentrekker an hour ago
This kind of neglect for backwards compatibility is honestly why quite a bit of free software is failing, and also why quite a bit is not that understands it.
Like the fiasco with Python3 and Wayland. It's so clear the developers just thought “Wow, people will just switch” not realizing how much people demand an absolute drop-in replacement and then maybe later you can think of slowly deprecating features to discourage new users from adopting them. Rust realizes this with editions. Yes, it's a big investment for them to continue to support it, but the alternative is that Python library maintainers now have to have this big investment themselves because they have to maintain like 6 different versions of the same library because Python doesn't understand the value of backwards compatibility. z/OS still supports 50s COBOL frameworks and for good reason. No one is going to rewrite that.
These developers when you talk about them really do not seem to understand that people aren't jumping to rewrite code or maintain different versions at the same time and very often even call them “lazy” for not doing it like they're not using their time for other things. Say you're a company, and you can pay a developer for his time:
1) Have him develop new features that make you more money.
2) Have him fix bugs that cost you money.
3) Have him rewrite existing code that will do nothing new, and will probably introduce new bugs again so you can later go to 2.
Which is more attractive?
Spivak 26 minutes ago
Nobody is going to tell you that Python 2->3 wasn't excruciatingly painful but it's hard to argue with the result. Sometimes you have to rip the bandaid off. Python 3 is by far the better language.
You're right the "commercial" timeline of Python would have supported Python 2 forever because big paying clients demand it but I think that would have led to a worse outcome for the OSS community.
Blikkentrekker 3 minutes ago
> Nobody is going to tell you that Python 2->3 wasn't excruciatingly painful but it's hard to argue with the result. Sometimes you have to rip the bandaid off. Python 3 is by far the better language.
It's not “by far”, the weird part is that they broke backwards compatibility but also didn't fix some of the other issues and many of the fixes didn't need backwards compatibility to be broken and most of all, the way Python works would allow code written in multiple versions to interact and they should absolutely have allowed that and allow Python3 code to call Python2 modules.
> You're right the "commercial" timeline of Python would have supported Python 2 forever because big paying clients demand it but I think that would have led to a worse outcome for the OSS community.
The cost of switching was ridiculous and it still is. “venv” needing to exist is symptomatic of the bizarre ecosystem and developers being expected to maintain like 6 different versions of the same library at times and when they don't as user you are screwed.
With Rust, multiple editions can just compile together. Crates written in one edition can be called from code written in another edition.
Also, the optimism just highlighted how out of touch they were, that they thought people would actually just rewrite everything in 5 years is bizarre and suggests a fundamental lack of understanding to me. Same thing with Wayland and GPLv3 to me. This is so common in the FOSS world. People come with a new version and just expect that everyone will quickly switch because they consider their new version better, not realizing that A) even if others think it's better, they still won't “just switch” because that costs time and money and B), very often they don't even think it's better which they never bothered to even investigate before they got started. They just assumed that everyone will agree because the “I have no idea what Xfce is or does, sorry.” people are completely out of touch with the world to be honest and it's pretty clear they're often living in some very specific online bubble and don't understand the concerns of companies, users, and just everyone outside of their own little bubble.
ForOldHack 2 hours ago
I wouldn't be surprised by windows components that use this. Wish I could run 16-bit apps tho.
ranger_danger 2 hours ago
> Wish I could run 16-bit apps tho.
jeffbee 2 hours ago
This is why memory allocators should be linked into applications and should not be considered operating system components.
fredoralive 13 minutes ago
How does the memory allocator statically linked into the application request a new memory allocation into it's address space (sbrk or VirtualAlloc etc.)? Allocating memory will in most cases involve calling into the kernel, it's kinda a core function of a kernel. It has to have some link externally to the programme, directly or indirectly.
GuB-42 31 minutes ago
If an OS update gives me a better allocator, I want every app to take advantage of it. Same idea with other libraries, if I update a library for reading zip files to make it go faster, or to fix a vulnerability, I want every application that uses that library to take advantage of it.
This is a debatable position. Linux distros usually do this, but a lot of modern applications ship with all their dependencies. I'd say the former is more efficient and generally better from a user perspective and the latter is more stable and is generally better from a developer/maintainer perspective. Open source encourages the former, proprietary software encourages the latter.
pcwalton 2 hours ago
Userland system DLLs need to allocate memory too.
irishcoffee an hour ago
Whenever I write I library I don't allocate memory. If memory needs to be allocated, the program calling into the library allocates memory and passes a pointer (or reference I suppose) into the library call.
Clearly this can't be enforced, but I've always found it bad practice to allocate memory inside a library.
rowls66 2 hours ago
And when you are running more than one application at the same time how is that supposed to work?
hyperhello 2 hours ago
It works fine. The processes get a fenced off piece of memory and are allowed to portion it out to themselves any way they prefer. Syscalls are designed to be mostly neutral about how the app wants to proceed.
bigfishrunning 2 hours ago
On a system with an MMU, applications have their own address space that the allocator draws from; pages need to be centrally allocated, but individual allocations can be handled in userspace
Spivak 33 minutes ago
In 20 years we'll have finally reached the logical conclusion to all of this that there shouldn't be separate os components you link against and your "OS" will just be manager of lightweight VMs.
Now you can just ship the user your machine and software can theoretically be immortal.
150g2 an hour ago
And yet scamming people with direct X.
hyperhello 2 hours ago
I don’t know much about CPU and memory back then, but did they not have some kind of memory access debugging mode where it would match every access against the alloc map, understanding that it could be very slow, but would find some of this kind of bug? Come to think of it, do we even have that today?
bboreham an hour ago
There was such a tool, called Purify.
jeffbee 2 hours ago
This is what sanitizers do.
hyperhello 2 hours ago
I know compilers have advanced, but I was wondering about a runtime debug check.
chuckadams 2 hours ago
thighbaugh 2 days ago
What else could be expected of Redmond's finest?
Barrin92 2 hours ago
are you implying the fact that they proactively threw in a custom heap manager for a game is supposed to be a bad thing? The fact that almost any 25+ year old executable runs on Windows to this day is fantastic, they're seemingly the only guys who take backwards compatibility seriously.
ForOldHack 2 hours ago
A hidden z80 emulator...
xp84 23 minutes ago
This spirit is clearly a part of MS's corporate DNA and honestly I think the world is far better off for it. No other platform owner would do this, not today at least. The most you could expect from say, Apple or Google, is that they do ship the betas. If you go all summer without fixing "your" "bug" (note: it could be that the new OS is the code that introduced the bug) it'll just crash on OS launch day and the platform owner would make no attempt to even test it for you.
Maybe there's a tiny exception with like, Apple for Adobe. They might place a phone call between executives to warn them to avoid angering the "pros" who use those apps, but I think it's more because their users internally who also use Adobe apps would notice in the course of testing the betas, than a practice of testing many apps with the intent to ensure they work correctly.
To me what this feels like is that Microsoft's culture to this day considers it would be a breach of trust to ship an OS update that, from your perspective breaks your programs that used to work fine. Compared to the approach everywhere else today that the platform owner simply dictates How Things Will Be Now.