News for hackers. Stuff that matters.
Re:We used C++20 to eliminate a class of runtime bugs by ncmncm on Friday January 14, 2022 @04:22PM (#29940621)
C++20 is as big an advance as 11 was, and is taking as long to penetrate.

Editors all know C++ now. Generic lambdas in C++14 made coding fun. Template metaprogramming is hardly ever needed or useful anymore. Builds got faster with module support (essentially standardized precompiled headers), and also ccache and ninja. As Concepts penetrate, error messages get radically better.

Valgrind is increasingly unnecessary, as use of op new vanishes.

Re:We used C++20 to eliminate a class of runtime bugs by flumpcakes on Friday January 14, 2022 @04:26PM (#29940673)
One of the most interesting changes to me is how much they are pushing metaprogramming into the language itself _without_ a lot of the traditional annotations that went with TMP before.

For example, annotating a parameter with 'auto' instead of the typename T preamble.

Re:We used C++20 to eliminate a class of runtime bugs by ncmncm on Friday January 14, 2022 @04:33PM (#29940734)
Template metaprogramming was always known as a hack, no more so than among people obliged to do it. Most of the things it was used for are now done with core language facilities designed for the job, and coded in compiled C++ instead of interpreted template flailing, so fast.