04 Dec 2026

feedPlanet KDE | English

Qt and Trivial Relocation (Part 6)

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.

04 Dec 2026 1:31pm GMT

Web Review, Week 2026-49

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!

04 Dec 2026 12:23pm GMT

Chessament 1.0.1 released

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.

04 Dec 2026 10:30am GMT

Kirigami Addons 1.16.2

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.

04 Dec 2026 7:00am GMT

This Week in Kwi: And we're back!

After a one-week interruption due to travels, we're back with a quick overview of what's been going on in Kwi.

Despite this busy time of the year, there's been steady progress.

Kwi continues to mature thanks to all of your feedback, and also a noticeable uptick in external contributions. Many thanks!

Progress Tracker

Additionally, because Kwi is built on KDE's latest technologies, we sometimes get to find and fix bugs upstream of the project, or contribute new features needed by Kwi.

Upstream This Week - by Kwi, for everyone:

Finally, recently we've been getting some user bug reports that actually need changes in our backend, libghostty-vt. Happily, the upstream team is very receptive. At the moment we're tracking the following MRs upstream:

Outlook

The progress log above includes quite a few of the most popular user wishes for Kwi, so it will be time to tag and release a v0.2 quite soon! Most likely next week.

Beyond this, planning and development will also resume on some of our bigger-ticket items mentioned in previous editions of this newsletter, such as giving Plasma users a simple option in System Settings to switch the terminal in Dolphin, Kate, Yakuake & co to Kwi, as well as support for Split Panes.

04 Dec 2026 12:00am GMT

Running a CUDA Mandelbrot on Slurm with easypp

I started easypp for small C and C++ projects. Put a program in src/bin, put a library under src/libs, and the includes tell the tool which library the program needs, and magically it finds everything. I wanted to take that workflow to a cluster and see where it would hold up.

The first useful result was a 321 × 241 image of the Mandelbrot set. Two MPI ranks shared a GPU on the Luxembourg Supercomputer, and each rank used two OpenMP threads. A simply easypp run creates the Slurm launcher and the modules dependencies for lmod and easybuild, when needed.

Supercomputing Mandelbrot

Mandelbrot makes it easy to see what each parallel API does. MPI gives each process a range of rows. A CUDA kernel computes how many iterations each pixel takes to escape. OpenMP colors those pixels on the CPU. MPI gathers the colored rows back to rank zero, which writes the image. An odd height gives the two ranks different numbers of rows, so even a tiny picture exercises the gather.

The example is three files under examples/hpc-fractal in the easypp checkout.

src/
 bin/fractal.cpp
 libs/fractal/mandelbrot.hpp
 libs/fractal/mandelbrot.cu

See the lack of makefiles.

The C++ program includes fractal/mandelbrot.hpp, which points easypp to the library folder. The .cu file selects nvcc. The MPI header and OpenMP pragmas tell the tool that the host build needs MPI and OpenMP. This gives students a concrete way to see the connection between the API they use and the things their program needs to compile and link.

Finding MPI and CUDA on the cluster

A header gives me a dependency. The cluster still decides which compiler and library installations are available together. easypp uses the environment that is already active, including CC, CXX and the pkg-config paths. When nvcc or MPI metadata is missing, it can probe the CUDA and MPI modules visible in Lmod. It checks that a candidate supplies the missing tool or metadata and preserves the modules already loaded. If several candidates work, easypp reports them and lets me choose. Lmod user guide

After a successful build that discovered modules, easypp writes their names to hpc.conf. I can read it, change a version, and run again. Here is what that file can look like with one site's module names.

[lmod]
mpi/OpenMPI/4.1.6-GCC-13.2.0
system/CUDA/12.6.0

The [easybuild] section is for exact .eb recipes that I add myself. If their corresponding modules in [lmod] cannot be loaded, easypp can ask an available EasyBuild installation to provision the recipes under my user prefix. That makes the choice visible and gives a collaborator something concrete to reproduce on the same module stack. EasyBuild usage guide

From a Slurm allocation to a picture

On the Supercomputer, inside of the examples/hpc-fractal folder, alloc your slice:

salloc --partition=interactive --qos=debug --constraint=gpu --gres=gpu:1 \
 --nodes=1 --ntasks=2 --cpus-per-task=2 --time=00:05:00 \
 bash --noprofile --norc

Once Slurm grants the allocation, run easypp directly in that shell. This assumes the executable is on your PATH.

easypp run --release -j2 -- 321 241 smoke.ppm

On the first run, easypp writes run.slurm in the project directory and uses it to start a job step with srun. It reuses that file on later runs, so I can edit the launcher when I need a different binding or a site-specific option. If I start easypp inside a job step, it builds and runs there. The shared project lock lets the ranks take turns through the build. Slurm job steps

The launcher defaults OpenMP to the two CPUs per task. The -j2 on easypp run controls the build jobs. Here's what the program prints when the GPU has computed the image and rank zero has written the PPM file.

Wrote smoke.ppm with 2 MPI ranks and 4 OpenMP threads total

For the cluster checks, I built a static x86-64 executable locally and copied it over. This is handy on clusters with older Rust toolchains or system libraries. The release build command is below. There is also an EasyBuild recipe for putting a prebuilt executable on a group's module path.

cargo rustc --release --locked --bin easypp -- -C target-feature=+crt-static

What I checked

On Iris, two ranks shared one Tesla V100. I edited run.slurm to print a line on the second run, saw the line in the output, and got a byte-identical image. After splitting easypp into a Rust workspace, I built the tool again and ran a CPU-only MPI/OpenMP fixture on Aion. It reported two ranks and four threads. The follow-up Iris allocation timed out in the queue, so the GPU result is from the earlier build.

There's a caveat if you put several kinds of program in the same project. The launcher currently looks for MPI across the project. An MPI test can make it start several copies of a serial executable. For a project like that, the generated script is where I can set the task count explicitly.

The part I like about this example is that the decisions worth explaining are still easy to find. The row split is in the C++ program. The GPU work is in the CUDA file. The allocation describes the resources we asked for. A student can change one of those pieces and see the effect on the next picture. easypp on GitHub

04 Dec 2026 12:00am GMT

03 Dec 2026

feedPlanet KDE | English

KDE Gear 25.12.4

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:

Distro and app store packagers should update their application packages.

03 Dec 2026 12:00am GMT

02 Dec 2026

feedPlanet KDE | English

How I closed one third of all Plasma bugs

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:

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:

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:

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 :)

02 Dec 2026 10:54pm GMT

Harmonicon in Light and Dark

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

02 Dec 2026 12:00am GMT

01 Dec 2026

feedPlanet KDE | English

KStars 3.8.6 Released

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

Camera & Capture

Scheduler & Observatory Automation

Guiding

Alignment, Plate Solving & Polar Alignment

Focus

Rotator & Alt-Az Mounts

Live Stacking

FITS Viewer

Sky Map, Catalogs & Data

DBus Integration

Stability

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!

01 Dec 2026 2:38pm GMT

A Health Overview

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.

01 Dec 2026 1:23pm GMT

Introducing the Qt Widget to Qt Quick Skill: Automating 80% of Porting

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.

01 Dec 2026 1:18pm GMT

November 2026 in KDE Linux

Welcome to a new edition of This Month in KDE Linux, dedicated to KDE's next-generation operating system. But first, some important information:

Anyway, here are some of the notable changes integrated in November:

BuildStream

In November, a ton of work went into the project to build the base OS out of Flatpak SDKs constructed using BuildStream. The result is now in a testable state, and multiple people are testing or daily-driving it. If you're super mega adventurous, please feel free to try it! If the BuildStream edition doesn't work out, you can always roll back to the standard edition.

Improvements

Harald Sitter introduced a new method to handle user changes to /etc/. Previously /etc/ was writable, and a tool synchronized changes from /usr/share/factory/etc/ with it. Now, /usr/share/factory/etc/ is mounted in read-only form at /etc/, and a writable overlay is mounted on top to let you make changes to it. This solves a variety of problems we experienced with the former approach, such as system services not always being enabled when they should have been, or turning off after being manually enabled.

Silver Chokr and Nate Graham made the icon cache work, which speeds up icon lookup throughout the system.

Silver Chokr made the "command not found" handler work with non-existent commands run using run0 or sudo.

Nate Graham made the collect-logs tool redact more potentially-identifying information.

Bug fixing

Harald Sitter fixed an issue that prevented the system's hostname from being set correctly, which broke network sharing and various other services.

Silver Chokr made the ISO work in VirtualBox.

Lasath Fernando made Kapsule work in the live session.

Silver Chokr made it possible to use a web UI for Incus.

CI & testing

Thomas Duckworth moved the OpenQA tests into the main repo, which makes it easier to add or modify them alongside other work.

Sky Poincet made the testing step complete faster by parallelizing parts that can run at the same time.

Infrastructure

Bhushan Shah did a lot of work to upgrade the OpenQA testing system to be VM-based, integrating better with the rest of KDE's infrastructure.

Bhushan Shah migrated KDE Linux's debuginfod server to KDE infrastructure, and away from Harald's personal server.


How you can help

KDE Linux is making progress towards its Beta milestone, and remains 85% of the way there.

There's lots to do! If you're a fan of the project, please help out; there are many ways:

01 Dec 2026 12:00am GMT

KDE Plasma 6.8.4, Bugfix Release for December

Today KDE releases a bugfix update to KDE Plasma 6, versioned 6.8.4.

Plasma 6.8 was released in October 2026 with many feature refinements and new modules to complete the desktop experience.

This release adds three weeks' worth of new translations and fixes from KDE's contributors. The bugfixes are typically small but important and include:

View full changelog

01 Dec 2026 12:00am GMT

30 Nov 2026

feedPlanet KDE | English

Keeping Rainer's Legacy Alive

As many of you know, Rainer Grimm passed away more than a year ago. Being at Meeting C++ and seeing Cippi there, his absence is felt particularly deeply this time of year.

Cippi
Cippi

For more than a decade, Rainer's blog, modernescpp.com, was one of the best places to learn modern C++. His family wished for his blog to continue as a living tribute to him.

A few of us who knew him and held him dear (currently Klaus, Mateusz, Jens, and myself) will do our best to carry on the blog and maintain the quality and spirit of his work.

You can already find a few great posts by Klaus there.

I'm glad to share my initial contribution to the blog. It is the first part of the series on what I consider to be the most important use case for std::variant - modelling software state using sum types, with the aim of increasing software safety by eliminating invalid states.

30 Nov 2026 6:35am GMT

29 Nov 2026

feedPlanet KDE | English

digiKam 9.2.0 is released

digiKam 9.2.0 Date View

Dear digiKam fans and users,

After five months of active development, bug triage, and feature integration, the digiKam team is proud to announce the stable release of digiKam 9.2.0. This version builds on the foundation of 9.1.0, introducing new features, performance improvements, and a significant number of bug fixes to enhance stability, usability, and workflow efficiency. This release focuses on natural language search, the new Immich webservice plugin, database improvements, and usability fixes across the board.

29 Nov 2026 12:00am GMT