News for hackers. Stuff that matters.
Re:C++20 has been approved by ainar-g on Sunday September 06, 2020 @07:14AM (#24390571)
If you use a tiny subset of C++, then you get a dialect of C with more type safety, namespaces, mostly-not-unsafe subtype polymorphism through class inheritance, and also okay parametric polymorphism through templates. That dialect will compile a bit slower (it's still C++ after all), but produce code which either has the same performance as C or is only slightly behind C.
Re:C++20 has been approved by shash on Sunday September 06, 2020 @10:37AM (#24391614)
Or often, faster than C, if you’re using compile time template expansion instead of runtime void* casts.