Мы в Telegram
Добавить новость
103news.com
Game24.pro
Октябрь
2022

Windows 95 had dedicated code to nix an OG Sim City bug

0

An oldie but a goodie.

The nature of the internet is that an amazing piece of information can be out there for decades, before the right person shares it and everyone's slightly gobsmacked we missed it for so long. This is hardly the most consequential of tales, but it was first shared by software engineer Joel Spolsky way back in the year 2000 in a post about the chicken and egg problem for platform and software developers.

A few days ago Kal Yoshika, a podcaster and game developer, read the blogpost and shared this story about Sim City (and the tweet was subsequently picked up by outlets including RPS) that's just been out there in the wilds for the past twenty years.

Spolsky is writing about how important backwards compatibility was for Microsoft, and how the success of Windows 3, in Spolsky's interpretation at least, could in part be put down to how well it ran older software. Thus we move onto Windows 95…

"Windows 95? No problem," writes Spolsky. "Nice new 32 bit API, but 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.

"Jon Ross, who wrote the original version of SimCity for Windows 3.x, told me that he accidentally left a bug in SimCity where he read memory that he had just freed. Yep. It worked fine on Windows 3.x, because the memory never went anywhere."

On a different operating system, however, this bug could stop the game working altogether: and SimCity was a very popular game indeed.

"Here’s the amazing part," writes Spolsky. "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."

These days every game receives post-launch support but, back then, whatever bugs a game shipped with would be a part of it forever. The industry as it was didn't have post-launch support as a high priority, and it was out of the question that the SimCity developers would fix this bug: so Microsoft built a whole little system that temporarily runs your PC in a new manner to countervent it. It's one of those heroic programmer moments where no-one would ever have known about this if not for Spolsky's post, because it did the job.

Yoshika's initial sharing of this led to some others chiming in with their favourites. The superbly named code_and_beer points out that the PC version of Final Fantasy VII "will outright die if it sees it's running on Win NT instead of Win95, so Windows lies based on the presence of some files." That is, NT tells FF7 it's running on Windows 95, even though it's not, just so Square Enix's magnum opus runs. Brilliant.

SimCity programmer Jon Ross would go on to work on the series for many years, and is responsible for one of the silliest game easter eggs ever. It will (probably) make you laugh though.

See more

Joel Spolsky is now retired after a long and extraordinary career in software, during which he worked on world-famous products and founded multiple companies. His personal website is infrequently updated but absolutely rammed with his thoughts on technology and the wider issues the industry faces.





Губернаторы России
Москва

Сергей Собянин. Главное за день





Москва

Что лечит невролог и с какими симптомами к нему обращаться?


Губернаторы России

103news.net – это самые свежие новости из регионов и со всего мира в прямом эфире 24 часа в сутки 7 дней в неделю на всех языках мира без цензуры и предвзятости редактора. Не новости делают нас, а мы – делаем новости. Наши новости опубликованы живыми людьми в формате онлайн. Вы всегда можете добавить свои новости сиюминутно – здесь и прочитать их тут же и – сейчас в России, в Украине и в мире по темам в режиме 24/7 ежесекундно. А теперь ещё - регионы, Крым, Москва и Россия.

Moscow.media
Москва

Сергей Собянин. Главное за день



103news.comмеждународная интерактивная информационная сеть (ежеминутные новости с ежедневным интелектуальным архивом). Только у нас — все главные новости дня без политической цензуры. "103 Новости" — абсолютно все точки зрения, трезвая аналитика, цивилизованные споры и обсуждения без взаимных обвинений и оскорблений. Помните, что не у всех точка зрения совпадает с Вашей. Уважайте мнение других, даже если Вы отстаиваете свой взгляд и свою позицию. 103news.com — облегчённая версия старейшего обозревателя новостей 123ru.net.

Мы не навязываем Вам своё видение, мы даём Вам объективный срез событий дня без цензуры и без купюр. Новости, какие они есть — онлайн (с поминутным архивом по всем городам и регионам России, Украины, Белоруссии и Абхазии).

103news.com — живые новости в прямом эфире!

В любую минуту Вы можете добавить свою новость мгновенно — здесь.

Музыкальные новости

Ольга Бузова

Дава разоткровенничался перед Ольгой Бузовой в шоу “Сокровища императора” на ТНТ




Спорт в России и мире

Алексей Смирнов – актер, которого, надеюсь, еще не забыли

Пресс-служба «Лужников» опровергла информацию о концерте Канье Уэста в Москве

В преддверии Дня Победы в Великой Отечественной войне: уроки мужества и познавательно-спортивная эстафета

Эксперт Президентской академии в Санкт-Петербурге про финал Всероссийской олимпиады школьников


ATP

Российский теннисист поднялся на две позиции в топ-10 рейтинга ATP



Новости Крыма на Sevpoisk.ru


News Every Day

Seven reasons Sporting are champions of Portugal



Частные объявления в Вашем городе, в Вашем регионе и в России