I read recently “constexpr functions: optimization vs guarantee” by Andreas Fertig. I was a bit surprised by some of his claims about constexpr functions regarding binary size so I decided to go af...
C++23: some changes related to templates
I know the above title is a bit vague. As we move forward with the introduction of C++23 features, there are going to be some articles like that. At the same time, there are more than two features ...
The value of boring tasks
Has it ever happened to you that you had a job at a cool company but your daily tasks were somewhat meh? If you’ve been working for at least a few years, I’m sure that this happened to you. Probab...
C++23: compatibility with C
In this blog post, let’s see two papers in C++23 that are being introduced due to compatibility with C. The <stdatomic.h> header Originally, atomics for C and C++ were designed together. Th...
C++23: mdspan
Recently, we discussed that C++23 introduces the multidimensional subscript operator which will work - for the time being - only with new containers. In C++23 that basically means mdspan. In C++26,...
C++23: multidimensional operator[]
Two weeks ago we talked about how C++23 allows for the call and subscription operators to be static. This time, we stay in the land of operators and we’ll continue discussing the subscript operator...
The Power of Tenure: 7 reasons to stay at your job
Should you stay in your job for a long time? Or should you hop for another early on? While the market today might tell you to stay, it won’t be like that all the time and it wasn’t like that a year...
C++23: static operator() and static operator[]
In this article, we are going to review two new features of C++23. Now the language allows the call operator (operator()) and the subscription operator (operator[]) to be static. Let’s jump into th...
Binary sizes and compiler flags
During the last few months, we discussed a lot about how to write code to limit the size of our binary. We should think twice if we want to turn a class into polymorphic, exceptions also take a hea...
C++23: Alias declarations in for loop init-statements
Let’s continue exploring C++23 features! Sometimes, accepted proposals introduce entirely new features, sometimes they bring bug fixes and sometimes they are somewhere in between. The small featur...