Linus Torvalds and the Supposedly Garbage Code -- Giovanni Dicanio
Some reflections on a harsh critic by Linus Torvalds on a RISC-V Linux kernel contribution.
Linus Torvalds and the Supposedly “Garbage Code”
by Giovanni Dicanio
From the article:
So, the correct explicit code is not something as simple as “(a << 16) + b”.
[...] As you can see, the type casts, the parentheses, the potential bit-masking, do require attention. But once you get the code right, you can safely and conveniently reuse it every time you need!

Compile time code can be very efficient. Andrew Drakeford demonstrates how to write efficient chains of matrix multiplication.
In today's post, I like to talk about C++26 and one of the probably most impactful features that have been added to the working draft. While C++26 is still some months away from official completion, since the WG21 summer meeting in June we all now know what will be in C++26.