Skip to content

Friday, 4 December 2026

Qt and Trivial Relocation (Part 6)

An experiment with C++26 reflection

It's been a while since the last instalment of this series! Back then, I wrote that having trivial relocation in C++26 was "doable". Well... it didn't quite go that way: P2786 was merged into the C++26 draft in February 2025, and then removedin November of the same year. C++26 is going to ship without trivial relocation.

I've just given a talk at Meeting C++ about the whole story. I'd suggest you catch up with the recording as soon as it gets online; and if you have any questions about the content, please ask me!

The C++29 cycle has now started, and for trivial relocation there are still design decisions to make. I've published a paper about them, P4197 ("Design questions for trivial relocation in C++29"). Once we agree on the design, I'd like to get to the feature layer by layer: starting from the building blocks in the library, like algorithms and containers, and then working our way up into the core language. I'm not going to talk about C++29 in this post, though.

This post is a bit different from the previous ones: I'd like to show you a small experiment. C++26 may not have trivial relocation, but it does have reflection. Can we use it to make Qt's own trivial relocation easier and safer to use?

What was the problem again?

In the first post I claimed that there is no way to know "from the outside" if a generic type can be moved in memory via memcpy. Qt plays it safe: unless a type is trivially copyable, Qt assumes that it is not trivially relocatable. If it is, you have to say so, using a macro.

Consider this very simple type:

struct Person
{
    QString firstName;
    QString lastName;
};

QString is trivially relocatable, therefore Person is trivially relocatable as well. But Qt doesn't know that! We have to remember to add this:

Q_DECLARE_TYPEINFO(Person, Q_RELOCATABLE_TYPE);

There are two things that can go wrong here:

  1. We forget the macro. Nothing breaks, but we lose the optimization.
  2. We use the macro on a type that is not trivially relocatable. This is much worse: the code compiles just fine, and then it may misbehave at runtime.

With reflection, we can do something about both.

Detecting trivially relocatable types

Person follows the Rule Of Zero: it doesn't define any copy or move operation, nor a destructor. The compiler generates them for us, and they simply work member by member. So, if relocating each member is just a byte copy, relocating the whole object is a byte copy, too.

This gives us a recipe. A class is automatically trivially relocatable if:

  • all of its non-static data members and base classes are trivially relocatable, and none of the bases are virtual; and
  • it has no user-provided copy operations, move operations, or destructor.

This isn't a new idea. Barry Revzin explored it in a blog post back in 2024, where he implemented (most of) P2786's type trait using reflection. I am just doing something similar, but on top of Qt's facilities.

Note: the code that follows is a very simplified version of the real one, which also has to deal with references, arrays, and so on.

Let's start with the first half. I'm going to call a type eligible if all of its subobjects are trivially relocatable:

template <typename T>
constexpr bool isRelocatable = QTypeInfo<T>::isRelocatable;

consteval bool isRelocatableType(std::meta::info type)
{
    return extract<bool>(substitute(^^isRelocatable, { type }));
}

template <typename T>
consteval bool isEligible()
{
    constexpr auto ctx = std::meta::access_context::unchecked();

    for (std::meta::info member : nonstatic_data_members_of(^^T, ctx)) {
        if (!isRelocatableType(type_of(member)))
            return false;
    }

    for (std::meta::info base : bases_of(^^T, ctx)) {
        if (is_virtual(base) || !isRelocatableType(type_of(base)))
            return false;
    }

    return true;
}

QTypeInfo is the class template that Q_DECLARE_TYPEINFO specializes. isRelocatableType takes the reflection of a type, plugs it into isRelocatable, and extracts the result. Note the unchecked() access context: we want to look at private members, too.

The second half looks at the special member functions:

template <typename T>
consteval bool isAutomaticallyRelocatable()
{
    if (std::is_trivially_copyable_v<T>)
        return true;

    if (!isEligible<T>())
        return false;

    constexpr auto ctx = std::meta::access_context::unchecked();

    return std::ranges::none_of(members_of(^^T, ctx), [](std::meta::info member) {
        return (is_copy_constructor(member) || is_move_constructor(member)
                || is_copy_assignment(member) || is_move_assignment(member)
                || is_destructor(member))
            && is_user_provided(member);
    });
}

Now we can make QTypeInfo use this check by default, and that's it: Person is trivially relocatable, no macro needed!This also works recursively, so a class with a Person data member gets detected as well.

Why user-provided?

The code looks for special member functions that are user-provided, not merely user-declared. A destructor which is = default-ed inside the class is fine.

This is deliberate: it's the same criterion used by trivial copyability, and a trivially copyable type must always be trivially relocatable. It would be absurd if we could memcpy an object in order to copy it, but not in order to relocate it!

For the same reason, I'm not trying to figure out which constructor overload resolution would pick when building an object from an rvalue (maybe a constructor template?). That's what P2786 asked for, and Barry discusses in his post why it can't be precisely implemented using reflection. Trivial copyability doesn't look at that, and neither do I.

Finally, a type with deleted copy and move operations can still be detected as trivially relocatable. I see relocation as an operation of its own, independent from copies and moves.

Checking the types marked by hand

What about a type that follows the Rule Of Five? There we still need the macro: reflection can tell us that there is a user-provided move constructor, but not what it does.

However, we can at least check that the type is eligible! If a class has a data member which isn't trivially relocatable, then marking the class is very likely a mistake. For instance:

class Contact
{
public:
    Contact();
    Contact(const Contact &other);
    Contact(Contact &&other) noexcept;
    Contact &operator=(const Contact &other);
    Contact &operator=(Contact &&other) noexcept;
    ~Contact();

private:
    QString m_name;
    std::string m_email;  // oops
};

Q_DECLARE_TYPEINFO(Contact, Q_RELOCATABLE_TYPE);

As we know, std::string is usually not trivially relocatable, because of the Short String Optimization. Today this code compiles without a warning. With a static_assert inside Q_DECLARE_TYPEINFO, we get this instead:

error: static assertion failed: The type Contact is not structurally trivially relocatable

("Structurally trivially relocatable" is what the real code calls an eligible type.)

Did it find anything in Qt?

Of course it did! :-)

  • A type that was really marked by mistake. One of Qt's own tests had a class with a std::string data member, marked as trivially relocatable. Luckily it was only a test, and it didn't misbehave.
  • Types that nobody had marked. This was by far the most common case: a class was correctly marked, but the type of one of its data members (or a base class) wasn't. For example, QArrayDataPointer, the building block of QString and QVector, had no marking; neither did QPaintDevice, the base class of QImage. Here the fix was to add the missing macro.
  • An empty destructor. A class used by qmake had a destructor defined as {}, which makes it user-provided. Changing it to = default was enough.

So, apart from that one test, all the classes that we had marked were indeed trivially relocatable: we didn't accidentally mark one that wasn't. But the moment we enforce that all the subobjects must be trivially relocatable as well, the check gets angry, and we need to add the missing markings to their types. Several of these fixes are already in Qt, as they make sense on their own.

The problem: everybody else's types

So, why don't we just turn this on? The difficulties start when a class contains types that don't come from Qt.

Is std::unique_ptr trivially relocatable? In practice, yes, on every Standard Library implementation that Qt supports (as long as its pointer and deleter types are, too). But this isn't "official" in any way, and the detection can't figure it out, because std::unique_ptr has user-provided special member functions. I had to special-case it, together with std::optional.

Those are just the ones used inside Qt. What about std::tuple, std::variant, std::shared_ptr? Containers are even scarier: in debug mode, a Standard Library implementation may store extra data in them, such as pointers back from their iterators. And for some types, like std::atomic, it's questionable whether we want them to be trivially relocatable, given that they can't be copied or moved to begin with.

The same applies to any third-party type you may be using. When the detection says "no", it may be because the type really isn't trivially relocatable, or because nobody has marked it yet. We can't tell the difference! And with the check in place, a correctly marked class could stop compiling just because of one such data member.

Should we then allow the author of a class to force the marking, no matter what its data members say? In the standardization discussions these are called "sharp knife" semantics (the author is always trusted, even when they're wrong), as opposed to "dull knife" semantics (the subobjects have to cooperate). Qt's macro has always been a sharp knife; my experiment turns it into a dull one. Each choice has its own advantages and disadvantages: a sharp knife lets us work around legacy types that nobody has marked, but it also lets us hurt ourselves, like in the std::string example above. I've written more about this in P4197 (it's Question 6), also as a result of this experiment.

Not knowing what a "no" means is also one of the problems that I have with the proposals for Standard C++: they leave unspecified whether a given Standard Library type is trivially relocatable. That's very annoying for adoption.

What if the answer changes?

Suppose that somebody does add the missing marking, and a type goes from "not trivially relocatable" to "trivially relocatable". That's great, right?

Not necessarily: this can be a binary compatibility problem. In the first post we have seen that QVariant stores small objects inside itself only if they're trivially relocatable. Now suppose that a library creates a QVariant containing an object of a type that it considers trivially relocatable, and then passes it to another library, which was built when that type wasn't marked yet. Where is the object stored?

QVariant has been engineered around this problem: it remembers whether it's using its internal storage, so the second library will find the object in the right place. But it's very easy to get this wrong! Imagine a similar type-erased wrapper, with its own small object optimization, which instead checks whether the type is trivially relocatable every time it needs to access the object. If two libraries disagree about the type, one of them will look for the object in the wrong place.

Automatic detection makes this kind of disagreement more likely. Person would be trivially relocatable when compiling in C++26 mode with reflection enabled, and not trivially relocatable in C++20 mode; all it takes is mixing the two in the same application.

Conclusions

In this post we have seen that, using reflection:

  • we can automatically detect that simple types, like Person, are trivially relocatable
  • we can check that the types marked by hand are at least eligible
  • we still need to mark types with user-provided special member functions
  • we still don't have a good answer for types that we don't control.

This is just an experiment, and I don't plan to merge it into Qt anytime soon. Still, it's remarkable how little code it takes, and it has already proved useful to find mistakes. If you want to have a look at the real code, the patch is on Gerrit(at the time of this writing, you may need to log in to see it).

In the meanwhile, please keep marking your types. :-)

Thank you for reading!

Overview about all installments:

The post Qt and Trivial Relocation (Part 6) appeared first on KDAB.

Let’s go for my web review for the week 2026-49.


Why I can’t sell you a €1 email inbox

Tags: tech, email, europe, law

OK… This is awkward. There’s something really wrong about the application of NIS2 for email providers.

https://www.jannis.io/why-i-cant-sell-you-a-eur1-email-inbox/


Tech Hype is Cannibalizing the Future

Tags: tech, hype, politics, economics

There’s indeed a problem with the constant hype the Silicon Valley is running on. It brings dire consequences and tries to kill agency.

https://www.techpolicy.press/tech-hype-is-cannibalizing-the-future/


Don’t Trust People Who Talk Like This

Tags: tech, art, culture, movie, music

Indeed, those people don’t know anything about art or culture. They are just not equipped to understand it.

https://www.honest-broker.com/p/dont-trust-people-who-talk-like-this


Exit Music for a Film

Tags: tech, ai, machine-learning, gpt, copilot, foss, community, burnout, ethics

This piece from GNOME contributor extraordinaire Emmanuele Bassi punched me hard in the guts. It honestly makes me sad and angry. I hope our communities will find a better path forward. Forcing GenAI tools output on everyone else like this is clearly taking a toll and breaking communities apart.

https://www.bassi.io/articles/2026/11/27/exit-music-for-a-film/


Prelude 9B: the first open model from OpenEuroLLM

Tags: tech, ai, machine-learning, gpt, foss

Looks like we can expect a new breed of fully open LLMs from this consortium. Starting small with this first release but looks like there’ll be more ambitious releases in the coming months.

https://openeurollm.eu/blog/prelude-announcement


Data center climate emissions are worse than previously thought

Tags: tech, ecology

Maybe it’s time to regulate and require more transparency? Because this is really out of control at this point.

https://www.wbur.org/news/2026/11/23/harvard-study-data-centers-climate-emissions-energy


Nvidia’s Jensen Huang is getting his CEO job back, but history shows companies perform better when corporate boards take executive misbehavior seriously

Tags: tech, management, ethics

In case some people are still wondering what the better move should have been. It was in fact easy and was just better to not have him back.

https://theconversation.com/nvidias-jensen-huang-is-getting-his-ceo-job-back-but-history-shows-companies-perform-better-when-corporate-boards-take-executive-misbehavior-seriously-281689


Anatomy Of An AI Kill Chain

Tags: tech, ai, machine-learning, war

How do you like our current flavor of dystopia?

https://ai-killchain.airwars.org/


The shelf life of LLM findings

Tags: tech, ai, machine-learning, gpt, research

Interesting work. Probably means there should be some continuous monitoring of such findings. Clearly the behavior change over time often without noticing.

https://zou-group.github.io/llm-claims-shelf-life/


The Industrialization of Noise: Why Automated Proof-Solving is the Same Old Dead End

Tags: tech, ai, machine-learning, gpt, mathematics, commons, knowledge, research

Very interesting paper. Indeed, dumping Lean proofs does nothing to advance human knowledge, it still needs to go through the social filter of the field to be useful. One sentence in the conclusion is spot on I think: “Corporate AI labs can automate the generation of syntax, but they cannot automate the social assignment of meaning”.

https://arxiv.org/abs/2611.31286


Will AI Break Cryptography This Week?

Tags: tech, ai, machine-learning, gpt, cryptography, security

Nope. Sure the result is interesting from a theoretical standpoint and will likely influence the design of future cryptography algorithms. Still someone has been crying wolf… again. I wish people would stop helping the PR stunts of the LLM industrial complex. There was no need to panic. So much noise than nothing that when there’ll really be something we won’t pay attention or act the wrong way.

https://www.schneier.com/blog/archives/2026/11/will-ai-break-cryptography-this-week.html


The NSA’s New Advisory on Encryption Algorithms

Tags: tech, security, cryptography

Maybe it’s time to stop panicking each time someone publish some public piece about cryptography?

https://www.cs.columbia.edu/~smb/blog/2026-12/2026-12-03.html


Catching AI’s mistakes is a mental burden – and a drag on productivity

Tags: tech, ai, machine-learning, gpt, productivity, cognition

It’s only by looking at full workflows that you can see if automation is bringing productivity improvements. Trading creation for verification is not necessarily the boost you expect.

https://theconversation.com/catching-ais-mistakes-is-a-mental-burden-and-a-drag-on-productivity-291748


Number of Diseases Cured by AI

Tags: tech, ai, machine-learning, gpt, health, medecine

Alright, let’s see how this goes. A decade to move the needle apparently.

https://diseasescuredbyai.com/


Pigeon2Shell — Critical Avian-to-Root Vulnerability

Tags: tech, security, satire

I think this conveys the current atmosphere around exploits quite well. Made me laugh at least.

https://pigeon2shell.com/


Your family should have a shared two-factor authentication code

Tags: tech, security

In this day and age this might become necessary indeed…

https://shkspr.mobi/blog/2026/11/your-family-should-have-a-shared-two-factor-authentication-code/


unkernel: A real Linux kernel, compiled to WebAssembly

Tags: tech, kernel, linux, webassembly

Interesting approach allowing to reuse existing binaries as is. This gives nice sandboxing out of the box too. But expect things to be slow after boot of course.

https://github.com/pithings/unkernel


Aeneas, a Verification Framework for Rust

Tags: tech, rust, safety, formal-verification

Looks like another interesting option for formal verification of Rust code.

https://aeneasverif.github.io/


4 filesystem performance traps in the standard library

Tags: tech, c++, api, filesystem, performance

Indeed, the std::filesystem API can be misleading. There are constructs to avoid for performance reasons.

https://mropert.github.io/2026/11/24/filesystem_traps/


Scottish HTTP Codes

Tags: tech, http, funny

Blame me for finding this funny I guess. Lots of Scottish idioms to pick from.

https://underwood.network/http/scots.html


Teamtype

Tags: tech, pairing, remote-working, tools, networking

Still young but looks like a neat and simple solution for remote pair programming.

https://teamtype.github.io/teamtype/introduction.html


shwim: Peer-to-peer terminal sharing

Tags: tech, shell, tools, networking, pairing, remote-working

So we got magic wormhole, then git-withme, and now “shell with me”. That’s a cool series of convenient tools.

https://github.com/magic-wormhole/shwim


Creating Beveled Corners with “corner-shape”

Tags: tech, web, browser, css

This looks like a neat new CSS property coming to our browsers soon.

https://www.joshwcomeau.com/css/bevel-corners/


The importance of understanding what the fuck is going on

Tags: tech, engineering, craftsmanship, ai, machine-learning, copilot, learning

This will to understand the reasons why something behaves the way it behaves is necessary for learning. This is indeed something we have to keep to train the next crop of engineers.

https://blog.jsbarretto.com/post/understanding


Climate Dashboard

Tags: ecology, climate

Everything is fine I guess…

https://dashboard.theclimatebrink.com/


The Mega-Storm Inside Neptune Is Actually Insane

Tags: physics, science

We actually know so little about Neptune. Fascinating and making me wonder what could be in there for real.

https://www.youtube.com/watch?v=or7HNFrK3Lg



Bye for now!

Chessament 1.0.1 has been released. Chessament is a chess tournament manager. It supports individual Swiss-system tournaments.

This release fixes some issues importing certain rating lists and opening the handbook inside a Flatpak.

Packagers

The package is available on download.kde.org and it’s signed with my PGP key.

Kirigami Addons 1.16.2 is out! Kirigami Addons is a growing collection of nice components you can use in your Kirigami and QML applications.

Like the previous release, this release mainly includes small bugfixes and some visual polish.

Packager section

You can find the package on download.kde.org (kirigami addons) as soon as it is available and it has been signed with my GPG key.

Thursday, 3 December 2026

Over 180 individual applications plus dozens of programmer libraries and feature plugins are released simultaneously as part of KDE Gear.

Today they all get new bugfix source releases with updated translations, including:

  • dolphin: do not implicitly open directories as files. Commit. See bug #516830
  • kdenlive: various security fixes.
  • kitinerary: Fix date format in Thai railway ticket extractor. Commit.
  • ksudoku: set surface format to support legacy OpenGL. Commit. Fixes bug #521401.
  • kubrick: set surface format to support legacy OpenGL. Commit. See bug #521401.
  • okular: various security fixes.

Distro and app store packagers should update their application packages.

Wednesday, 2 December 2026

How I closed one third of all Plasma bugs

Here's the graph of open Plasma bug reports in the last year:

How I closed one third of all Plasma bugs

Bugs dropped by roughly 31% in the last month and a half, and we're now at the very lowest point ever since Jan 2018, more than 8 years ago! It's quite satisfying to see the bug count being so low. So, what happened?

Mostly, I came back from my KDE development break and decided to experiment a bit with newer triaging methods; I wasn't the only one closing bugs, but I did manage to be in first place for quite a big (KDE-wide, not just Plasma!). I ended up closing 479 bug reports at the time of writing.

How I closed one third of all Plasma bugs

And, mind you, I did this entirely in my free time, whilst also working full time in a completely different kind of job. Whilst making videos every couple of days on my YouTube channel. (I did not have much free time at all).

Of course, I used Claude to help me out, and I did not keep that a secret at all. In fact, I had two goals with this:

  • Close a lot of Plasma bug reports (through fixes and triaging)
  • Show that you can use AI tools to improve a project instead of DDoSing it with slop merge requests; and, with this writeup, I hope to act as a positive reference for others to copy!

Having done the first part, let me attempt the second one too! How can one use Claude to help out, instead of submerging other maintainers underneath large piles of, err, slop?

Duplicate bugs

Let's start with the easy step: I ran a duplicate search. This is the ideal task for LLMs, which are able to scan and classify large amount of media very quickly and cheaply.

The search returned hundreds of candidates. I went ahead and checked every one of them. It's quite helpful here to make Claude build custom UIs for these things: I went with something very simple, telling me briefly why Claude thought it was a duplicate, with a bit of context from each bug report.

How I closed one third of all Plasma bugs

Of course, it still took a fair amount of time to go through all of the reports; I'd spend a bit of time each day, with a goal of closing 15 to 20 every time. I ended up finding 194 duplicates, almost 40% of all bugs I ended up closing, and it was by far the (computationally) cheaper step!

Overall I was left impressed by the idea that most (KDE?) projects would highly benefit from an automatic duplicate checker for all new bug reports. It would cost less than a couple bucks a day, something that KDE can easily afford, and it would avoid the number of duplicates to grow over time as triagers simply don't notice them. Of course a human still has to make the final call, but when I explicitly ask to only present me options that Claude is highly confident in, I found them to be >97% correct.

Only 3 bug reports were reopened after I had closed them here.

Already-fixed bugs

Another big cause of stale bug reports are bugs that were fixed and nobody noticed. These are of course harder to verify, since the bug report itself doesn't contain enough information to know if the bug is still valid: actually testing them on master is also necessary.

Luckily, Claude nowadays has great computer use. I asked it to set up 6 builds of KDE Plasma, and I made it run headless every single bug report that had enough information to be reproducible.

Out of those that Claude didn't manage to reproduce, it would then go look into the commit history of the project to search for possible commits where the bug might've been fixed. It would then revert back the project to that commit (when possible), build again, and try to reproduce the bug. Sometimes this is impossible, and it would just give me the likely commit with lower confidence.

This resulted in another list with hundreds of candidates that were already fixed, with varying levels of confidence. Again I went through that list day by day; what I thought was reasonable from Claude I simply closed (people can just reopen if I'm wrong), whereas when I was less confident I just asked the reported to try again on a newer version.

Most of the times I was quickly greeted by an email of the reporter confirming that the bug was indeed fixed. I found 149 bugs that were already fixed this way.

The error rate was slightly higher: 7 were reopened (out of 156), so 4.5%. Of course, I take the blame for not noticing that Claude had triaged the bug incorrectly; nonetheless, I think making 7 people reopen the bug report is well worth getting rid of the 149 that were not still applicable today.

Larger sweep

After working on the above, I just asked Claude to give me a high-level picture of all remaining bugs. How many did you reproduce? How many you didn't, but couldn't find a cause? How many should we ask more information in...?

Again, I made it build a custom UI to deliver all of the information to me. As usual Claude as awful design taste (it would give subheaders to subheaders if it could) but nonetheless I could navigate the information and find some worksforme bugs, some intentional bugs, and in general some things that I might've missed.

How I closed one third of all Plasma bugs

Fixing bugs

Of course, all of the above so far is housekeeping that doesn't result in improvements in Plasma directly (though, hey, more organized bug reports do help maintainers). I also wanted to directly go ahead and fix a share of the open bug reports.

To do so, I used the same approach for the reproducible bugs: out of all bugs that Claude could reproduce, I asked it to categorize the ~150 that it thought were the easiest to fix. Then I asked to fix them, verifying them in the headless Plasma builds.

I also asked to produce screenshots or video recordings of (a) the bug, and (b) the bug no longer happening after the fix, which would help a lot to understand exactly what was going on. I explicitly asked to keep the fixed somewhat simple and self-contained too.

This worked well-ish. I did get a list, and many of the bugs were indeed correct out of the box, well documented with photos or videos, and generally well explained. It helps to ask Claude to be short in its explanations, and generally speaking I asked to always provide me with commit messages that were three lines long and two sentences: though I'd edit them, those end up being the best way to effectively convey the necessary information for the fix.

A quick fun fact: I once spun up a Claude session whose only job was to rewrite a commit in three lines (hadn't introduced the two sentences rule yet). It gave three short and shitty sentences. It did such a bad job that I angrily replied with "I asked for a commit, not a haiku". A later session, reading the transcript, complained that the entire session's job was to write three lines of text, and that it really tried to do its job by getting into poetry. I was not particularly amused by this line of defense.

Anyhow: I asked to add a new section to my dashboard with all of these bugfixes, summarizing the important information from the Gitlab's UI, which can be very confusing. This helped me a lot to keep track of the bugs I was opening.

How I closed one third of all Plasma bugs

The fix page also has everything I'd need: reviewers comments, the diff, MR text, commit, images, plus a Claude sidebar that can edit all of the above, or the dashboard itself. It helps to be able to quickly say, "uh Claude did you try X?", "wait, does that regress Y?", "remove the code comments", "is the reviewer right about the regression?", etc.

How I closed one third of all Plasma bugs

I have lots of thoughts about this trend of making custom dashboards or small apps via Claude (TechHut recently talked about his in his Omarchy review), but you'll have to wait for an upcoming article!

All in all, I managed to get in 86 bugfixes in a month and a half. The bottleneck is reviewing, of course, and I was particularly mindful to pretty much only create new MRs when the old ones got merged, to "proceed at the pace" of reviewers even whilst having a backlog of good (I think?) bugfixes already made.

Indeed, I ended up implementing a "pre-approve" button for fixes; those would get opened automatically as soon as any of my MRs got merged. I also have lots of thoughts about reviews, but I again have another blogpost planned for that.

How I closed one third of all Plasma bugs

Newly reported bug reports

Of course, an important part of triaging is to keep triaging newly reported bug reports.

All bug reports currently reported to Plasma automatically get picked up by a bot of mine, auto-triaged, and (where applicable) auto-reproduced, and (where reproducible) auto-fixed. Then I get a Telegram message with the triage of each bug report.

How I closed one third of all Plasma bugs

Again, I think this is very useful information that is extremely cheap to achieve and that could be shared publicly with all maintainers. Why should the bug report info only be available to me? Most likely, other Plasma maintainers would also benefit from a compact, well written triage of new bug reports; they wouldn't have to blindly trust it (I don't!), but it can be a helpful starting point for them.

That said, I mostly did not submit fixes for newly reported bugs. That's because they're often more complex compared to my "the easiest hundred to get through review", and I'm trying to keep the pace up.

How much did it cost?

If I were paying API prices, which is the only way to reliably put prices on tokens, the experiment would have been a grand total of drum roll $4,000!

Obviously that's bullshit. I don't have four grands to spend on this. API prices, especially Claude's, are heavily inflated compared to the real price of serving models, and compared to subscriptions.

Technically companies (and user facing products) simply have to use API and thus Anthropic makes some extra (extra) cash on that. But AFAIK subscriptions are already profitable for them, and a $200 sub gives roooughly ~$13,000 of API-equivalent usage.

Let me share a thought: given that the $200 is already profitable, imagine how crazy high the margins are on API prices; that, plus the fact that ~80% of revenue is from API, means that if Anthropic shut the fuck up and stopped trying to create the Machine God by investing insane amounts in new datacenters, they would be crazy profitable overall. But no. AAAAA

Anyhow this experiment was ~$61. Feel free to donate by subscribing to the website if you want me to keep going: I am now bankrupt. \s.

What about the environmental impact?

Throughout this experiment I was particularly mindful of my environmental impact.

We do not have exact numbers for the impact per token of newer models, so we really can only see an estimate of the total energy and water impact of the project. This entire section has very napkin-kind of math; don't quote me here, but I inserted it to understand the orders of magnitude.

My very rough estimate is 130kWh, 0.55 m³ of water, and 40kg of CO2 per month (× 1.5 months).

For reference, that's ~6% of total energy/CO2/water monthly impact of the average monthly person's impact (roughly!). This means that by increasing my impact just by 6% (for a month and a half) I was able to close one third of all bug reports (and make hundreds of fixes, some of which merged) to an international project, and everyone will benefit. The impact from now on will be much lower, since it was very high for this project as I had to triage the backlog of 2150 (now 1686) bug reports.

Note that I'm also vegetarian, and that offsets all of the above! If you want to critique me for my environmental impact of this project, but you eat meat, I think you are a hypocrite. Same applies if you go on long flights you could've avoided (e.g. for fun).

On a more serious note: doing this kind of work "by hand", manually checking hundreds of bug reports and duplicates, would've had required much more energy, CO2 and water. AIs are extremely efficient compared to humans compared on the same amount of work. The "trick", of course, is that I still exist, and my existence doesn't scale proportionally to the amount of work that I do (most of our energy is spent simply being alive).

Effectively, this means that AI are able to do work more efficiently, but if they pick up that work from humans, then the humans will still do something else: human's energy expenditure is a lower bound that we can't really decrease. So, all in all, AIs can help us do more and achieve things we wouldn't have had the time to do otherwise, and our overall energy efficiency will increase, but our overall impact will also increase, because indeed we do much more!

One last thing before closing this section. People will often look at the total environmental impact of AIs and blame users like me. However, this doesn't consider three extremely important facts:

  • Most of the compute at Anthropic is used to develop new and more capable models. They already have much more capable models unreleased (we know that for a fact, see METR's report), but they want to push towards RSI. The rest of the world doesn't want that, though, at least not at this pace. Opus is a great model and there's no need to spend insane amount of compute in an attempt to create the Machine God. Please stop.
  • Most of the remaining compute an Anthropic (ignoring training) is used by big companies who are buying insane amount of tokens. They are only now realizing they overdid that and scaling down.
  • Most of the remaining compute at Anthropic (ignoring training and companies) is used by Anthropic staff itself. They use an insane amount of compute. Usage by subscription is just not really what's causing the environmental impact.

Again, we could just stop with this crazy race towards recursive self-improvement and we'd end up with a technology that is actually very cheap, profitable to sell, and with very limited environmental impact (or other negative externalities: scraping, underpaid third world country workers, etc etc).

I recently joined the volunteer community of PauseAI in Italy and I'm doing my best to convince people that this technology is dangerous and that development has to stop before we do real damage. Me triaging bug reports with Claude in me free time isn't what's going to kill us all.

So, what's next for Plasma?

I feel like the previous section got sidetracked. Sorry about that.

I will probably scale down my triaging effort and mostly focus on newly reported bugs, though I'll continue submitting fixes. That said, my work won't stop here:

  • There's a new and (IMO) very cool Plasma project that I will talk about very soon; stay tuned for a new blogpost.
  • There's a new and less cool Plasma project that I'm trying to get to work, though it's taking a bit more time, and if you dislike AI you won't like this one. Sorry. Otherwise, stay tuned for another blogpost.
  • Finally, this article is too long already but I have another one with more in-depth thoughts and worries about software development. Stay tuned, I guess?

Feel free to contact me if you have questions or suggestions; please don't send insults my way as I've already gotten enough from Mastodon lately :)

My favourite spot in Harmonicon’s new Light theme is the little green band at the end of the pitch rail. Pick up a C harmonica, draw on hole 2, and try to land in it. The Bending Trainer listens through your microphone and shows your pitch as you bring the note down from G to F♯.

The Bending Trainer in Light, with a white target card, a pale green target band and a ten-hole harmonica diagram

Light has a soft blue-grey background and a white card that gives the notes and the rail room to breathe. Below the rail, Natural and Target let you hear both pitches before you try the bend. The diagram on the right is a map of your harmonica. Blue is blow, orange is draw, and the little outline around F♯ shows which bend you’re practising. Click another note to make it your target.

The same hole 2 bend in Dark, with a deep blue background and a green target band

Dark has the feel of a practice room in the evening. The background goes deep blue, and the warmer notes on the diagram stand out beside the green target band. Everything is where you left it. You can scan for hole 2, find the F♯, and take another go at the same bend.

The Theme page with Light and Dark previews side by side

Open Options → Theme to see the two looks side by side. Pick either card and the screen changes right there. Harmonicon remembers your choice the next time you open it.

If you’ve got a harp handy, choose Harmonica, then open Play → Note Trainer and give that half-step bend a go. Bending Trainer walkthrough · Harmonicon

Tuesday, 1 December 2026

KStars v3.8.6 is released on 2026.12.01 for Windows, Linux, and MacOS.

For Linux users, it's highly recommended to use the official KStars Flatpak hosted at Flathub.

This is a big release! Flats can now be calibrated with your light box brightness, Align and Focus can diagnose why they failed and suggest fixes, and there is field derotation for Alt-Az mounts and live tracking for planets while streaming. The Scheduler got a lot of hardening for real-world nights, and a long list of crash fixes landed across Ekos. Here are some highlights:

Flats & Light Box Calibration

  • JD de Keijzer taught Ekos to reach the target flat ADU by adjusting light box brightness at a fixed exposure, instead of only changing the exposure. Ekos picks the method automatically, falls back to exposure when the brightness range can't reach the target, and restores your original brightness when the job ends
  • ADU is now the default flat duration for new jobs, with a new Auto target of 40% of the frame's bit depth range. Calibration also stops with a clear message instead of looping when the target can't be reached
  • Thanks to JD de Keijzer's follow-ups, a flat job no longer restores brightness 0 (which switches some light boxes off, like the Wanderer Cover V4-EC), and a light box that gives no light stops the job early
  • Flat previews now take a single frame as-is, with no calibration
  • The light box is now turned off when capturing ends, instead of staying on indefinitely after a standalone flat sequence
  • Logan Stucki fixed a race where the exposure could start before the focuser finished moving to the filter's focus offset

Camera & Capture

  • Planets, Moon, and Sun tracking while streaming: cameras that report a tracking offset can now keep the target centered using guide pulses to your mount or ST4 guider. Settings live on the new Stream Tracking page in Capture options
  • Captured previews are now debayered smartly by frame type. Dark and bias stay raw, flats use a 2x2 superpixel debayer, and lights keep the full debayer unless memory is tight. A burst of 52 MP flats now settles at 1.04 GB instead of 2.48 GB, which matters a lot on an 8 GB resource limited computers.
  • Long SER video recordings are no longer interrupted by the single-frame exposure timeout
  • In-sequence autofocus now runs with the capture job's filter, not whichever filter another module left behind
  • The driver restart counter now resets when the camera delivers a frame, so recovered restarts no longer pile up over a night and abort a module
  • Previews and Loop no longer wait for the camera to reach the target temperature
  • Fixed an extra frame being taken after the guide timeout and stopped focus runs aborting captures that were not running
  • The Dark Library no longer keeps the previous camera's masters when you switch trains, and defect map pixel counts now reach EkosLive clients
  • Fixed dark subtraction and defect maps: stopped runs no longer produce over-bright masters, every pixel is now examined, and colour frames are corrected plane by plane

Scheduler & Observatory Automation

  • Fixed an unattended schedule ending with the mount unparked when a meridian flip came due at shutdown. Andreas R.'s fix makes the scheduler wait for flips and slews before parking, and reports a failed shutdown as a failure instead of "Shutdown complete"
  • Andreas R. fixed the startup never completing after a pause/resume, and jobs hanging when they finished while paused
  • Andreas R. also made the scheduler resume the interrupted sequence after a guiding restart, so it no longer starts over from row one. A running job's own abort no longer bumps it, and the guiding stage timer resets on each run
  • Slews that end without tracking are now handled: the scheduler switches tracking on, or terminates the job after five restarts instead of looping all night. Thanks to Andreas R. for the OnStep field testing
  • Fixed the park/unpark tasks hanging when task templates had not been loaded
  • "On" jobs that were aborted or failed after their start are now restarted until their end time, and "On + Until" jobs are correctly planned in the simulation
  • Mosaic planner jobs now honor the completion condition. Sequence files are written with UTF-8 names, so targets like "Vénus" work
  • The default observatory queues now open and close the dome shutter, and tasks are skipped for domes without one, such as roll-off roofs
  • Fixed the extra frame at the end of a repeating job's cycle
  • Steve Roger fixed the "Re-schedule errors" option not being saved, and the misleading "cannot run because" diagnostics
  • Chris Madson fixed task queue Stop cancellation and late-progress crashes, and Park status recovery after an INDI Alert
  • The job editor keeps the selected optical train, the Save Schedule button works after adding a job, and the option tooltips are rewritten in plain language

Guiding

  • New failure diagnosis for calibration, guiding, and dither failures, with mount-first suggestions (balance, clutch, backlash, cabling) and a check-up for low guide rates
  • Andreas R. added an optional local star search for SEP MultiStar. On a real rig, guide frame processing dropped from 263 ms to 78 ms, and the guide pulse goes out about 200 ms earlier
  • Thanks to Andreas R., locally searched frames are now drawn with blue guide star boxes so you can see the feature working
  • Andreas R. made guiding recalibrate when the guide camera or optics change, warn early when a saved calibration doesn't fit, and pick up new frame sizes after a camera resolution change (important for users of ToupTek cameras)
  • Andreas R. fixed Capture seeing a "0.000 deviation" and starting an exposure when there was no guide star
  • A manually entered GPG period is no longer overwritten by an old learned value
  • Calibration now works in all four directions even with guide directions limited, and the first RA calibration step is fixed

Alignment, Plate Solving & Polar Alignment

  • New Align diagnosis: when an alignment fails, you get a ranked report of likely causes with fixes you can apply or dismiss, also available over D-Bus and in EkosLive. It looks at devices, index files, clocks, and the frame itself (too few stars, out of focus, trailed). When nothing failed, a setup check-up reviews your configuration
  • Align can recover from the wrong pointing and wrong FOV, and now learns the effective FOV properly
  • Plate solving defaults are now hint-based, with a single built-in 1-Default profile. Saved profiles migrate once, and temp files from external solvers are cleaned up
  • Andreas R. made Align fail cleanly when a mount ends a slew without tracking, instead of waiting forever, and added the missing "ms" unit to the Settle field
  • Align no longer counts waits for the dome, focus, or rotator as camera timeouts that restart your driver
  • Polar Alignment now sends the actual correction to the PAC rather than the measured error, so it moves toward the pole on the first pass. It also skips negligible corrections and excludes PAC motion time from the timeout

Focus

  • New autofocus failure diagnosis, like Align: rings in the frame, no stars, curve failures, and device problems each get tailored fixes
  • Linear 1 Pass runs that never actually reached focus are now failed instead of being reported as a "GREAT result" thousands of steps away
  • Andreas R. fixed failed autofocus retries creeping the focuser further out of focus under clouds
  • The focuser now returns to its initial position correctly when autofocus is aborted mid-move. Manual star selection after a failed automatic selection works again

Rotator & Alt-Az Mounts

  • New field derotation for rotators on Alt-Az mounts, with a threshold setting and the rotator offset following the parallactic angle. The idea builds on earlier work by Toni Schriber
  • At Toni Schriber's request, the sensor FOV on the sky map now previews the Alt-Az orientation the camera would have at the map center
  • Pier side and flip policy are now ignored on Alt-Az mounts, so a stale pier side can't swing your rotator
  • Fixed Load & Slew with "Preserve rotator angle" turning the camera by 180° because of a stale pier side, which a ZWO CAA refused with a safe limits error

Live Stacking

  • During a sequence, live stacking now stacks only tonight's frames instead of mixing in frames from previous sessions.
  • Logan Stucki fixed meridian-flipped subs being rejected when Downscale is 2x or higher. In his NGC 7822 data, rejections dropped from 388 to 0
  • Matteo Beretta fixed a crash when the stored solver profile index is out of range.
  • Failed sub solves are retried with a blind scale, which helps with cameras that report the wrong pixel size

FITS Viewer

  • Madhur Dhillon fixed header values and comments being truncated at slash characters
  • Madhur Dhillon also fixed the Histogram and Header actions opening the wrong sidebar tabs
  • Fixed the per-channel median estimate, which was wrong for colour frames and truncated float images. It is also about 8x faster on a Raspberry Pi

Sky Map, Catalogs & Data

  • Star catalog fixes: bright stars still held J1991.25 positions, so fast movers like Sirius, Arcturus, and 61 Cyg A were drawn up to 1' off. Positions are now J2000.0, and duplicates and rounding errors are cleaned up
  • Satellites are now read in OMM JSON format, so objects with catalog numbers above 99999 work, and "Last Launches" is back. One failing group no longer stops the others from updating
  • The CDS servers changed host names and have been flaky, so KStars uses the current names with mirror fallbacks for Sesame, SIMBAD, and HiPS
  • The Exposure Calculator now downloads camera data from the new indilib/camera-data repository. Thanks to Gustav Lundby for contributing more camera data
  • Andreas R. fixed random noise covering the sky map with an invalid offline HiPS path, and stale resolution levels after correcting it
  • Andreas R. also fixed a crash from NaN coordinates for points exactly at a celestial pole, seen with OnStep home positions
  • Madhur Dhillon removed the default + and - shortcuts from the timestep unit actions, so they zoom the sky map again
  • Fabrice Fleurot fixed stale FOV position and rotation after unlocking the celestial pole

DBus Integration

  • Marco Gulino exposed HFR and guiding stats over DBus for his ekos-telemetry monitoring sidecar
  • Added meridianFlipStatus and setTracking() to the Mount DBus interface, plus a diagnosisCheckup() method
  • Optical train settings can now keep per-module metadata, such as the Tilt Correction Advisory plate settings
  • INDI text values are now sent as UTF-8, and non-ASCII file paths work across FITS, RAW, and the star catalogs
  • Fabrice Fleurot made Escape no longer close the Ekos Manager

Stability

  • Many crashes fixed, most traced from Sentry reports. They involved Focus, Capture, Align, and Polar Alignment when a camera, focuser, filter wheel, or mount is deleted or missing, the INDI server dropping during capture, the Solar System Viewer double-click, the star hopper, the Horizon Manager, the logging thread on exit, and Ekos Manager creation during shutdown
  • Fixed a QImage warning flood from altitude graphs squeezed too small
  • Chris Madson fixed adding a filter through the Equipment Writer
  • Eli Schwartz stopped installing the static htmesh library, which helps distro packagers
  • KStars now builds with Qt6 by default. Use -DBUILD_WITH_QT6=OFF for Qt5

Many thanks to Andreas R. (who contributed an amazing 23 commits this cycle), JD de Keijzer, Logan Stucki, Chris Madson, Steve Roger, Fabrice Fleurot, Madhur Dhillon, Marco Gulino, Matteo Beretta, Eli Schwartz, Toni Schriber, Gustav Lundby, and everyone who reported bugs, tested betas, and shared logs from their rigs. Special thanks to everyone testing on real hardware under real sky!

Ready to try it? Grab the KStars Flatpak, or download for Windows, Linux, and MacOS. Clear skies!

When building modern software you are very likely to end up with a set of dependencies – the components that you use to build your functions. All dependencies form a software supply chain that you depend on.

This is the foundation of software development and allows us to stand on the shoulder of giants. The open source eco system of available components is amazing and is what makes to possible to build what we can today.

Another aspect of this is that you all of a sudden depend on your dependencies being up to par, and not only your software. How do you keep track of that?

Above is an example dashboard card from the Ensline Pilot tool we’re currently building to support the work we do at Ensline. The intent is to give a general overview of the state of the software supply chain of an organization. The card above shows a bad metric – only 79 of 194 components fail our minimum requirements.

Looking at the details overview, we can see the overall score, as well as the weakest dimensions. For instance, the config-chain repo in the example below is archived, but all the components shown below score zero points, meaning that there has been no activity during the past year.

The table is long and the scores increase. The idea is to give you a first glance overview of what components you need to pay attention to.

Diving into a component you get a spider graph showing six dimensions. The dashed shape in the middle is the minimum requirements configured for the organization. Below that, you will get a warning.

In the examples below, you can see that mitt has not had any activity during the past year, generationalcache has reacted to bug reports, but is archived, while lodash is live and meets our health criteria. These are just random examples and do not indicate bad or good projects.

I think that these views give everyone from management to engineering a tool to make informed decisions. That is one of the reasons why we are building Ensline Pilot.

For now, we base the measurement of fairly shallow metrics. I know that the curl project has an excellent set of graphs showing their project health. The question is where to spend the energy. I’d love to get your view on what you would like to see in a health view. Please reach out to me if you want to try out what we’re building and discuss what can be improved.

Do you want to understand your repo better? Start by trying our repository scorecards.

Moving an existing Qt Widgets user interface to Qt Quick is a big investment. Every screen, dialog, menu and toolbar has to be rebuilt. Every custom-drawn element has to be redesigned. The application logic that sits tangled up with the screens has to be separated out, the project setup has to be reworked, and the result has to be compared with the original screen by screen to make sure nothing was lost. For applications that want a modern, fluid, touch-friendly interface, this adds up to weeks and months of repetitive work that few teams have room for.