Originally posted by debianxfce
View Post
I'm not a Rust programmer, I used to program C++ but I can see many cases where it is easier to extract some extra performance out of Rust than C++. For example the OOP approach in C++ includes virtual methods which include a small performance penalty due to need of dereferencing each time such methods are called. Similarly Rust makes it easier to avoid some memory allocations. Then there are cases where one'd normally use ARC pointers in C++ (with extra cost of managing reference count at each use) in cases where one could rely on Rust's borrow checker to safely program many of these pointer usages without reference counting altogether.
To me it appears that Rust really enables better ratio of level of abstratcions divided by cost of abstractions than C++.
But I might be wrong... as I said I don't know Rust as well as C++...
What's your experience with Rust?
Leave a comment: