Hacker News

LorenDB
Building Principia for Windows XP voxelmanip.se

Borg314 minutes ago

I actually wanted to try it (maybe I will do), but on github page I read its experimental and lots of dialogs arent implemented. So a bit shame it cannot be fully ported. Maybe I will take a bite and try to build it using my dated mingw gcc 4.9 ;)

accrual4 hours ago

This is super cool! I admire those who make the effort to keep their software running on old unsupported OSs. There's a thriving community of new and existing XP users and I don't see it going away despite it being out of support for over a decade. It's one of the last great Windows versions and its long life ensured a huge software catalog is available for exploring, now including Principia.

actsasbuffoon24 minutes ago

I did a project on Windows 3.1 a few months back for fun. Borland C++ is still out there on abandonware websites.

ndiddy3 hours ago

What do people use XP for these days? I found it frustrating to use when it was new because of how often the system would lock up even on decent hardware (although being able to draw pictures with the frozen windows was sometimes fun). When 7 came out, I found that it usually ran better and froze less than XP even on XP era computers, although you'd have to upgrade your RAM.

accrualan hour ago

I've seen some recent examples of XP in the wild, they pop-up occasionally in old ATMs, bus route displays, small stores running a PoS, etc. Not a recommended configuration of course but still happens nevertheless.

For me I enjoy it as a fun/hobby OS. I can install all my favorite tools and games and boot it up whenever. It's also fun to see what modern work can still be done on old OSs. Recent versions of PuTTY work so I can in theory sit on my XP box and drive LLM agents with Winamp playing in the background, chat on MSN with Escargot, etc.

vik03 hours ago

I assume most people who use XP (which by default means non-hobbyists) are using it to run some software that was made to run only on it and the people who made said software never bothered to update the software for another OS. Something like a software application to manage prices in some family-run grocery store or warehouse in a former socialist country or what have you. The people using XP don't know they're even using an old OS, and they're oftentimes not very technical people (to say the least). They're using it because it's their job and they don't care particularly about it. It's usually not connected to the internet

Recently I went to the dentist, and while they weren't using XP, they were using Windows 7 to run some in-house software (I assume) to check my insurance

Yes, im from a former socialist country

BoxOfRain3 hours ago

I've not used Windows in a very long time so forgive my ignorance, but I always heard that it was a bad idea to connect an XP machine to the internet because of the amount of malware sloshing about. In practice is that much of a problem for modern-day XP enthusiasts?

ROllerozxa3 hours ago

The kind of passive infection that is shown in popular videos like this one (https://www.youtube.com/watch?v=6uSVVCmOH5w) tend to only happen if you hook up an XP machine to be directly accessible to the Internet. Like, if you connect your XP machine to your router sitting in the middle of your Internet connection and don't forward every port, you should be fine in that regard at least.

There is also Supermium which is a relatively recent version of Chromium backported to run on Windows XP with all the security patches that brings, but with that being said I still would not do anything security critical on it.

ndiddy3 hours ago

Yeah it was more of a problem back in the day when dial-up and DSL were more common, and home users would often have their computers directly connected to the internet if they didn't have multiple computers and a router. This was especially problematic before XP SP2 came out with the firewall enabled by default.

haunter4 hours ago

Legacy Update basically solves every post install update/driver issues

https://legacyupdate.net/

ROllerozxa4 hours ago

Legacy Update is really a godsend, props to the people maintaining it. The only driver I actually had to install manually via USB was just the Ethernet controller, and then after that was done I could just go online to Legacy Update and let it sit and download and install the rest.

[deleted]3 hours agocollapsed

Aerocatia2 hours ago

FYI if you have the MSVC redistributable 14.27.29114 you can use UCRT executables built with modern Mingw-W64 on Windows XP, and curl 8.18.0 will work too (microsoft removed the link but I found it on the PC gaming wiki). I never had to deal with GetDynamicTimeZoneInformation() for my stuff, but maybe it only is a problem if you use the related code and don't static link libstdc++?

ROllerozxa2 hours ago

Yes! I have heard there is a redistributable for getting UCRT installed onto Windows XP, but it seems like quite an obscure update. The idea was to basically make a version that would work on a relatively up to date SP3 version at the very least without system changes, so going with msvcrt instead sounded like the best idea. Otherwise I've heard there are other community-made patches that basically turn XP into more like Windows 7 compatibility wise (One Core API?), albeit with some caveats - I haven't tested whether the modern Principia Windows builds would work under such a setup.

As for GetDynamicTimeZoneInformation, yes it probably would disappear when doing static linking as Principia does not use it. However initially I was building the game with all the dependencies and libstdc++ as DLLs, but ended up linking it all statically after I had to statically link libcurl with mbedtls anyways.

Aerocatiaan hour ago

Yeah, wanting to support a vanilla installation is a valid reason to stick to MSVCRT. Just watch out for those silent footguns like the %zu format specifier not existing, haha. I have not tried One Core API myself either as I personally draw the line where it is reasonable to expect people to use officially released runtimes.

throwaway20464 hours ago

Excellent write-up. Does anyone have the source of the background image shown in the last screenshot?

ROllerozxa3 hours ago

It's the background image for the Overgrowth theme in Acmlmboard 2.5, an old niche forum software. Here is a preview of the theme on one of the remaining boards running it: https://board.kafuka.org/?theme=overgrowth

You can also find it as the background image in the retro zone of my website, which is made to look like said theme from Acmlmboard: https://voxelmanip.se/retro/ I thought it would be very fitting to use as the wallpaper when I wanted to take the screenshot. :)

catalogt1000an hour ago

Implementing Wayland vsock DOS rendering AF_UNIX.

zamadatix5 hours ago

How on earth have I missed the existence of this physics game for the last 12 years!? It even has the option to play levels directly in the browser!

tribal8084 hours ago

this is so cool

people like you are keeping the internet alive

anthk3 hours ago

There's w64devkit too. Ah, well, mentioned.

NooneAtAll33 hours ago

but what IS principia?

sudobash12 hours ago

It is linked at the top of the article. It is a physics-based sandbox building game. Back in the day it was commercial, but it was abandoned a while back and somewhat more recently released as open-source.

LorenDBopan hour ago

It's also the name of an n-body physics mod for Kerbal Space Program.

https://github.com/mockingbirdnest/Principia

hn-front (c) 2024 voximity
source