4 ms·
Template metaprogramming is not something new, it's old, and indeed much of Modern C++ (e.g. constexpr) is made to replace the complicated TMP with simpler and
by andrepd 10y ago
Template metaprogramming is not something new, it's old, and indeed much of Modern C++ (e.g. constexpr) is made to replace the complicated TMP with simpler and just-as-powerful abstractions.
Can you name another language that supports the many high-level abstractions that C++ supports (OOP, generic programming) while being just as fast? Only D and Rust come to mind, and they are neither as fast nor, crucially, as well-developed as C++. The amount of resources and existing code in C++ is staggering. Newer languages such as D and Rust simply can't compete.
- waynecochran 10y agoAda.
- steveklabnik 10y agoIf Rust is slower than the equivalent C++, that's a bug. Please file them.
- groovy2shoes 10y agoModula-3. Bonus points are awarded to Modula-3 and Rust for safety.