Peter H. Fröhlich

55 Followers
96 Following
131 Posts

I like old games and old computers. I dig free software and free culture. And I believe that people, not organizations, have inalienable rights. ✊️

I am a recovering academic turned (senior) software craftsperson. I prefer small teams and writing code over large teams and running processes.

I post in both 🇩🇪 and 🇺🇸. But I do NOT speak for any of my employers and they certainly do NOT speak for me.

I support@fiff_de @usenixassociation @Codeberg
I despisebillionaires, prompt fondlers, fascists, systemd

"THE FEDIVERSE IS FOR ENTERTAINMENT PURPOSES ONLY. IT DOES NOT SUPPORT YOUR DESIRED ENGAGEMENT MODALITIES AND IS UNABLE TO PROVIDE ANY REASONABLE MONETIZATION OPTIONS POSSIBLY CONTRARY TO YOUR EXPECTATIONS. DON'T RELY ON THE FEDIVERSE AS YOUR SOLE SOURCE FOR FAKE FAME, MINDLESS FOLLOWERS, OR INFLATED INCOME. POST TO THE FEDIVERSE AT YOUR OWN RISK FOR HORRIBLE LIFE-LONG NEVER-ENDING WHEATON-SHATNER-PIONEERED EMBARRASSMENT ETERNAL. OH AND ... SUCK A BAG OF DICKS."

#fediverse #TermsOfUse

I don't care one bit if "official" accounts exist in the Fediverse. I don't care if this or that newspaper, this or that city, this or that state, this or that ministry/department of some state, this or that professional organization, this or that famous person, this or that ... whatever are here. Indeed I often block those things anyway, even entire "official" instances. I like accounts of normal people best. To me, that's what the Fediverse is for. YMMV.

(Proudly self-plagiarized from a 2025 post from my previous account.)

I did not think I'd get podman to work on an old RPi 3 from 2015 but hey, it's-a-buildin' openrsync via an Alpine Linux 3.16.3 container and it's generating a static ARM64 executable that runs natively on the "Raspberry Pi OS" on the host so ... I guess I am reasonably happy?

It's REAL SLOOOOOW though. 😞

This presumably means that I can generate .deb files for ARM64 as well as AMD64 and hence host a repository for at least two architectures. Not going to try to stretch beyond, this is good enough for the #NoAI work.

And I guess openrsync will be the first "product" to test the whole process with.

Not super-happy about the containers BUT it's really the simplest way to ensure that people can replicate the builds if they really want to. Seems hard to explain how to set up EXACTLY the same build environment to get bit-by-bit identical binaries without containers. 🤷

I have no good story yet for the source code though. Seems silly to package it inside the .deb file but pointing to a commit in some git repo, possibly on a terrible site like github, that's kind of dubious too. Put up git mirrors on codeberg? Host .tar.gz checkouts of the commit that was built? Not real sure...

I am messing around with creating my own .deb files and slapping together my own roughly Debian-shaped apt repository. The plan is to fill it with #NoAI packages that were built using #NoAI compilers and libraries. I am not at all sure if I am really the person to be doing this, but surely SOMEBODY must start? Or maybe this is already in progress elsewhere and once again I don't know about it?
Let me get this straight. German politicians think it's a Good Thing (tm) if their citizens need to use identification that can be switched off by two US corporations. It will be the policy of Germany to require all German citizens to use credentials from US corporations for their day-to-day interactions with the German state, for example when getting married or when filing taxes. Just exactly HOW MUCH SHIT is in these people's brains? They don't deserve to make ANY decisions if they're this fucking dumb. WHAT THE ACTUAL FUCK! #Germany #CountriesRunByIdiots #OfficialGovernmentBrainfarting

During a discussion of how only power matters between states, not laws (whether international or not, whether long-established or not), I was reminded of Alan Watts' saying "There really is no other problem for human beings than ... [death]" [1] and how that encompasses ALL of the various struggles humanity has been through whether it's against slavery or for the eight hour day or whatever you look at. The threat is always, ultimately, "comply or we will kill you" whether from a state, a corporation, an individual, doesn't matter. And so it is between states themselves as well to a degree. Sadly.

[1] See for example https://www.youtube.com/watch?v=ioFG999aOCs&t=125s but if you have the time, just watch the whole thing. 🤷

(Proudly self-plagiarized from a January 2026 post from my previous account.)

#AlanWatts #Philosophy #AlanMayBeWrongForYou

Alan Watts - Willing To Die

YouTube

In today's episode of "How to C" we learn (or re-learn) that "unsigned" should be the exception, not the rule.

Yes you may think a millisecond timestamp (from boot) should be uint64_t but that's not right. It should be int64_t so you don't need special stunts just to subtract timestamps sanely.

Then of course there's size_t: what a mess! For functions you can use wrappers to range-check and cast appropriately, but for sizeof ... well, luckily that usually only appears in fairly idiomatic contexts. What I mean is that sizeof does not usually produce a value that only fits in uint64_t. Indeed, it will almost always fit into something much smaller. How often do you deal with objects (in the C sense) that are >2GB in size? Never seems to happen to me, that's for sure; but maybe I write wimpy C code? 🤷 So for sizeof you could use a macro to range-check and cast appropriately, maybe to ptrdiff_t? (Or just cast to int anyway; come on, you know you want to; what could go wrong? 😉)

Which gets us to when "unsigned" is actually the right way to go. Well, it is useful if you're doing arithmetic that should "wrap around" as it were, for example in hash functions. It is useful if you're doing bit manipulation in general: shifting stuff and masking things off. Or for interfacing with hardware that's actually using "unsigned" representations. I used a uint16_t the other day to grab a weird Linear11 value from a power supply over I2C.

So "unsigned" does happen. But a lot less often than you'd think.

(Proudly self-plagiarized off of some 2024 posts from my previous account.)

Can you say "Spaziergang" baby? 🤣
I still worry that none of the poor Artemis people are going to make it back to earth alive. 😞 The whole thing feels like a rather vibe-coded moon mission to be honest, but then again, what do I know? 🤷 Maybe it'll all be just fine.

You're begging some "random text extrusion god" you think you believe in to please PLEASE do what you want it to do? You're begging it REPEATEDLY so MAYBE it will have mercy and actually follow your instructions? Are you really THAT stupid? So 10 prayers are not enough but 144 might be and in any case the more prayers the better? Because WHO KNOWS what "god" REALLY wants before fulfilling your wishes?

Scientists and engineers had left all that stupidity behind and now you're bringing it back and you're calling it progress. IF YOU WERE WRITING THE CODE YOURSELF YOU COULD JUST WRITE IT THIS WAY OR THAT AND BE SURE! This is progress in the same way that US politics rushing back into the dark ages is. What's worse? An idiot prompt fondler or a right-wing nutbag politician? At least the politician is only TELLING OTHERS to pray, knowing full-well that it's useless. But you actually pray. To a slot machine.

Amen.