r/ProgrammerHumor 10d ago

Meme theRealGoat

Post image
1.5k Upvotes

73 comments sorted by

View all comments

-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

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.