261 points · by lelf · 6y ago · 49 comments
This really blew my mind.
Unfortunately, AMD made a mistake in AMD64: the new 64-bit floating point context switching instructions couldn’t switch the FCS and FDS registers. This not only broke some very old software when run on a new kernel or hypervisor, but it also created a potential information leak.
Sadly, new CPUs “fix” this in an unfortunate way. Trying to read FCS or FDS gives zero. Now some very old software is broken.
I think there is more to it. I think is because they actually don't want obsolete software to be seen on their computers. Imagine people posting a picture with a Macbook on Instagram, and you see some ugly 1990 piece of software running on it. Not cool. So from time to time they remove whole frameworks, to force developers to re-implement the app in a new one, which is prettier. If no one is still around to maintain the app, that's ok too.
This is why you don't see any ugly software on Macs, they make sure to purge it every 5 years or so.
Note: I switched to Win10+WSL in 2018 - it's a good and productive environment, but I do miss certain aspects of MacOS still. I think valuing consistency over backwards compatibility is a valuable choice, as long as the people in charge have very good taste. Not so sure about that anymore in recent iterations though.
Personally I thought the whole 32-bit thing was blown out of proportion. It wasn't long between Apples shift to Intel and 64-bit machines becoming the norm. The majority of software got updated and a few vocal haters complained a lot on HN.
Couldn’t disagree more; ctrl-alt-del gets a LOT of use on every Windows OS and client software combination I’ve ever used - I can’t even remember the equivalent hotkey on MacOS although it’s now been my daily driver for ~2 years of heavy use.
[1] https://archive.org/search.php?query=creator%3A%22Microsoft%...
I would say the concentration of Czech/Slovak people around .NET at MS is a result of accidents and networking. I got into the team thanks to a friend of a friend who heard I was interested. But yeah, it's a surprising number given the size of the population of Slovakia and Czech republic.
There's a newly opened .NET development center in Prague so the number is likely going to grow (they do hire from all over the world though): https://karelz.github.io/hiring_prague_net/.
Perhaps a better JS baseline would be QuickJS [0].
Once 1.2MB was reached:
> Now we’ve reached the end of what’s possible with the .NET SDK and we need to get our hands dirty. What we’re going to do now is starting to be ridiculous and I wouldn’t expect anyone else to do this. We’re going to rely on the implementation details of the CoreRT compiler and runtime.
QuickJS is 620K.
I guess that doesn't include any kind of facility for rendering to the screen (besides basic barfing to stdout) or interacting with keyboard/mouse. i wonder how much code would be needed to add support for a basic canvas pixeldata api & keyboard event handling.
If by "basic Canvas pixelData" you mean blitting an array of pixels in a loop, that would require a grand total of 4 API calls: CreateWindow, GetDC, CreateBitmap, BitBlt. Keyboard and mouse handling would be a dozen lines of code to process the corresponding window messages in the event loop.
I bet this would all still fit in under 64Kb.