In all seriousness, Rust isn't (nor does it pretend to be) a C++ killer. If anything, it's better positioned as an alternative to C, but even then it's not a threat so much as a complementary tool.
What it brings to the table is an expressive language that tries to protect coders from themselves, all while reaching performance that approximates what could similarly be done with C. That, and its dependency management system (cargo, with the crates.io registry) is accessible to newcomers and likely contributes to its popularity. It's not shackled with a need for backwards-compatibility with tech older than your parents, and as a late entrant into the language universe it has also tried to learn from those that came before.
It's also a hard first language to have to learn. And that's before even getting into the macro syntax. Sometimes, it feels like you want to do something simple, but have to jump through enormous hoops to accomplish it. Other times, you want to use an existing toolkit, but because of the language's infancy the tool simply doesn't yet exist. Then, there are juggernaut libraries/systems that firmly entrench C++ as the best option (e.g. Unreal, IfcPlusPlus).
r/rust has a strong community of people that want to see others succeed at the language, and could do a better job than I have of explaining strengths and weaknesses. I'm sure there's the occasional "Hurr, muh language is the best evar" sort that pops up, but there's plenty of room for all of these languages to coexist and in many cases even help to guide the others' language design.
Not sure. Having a monoculture of any sort allows a lot of leniency (including but not necessarily laziness) in the design of implementation and interfaces. (At least that's why C++ always promotes having multiple compilers, right?). Any system where you have multiple languages will probably also be nudged towards improved clarity in the interface design—which most likely also comes at decreased legacy code debt and better decoupling. At least I hope so…The worst parts of backwards compatibility are the undocumented requirements, not so much the explicit interfaces.
38
u/ridicalis Dec 07 '21
Rustacean here... No.
In all seriousness, Rust isn't (nor does it pretend to be) a C++ killer. If anything, it's better positioned as an alternative to C, but even then it's not a threat so much as a complementary tool.
What it brings to the table is an expressive language that tries to protect coders from themselves, all while reaching performance that approximates what could similarly be done with C. That, and its dependency management system (cargo, with the crates.io registry) is accessible to newcomers and likely contributes to its popularity. It's not shackled with a need for backwards-compatibility with tech older than your parents, and as a late entrant into the language universe it has also tried to learn from those that came before.
It's also a hard first language to have to learn. And that's before even getting into the macro syntax. Sometimes, it feels like you want to do something simple, but have to jump through enormous hoops to accomplish it. Other times, you want to use an existing toolkit, but because of the language's infancy the tool simply doesn't yet exist. Then, there are juggernaut libraries/systems that firmly entrench C++ as the best option (e.g. Unreal, IfcPlusPlus).
r/rust has a strong community of people that want to see others succeed at the language, and could do a better job than I have of explaining strengths and weaknesses. I'm sure there's the occasional "Hurr, muh language is the best evar" sort that pops up, but there's plenty of room for all of these languages to coexist and in many cases even help to guide the others' language design.