"This article was originally published in Polish in issue 4/2013" — a lot of excellent advice. Sad to see C++ have moved in last decade in a direction that makes writing efficient, simple low level code harder and harder :(
I think it has become EASIER: for instance, since C++23 Rust-like move semantics can be used, which provides the compiler with extra information that can be leveraged for the generation of better code.
Or take constexpr - it permits to move computations to compile time that are complex and in older versions either had to be done at runtime, or an ugly workaround had to be used (e.g. assigning a mysterious literal pre-computed in another run or by hand).
112233 · · focus · HN ↗
jll29 · · focus · HN ↗
Or take constexpr - it permits to move computations to compile time that are complex and in older versions either had to be done at runtime, or an ugly workaround had to be used (e.g. assigning a mysterious literal pre-computed in another run or by hand).
creata · · focus · HN ↗
What C++23 feature allows that?
cherryteastain · · focus · HN ↗
<a href="https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2266r3.html" rel="nofollow">https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p22...
aw1621107 · · focus · HN ↗