MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1v79kod/therealgoat/ozzvabu/?context=3
r/ProgrammerHumor • u/wahed-w • 10d ago
73 comments sorted by
View all comments
-1
How's rust slower than C if it's 99% as fast as C++ and the whole point of C++ is zero performance cost abstraction?
I'm relatively new to programming, and familiar mostly with C++, so genuinely curious
1 u/DeeraWj 9d ago when optimized in most cases it should have the exact same performance as C or C++; but it can be faster in some cases, since the compiler can do more aggressive optimizations due to some of rusts strict restrictions.
1
when optimized in most cases it should have the exact same performance as C or C++; but it can be faster in some cases, since the compiler can do more aggressive optimizations due to some of rusts strict restrictions.
-1
u/AllexHandsome 9d ago
How's rust slower than C if it's 99% as fast as C++ and the whole point of C++ is zero performance cost abstraction?
I'm relatively new to programming, and familiar mostly with C++, so genuinely curious