Re:D is being used for autonomous driving research – Audi an...
by pjmlp on Tuesday June 25, 2019 @04:22AM
(#20272111)
That is a popular example, because it is a simple way to describe the difference between templates versus bare bones C coding.
And in some scenarios even a little 2x speedup does impact
With template specializations that speedup can be increased even further and since compiler does see template bodies, there are even more opportunities for the optimizer to do its work.
C++ can be used in something like a Commodore 64 just fine, in fact with smaller binaries thanks to constexpr all things.
CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”
And in some scenarios even a little 2x speedup does impact
With template specializations that speedup can be increased even further and since compiler does see template bodies, there are even more opportunities for the optimizer to do its work.
C++ can be used in something like a Commodore 64 just fine, in fact with smaller binaries thanks to constexpr all things.
CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”
https://www.youtube.com/watch?v=zBkNBP00wJE