3 ms·
So? So does C++: - It has multiple working compiler implementations - It has a mountain of existing working software & libraries that may never be ported to r
by josephg 2y ago
So? So does C++:
- It has multiple working compiler implementations
- It has a mountain of existing working software & libraries that may never be ported to rust, like most AAA video games, Chrome, Firefox, Windows, CUDA, etc.
- C++ has better interop with pure C code.
- C++ usually produces smaller binaries than rust.
- Complex data structures (like b-trees) are easier to write in C++. (Rust supports pointers in unsafe blocks - but the syntax around pointers is, for some reason, horrible.)
I adore rust, and I'd pick it over C++ every day of the week. But C++ is a powerful, fast, mature programming language with a rich ecosystem of compilers and tools. Rust is not a drop-in replacement for C++ in every case.
- ruthmarx 2y ago> So? So does C++: These advantages are not really advantages in the same way the advantages Rust offers are advantages. In fact, most of the advantages you've listed here could apply to numerous languages not especially suited to modern development. As in, they're not real advantages and pale in comparison.