I haven't touched the hash generator (https://github.com/julian-klode/triehash) in 7 years and it is a Perl script because Guillem wanted it to be one so I'm not sure I can still fix it without rewriting it!
This works nicely with no strict pinning whereas shoehorning it into the candidate selection works a lot less well.
And the problem is that it is inherently dynamic: While we could ensure a static ordering of the versions of a package is consistent across source packages, we don't gain much.
Example: Let's say you have A=5|A=3|A=1 and B=5|B=3|B=1. A=3 is the only installable one, we would still try to install B=5. However we should limit ourselves to B=3 as well.
So what do we do? When we mark A=3 for install, we iterate over all binaries in the source package and reject other versions.
The annoying bit is only rejecting binaries still available in the latest source version; because a source version does not yet exist, so we can only iterate over all the binaries.
Well you know std::remove_if, my predicate lambda isn't actually just a predicate, it also std::move()s the element content of an element that will be removed to a different container first.
This sounds totally ridiculous but yes predicates can modify the elements they are being called on, and this is a lot cleaner than writing an explicit for loop with iterators and deleting them.
I wonder how hard it is to make a fake USB printer.
Like, a printer that takes any printout and goes "yep, that printed just fine" but nothing ever comes out anywhere
A family member has died recently and as a part of shuffling stuff around, I've recovered a thinkpad I used to use.
At the moment it's just wiped with a fresh copy of Windows, but I think I will put Debian on it later. I have not used raw Debian on bare metal in a while, I wonder if I should go with testing or stick to stable.
@zygoon tbh just do testing. Sadly the autopkgtests gate migration to testing and not to unstable, so even trivial failures directly end up in your machine if you run unstable.
Cherry pick if needed, but most stuff will migrate in 2 days if tests pass.
Ich schreibe an der Uni Regensburg aktuell meine Masterarbeit zur Akzeptanz von GenAI in der Softwareentwicklung. Jeder Teilnehmerin bekommt einen Stein in meinem Brett. Gesucht sind Entwickler*innen. https://s2survey.net/genai_acceptance/ Pls. weitersagen! (Dauert keine 10 Minuten, schwöre!)