by fredrikholm · 4y ago · 0 comments
Naturally, I fired up [Microsoft] Calculator, and arrived at something like 4kb. Later, I had to force quit a stalled process and opened Task Manager, to find that I had forgot to close Calculator.
There it was, idling at 20mb. Initially, I thought perhaps it was slowly leaking memory, so I restarted it. Just the same.
Now, I can already anticipate someone motivating why a calculator needs to exceed the computing power of calculating ~5000 space programs. To that I say, Windows 95 runs at 4mb of memory. Microsoft Calculator is not more complex than Windows 95. At least, I deeply hope that it isn't.
Resolution does nasty things to memory.
As does having every memory allocation be 64bits wide (instead of 8 or 16).
Though I agree with your sentiment.
I agree though that framebuffers put a hard lower limit onto how much RAM you have to use if you want to write a graphical application or even entire OS that saves resources.
The display is a refrigerator-sized unit with a big circular CRT in the middle. You give it vectors and characters, and it draws them with 1024x1024 resolution. It also had a light pen that you could use for interaction with the display.
Indeed! Apple decides the amount of RAM they put in iPhones not based on projected application RAM usage, but on camera pixel count and display resolution.
https://www.macrumors.com/2021/09/15/how-much-ram-in-iphone-...
Its not that the core program has increased in size or has lost performance, but that the code required to build a good program based on that core has increased exponentially.
Also, as a developer, I usually don't care much about memory until I complete the program, check if its consuming abnormally high memory and then sit about to optimize. So, the developer for calculator.exe saw that the program consumes about 0.125% of commonly available memory size (16 GB), and probably concluded that its good enough for a program that is opened and closed, maybe 10 times a day.
Its the same with processing power. Unless you are writing highly resource hungry systems, losing a few thousand cycles here and there are not an issue.
Compounding this problem is the depth of the tech stack and the typical number of stacks used for an application have increased tremendously.
My second PC was a 80486/25MHz with 4Mb of RAM - four 1MB DIMMs. I skipped 80386!
Anyway, that box ran Win 95 eventually after DOS 6 and Win 3.1, then 3.11 W4WG. I also tried out OS/2 on it - 24 1.44Mb floppies I think. It had a new MB with a DX2/66 and loads of RAM (32Mb) later on and ran Win98.
I grew up shortly after that and Linux is my weapon errr OS of choice. Looks quite cool these days and I get less problems with Teams than my MS sporting colleagues. When I need to get something installed I ask pacman or yay to install it and then crack on, whilst my colleagues play with Google and dodgy downloads.
Anyway, on Win9x, calc ran quite happily on a box with 4Mb RAM. Word 2.0 worked too ...
You probably used more paper in your lifetime of printing and book reading and newspaper buying and phonebook and bank statement receiving than Euclid, Pythagoras, Archimedes, Euler, Gauss and Newton combined, is that a problem worth solving?
[1] first price for memory I found on Crucial.com was 8GB for $67.99. Other prices are available.
On my laptop, 114MB of 8GB. 1.3%.
I even used Windows Calculator to work out these percentages because the effort to make the "calculator" button on the keyboard load another calculator, and find another one to load, and learn to use it, to save 19MB of RAM for a few seconds is not worth it.
The ROM on the device was just a series of magnets and wires. Magnetic core memory without the extra wires to write the values. Instead the values were 'written' by having someone thread the wires through the right magnets. Thousands of times. It was a very surreal "wait, that's how they did that? ...well of course, how else would they do that?" moment.
Timestamp 2:55 https://www.youtube.com/watch?v=9IPP39OF78M
IIRC, Windows 3.0 didn't run happily in any circumstances, that had to wait for 3.1.