205 points · by ElectronShak · 8y ago · 189 comments
The 640K limitation derives from the 1MB address space of the IBM PC, and as the name implies, IBM did the hardware design. They did it around a particular Intel chip, which had a 1MB address space. IBM could've put in hardware support for bank switching (as some EMS/XMS add-in cards later did), they could've used a chip with more than 20 address lines, they could've done a lot of things.
But they didn't. IBM wasn't designing a mainframe-killer, they were designing a personal computer. It was competing with 16k and 64k 8-bit machines, and the first IBM PCs shipped with 64k and later 128k of RAM. Using the top 384K for peripherals and allocating 640K for programs must've seemed insanely generous at the time. But whoever made that decision, it was on the hardware side, not anyone at Microsoft.
Bill Gates' famous comment isn't really a decision though. As it's usually cited it's just an opinion - '640Kb should be enough for anyone' means "I don't think any programs will need more than that!". If someone at IBM decided that there should be 640Kb of available RAM for programs it's believable that Bill might have simply been agreeing with them.
The main thing that's annoying about the quote is that it's trotted out as an example of how Bill was wrong, as if being wrong is something terrible that he should be ashamed of decades later. That's nonsense. Being wrong is fine so long as you change your mind when you understand that you are wrong.
In 10 years, that might be a hilariously small number, but for right now, it's way more than the extreme vast majority will need.
What more RAM does is allow programmers to "be lazy": slap libraries together and use powerful but resource-hungry abstractions rather than hand-tune details.
We have a similar pattern today with JavaScript and CSS layering in web pages, making them slow and bloated.
It's increasing hardware usage in order to reduce greyware (human programmer) usage. Whether such is "smart" or economical makes for an interesting debate. It appears consumers prefer cheaper software over cheaper hardware for some reason. Software developers who are fastidious over hardware resource usage (RAM & CPU) are not sufficiently rewarded. The group that slaps existing API's together to get their product out quick and cheap seem to come out ahead.
I remember how MS-Office for DOS shipped on 7 floppy disks. I kept wondering why people tolerate loading 7 floppies. It's because the alternatives of the time were harder to use or cost more.
That's what it always felt like as an Amiga user. Not before DOOM there was much I liked on the PC.
Release Amiga 1000: July '85 Release DOOM: December '94
Even using the 8088 vs. the 8086 was a cost-saving move. A premium IBM PC might well have simply flopped rather than accelerating the industry.
http://www.old-computers.com/museum/computer.asp?st=1&c=623
But 1981 was just too early for 68000 non workstation machines since the early chips were slow and expensive. The 1983 Lisa was limited to 4MHz, for example, in contrast to the 1984 Macintosh's 8MHz. I remember the price of the chips dropping from over $100 to less than $20 in just one year back then.
The 8086 was thought too powerful and would compete against existing IBM products, so the 8088 was chosen. Other changes to expansion and bus architecture were on the same basis.
I spent over a decade completely failing to understand how it could succeed against Amiga.
Yeah, "640k should be enough for anybody (specifically in the context of a conversation about current hardware of software and not necessarily in perpetuity)"
“8 core CPUs or 32GB of RAM are more than enough for gaming” (c) 2018
Facts change and opinions change with them. Wonder if Moore’s law will get the same treatment now.
Of course that's wrong, and most of the time it is used by people who don't understand the trade offs made in incremental advancements in tech standards.
The 8086 was thought too powerful and would compete against existing IBM products, so the 8088 was chosen. Other changes to expansion and bus architecture were on the same basis.
The PC was not supposed to be the benchmark design on which the entire future of computing was built. If you were looking for one of those better off starting with an Amiga. :)
Hardware had removed the 640K memory limit - but Windows stuck with it for years afterward. Not for any technical reason, but because they dominated the market, and neither needed to change nor wanted to change - no matter how hard that made things for developers.
I worked with Microsoft guys, and they were very blunt about not wanting to change their working OS code if they didn't need to - so Bill held back the entire industry for years.
It's easy to say they put back "the industry" for years, if we define the industry as chip design, but I think it's just as easy to make a case that they greatly expanded the industry over this time by giving people a platform and OS combo that could continue to run their software from a few years back even after upgrading every component. In my opinion, consumer confidence likely greatly outweighed the other benefits, as it allowed economies of scale to really be reached, and spurred the whole industry forward from the massive demand.
So, here's a thought for ya: MS Excel from back then won't run on anymore, 16-bit apps aren't recognized by modern Windows, etc.
But a .XLS created back then sure will. And lots of business logic is codified in Excel spreadsheets.
I posit that .XLS is a more stable platform than Windows itself.
Entire businesses have been run on systems that have 512k of RAM.
The IBM Series 1 had up to 128k: it was designed by Don Estridge, more famously known as the father of the PC...
The hardware supported more than 1MB, as later CPUs proved. However, MS-DOS didn't really support it, as EMS/XMS proved:
https://www.filfre.net/2017/04/the-640-k-barrier/
I'd say that you've got it backwards, in my opinion. And in the opinion of that fine article I linked.
The 80286 CPUs did support up to 16 MB of RAM, but they needed to be switched into protected mode to be able to use it. The problem was, that there was no way to switch back, except reset. That might be the reason, why MS DOS never supported this mode.
With 80386, it was possible to run in protected mode AND run real mode binaries in VM86 mode, which is exactly what Windows 3.x used.
That excuse is valid for 8086, but it's no longer valid for the 386.
While he didn't use the exact words of the title quote, there are multiple sources which indicate he was indeed surprised at how fast applications grew in memory requirements/usage. Thus, I rate it as "partly true".
At lot of it was probably caused by the switch from hand-crafted low-level code to libraries and compilers, which usually take up more RAM for comparable features. While such tools sometimes can produce compact code, it's often not considered economical by publishers.
source: https://www.youtube.com/watch?v=oxY89F5oU-I
For both Linus and Bill - anything they said you have to remember the context. 640K was - "YUUGE" (always say it right) For Linus releasing linux at the time a 64Mb task was "YUUGE" (again just make sure you always say it right)
But 64 bits should be enough for anybody.
Aarch64 on the other way...
There are still things you could do, of course. For example, you could more or less NaN-box but rotate the bits so the tag is in the lowest bits instead of up in the exponent, then ensure all your pointers are sufficiently aligned. That would mean a perf hit on doubles to do the rotation to recover the double, but you might be right that this is not too bad in practice on modern hardware.
Well, there goes that startup idea ...
So yes, highly likely for a little while..
> I expect that to change before upgrading to 128-bit pointers.
Or the joke was wasted on me. Did you mean it will never be feasible?
I think the value of a larger pointer (immediately) would be tags, not memory density, just as it was with 64-bit systems -- my old Alpha only had 256mb of ram, and maxed out at 512mb IIRC.
Wow. What kinds of workstation tasks need this kind of memory, if I may ask?
??? I know of multiple high end servers with 1TiB+ memory footprints. What is your definition of high end?
Here, have a look at HP's page if you don't believe me: https://www.hpe.com/us/en/product-catalog/servers/proliant-s...
And I'd hardly consider those "high end", there are much larger memory servers out there if you want them.
I've already run into cases of programs figuring that a "64-bit" address space is basically infinite and running out of address space by trying to have tens to hundreds of thousands of 4GB memory mappings (not necessarily backed by RAM).
For global or large system level addressing 128 to 256-bits should be enough.
(note: you may want local 128-bit virtual addressing for other reasons than accessing more memory)
Yes, that's why IPv6 is as big as it is. We could fit pretty comfortably into 64 bits for a long time, really, if you assume we fairly tightly pack everybody in. 128 bits is really to give us some routing headroom, not because anyone seriously thinks we're going to use IPv6 on 2^128 distinct targets any time soon. (By the time we have a "galactic internet" it sure won't be using IPv6, not because it's bad or wrong but just because we're going to need something designed to handle the very different challenges involved.)
You don't want to share the same compact memory allocator with the malloc(3) from the other side of the galaxy, or even different city.
Now, what do you guy think about the "Al Gore said he invented the internet"?
Ah, the wonders of a post-truth world...
In the film of Johnny Mnemonic, the screenplay of which was penned by Gibson himself, Johnny must act as a courier for 320 GB by using a brain implant -- in 2025. It's 2018 in the real world, and data smugglers today would probably get farther by swallowing toy balloons with two or three microSD cards in them than by going the whole invasive wipe-your-childhood-memories brain implant route (if such a route were available).
That said, it's one of my favourite books.
See Numenera [0] though, set a billion years in the future, while still keeping a sense of familiarity.
Since part of its purpose was as a writer's guide that terminlogy slipped into the shows and was quite believable when some character expressed surprise that a tiny chip could carry '15 kiloquads' of data. It worked very well.
https://en.wikipedia.org/wiki/Wirth%27s_law
Although I'm sure hardware companies will find a way to promote deep learning techniques into home computers, which will obviously require more and more transistors.
That should tell you how much you'll need in 2038.
Thanks!
> I always thought he was talking about his monthly bonus, not computer memory...
Ha!
the fact that a direct quote doesn't exist doesn't mean that it wasn't the sentiment at the time.
They did want an interactive TV set.
To add: If were to be asked if I had a Computer in my house, and I didn't actually have my tower or MacBook, I would respond "No."
It was making fun of the 640K limitation of MS-DOS, and the implicit reasoning behind that hard limit.
:-)