DEV Community

Discussion on: The Hidden Power of Rust

Collapse
 
samueljosephs profile image
SamuelJosephs

This is wrong, the c++ compiler is just as good as optimising as the rust compiler. If your using clang rust and C++ use the same backend (LLVM). Rust and C++ will put out binaries of the same speed and c++ binaries are normally smaller. Where on earth did you get this information? I love rust but this is just wrong.

Collapse
 
nathan20 profile image
Nathan

Actually C++ is generally faster than Rust in some scenario, but if you use certain safety features in Rust, it can start to slow down. However, the faster compilation speeds are worth the extra time, since it can help avoid difficult issues later on. Ultimately, it comes down to personal preference and what you're looking for in a language.
I think we are in agreement.

Some comments have been hidden by the post's author - find out more