4 ms·
>Does the case for C++ in 2020 still exist? Rust and Go are much simpler to learn, can do everything that C++ can There are 2 levels of comparisons: - (1) lan
by jasode 6y ago
>Does the case for C++ in 2020 still exist? Rust and Go are much simpler to learn, can do everything that C++ can
There are 2 levels of comparisons:
- (1) language syntax : the "they're both Turing Complete" so whatever one can do, the other can do and because Rust is newer, it has nicer syntax. E.g. plain Rust syntax already has "ownership pointers" by default so doesn't require typing ugly verbose syntax such as "unique_ptr<T>".
- (2) ecosystem and dependencies : In 2020, C++ and not Rust is still the primary API for things like NVIDIA CUDA, Unreal game engine, Qt GUI, and the ARM Allinea developer tools[1] for compiling code for the new Neoverse chips (e.g. latest AWS Graviton2 ARM servers). Sure, one could write wrappers in Rust for all those things but doing so will be going against the grain and now you're yak shaving your tools instead of building business value.
If I had a brand new startup today, I'd use Rust as much as I could but there'd still be 25% to 50% new C++ code because deep learning (e.g. CUDA) is C++ not Rust.
[1] https://www.arm.com/products/development-tools/server-and-hpc/allinea-studio https://www.arm.com/products/development-tools/server-and-hp...