Ask HN: Are there any good reasons to use C++ over Rust for new projects today?
21–30 of 92 posts
Re: Ask HN: Are there any good reasons to use C++ over Rust for new projects today?
#22The benefit of using Rust is that management of 3d party libraries compared to C++ is a lot easier with cargo, so you can do things quicker. The downside to using Rust is that its still an evolving language so you may have to refactor your code down the line. Generally Rust use case is targeted towards enterprise software, where you have lots of people working on it, and it needs to be fast, and you want to minimize…
In rust it's mainly been nightly stuff getting merged to stable, pre-1.0, and async. Much more stable overall.
Re: Ask HN: Are there any good reasons to use C++ over Rust for new projects today?
#23Rust has a method for enforcing better memory safety. That is great for deployed applications, but can be annoying when you’re still exploring / mutating your code to figure out the right shape of things.
Re: Ask HN: Are there any good reasons to use C++ over Rust for new projects today?
#24Re: Ask HN: Are there any good reasons to use C++ over Rust for new projects today?
#25I recently developed an oil and gas derivative tool in Rust. IMO Rust has a long way to go. It reminds me of OCaml. I spent 2 years developing a Compliance System on DEC/OSF1 in OCaml. We made the mistake of adopting that language too early. Also, the C++ community is a lot more tolerant. A big plus for C++.
Re: Ask HN: Are there any good reasons to use C++ over Rust for new projects today?
#26This doesn't mean I'm necessarily advocating for c++ or rust, but c++ definitely has advantages over rust, even if they're not just intrinsic.
Re: Ask HN: Are there any good reasons to use C++ over Rust for new projects today?
#272. Can't speak to your situation, and in any case Rust and its "developer experience" are always evolving/improving.
3. If Rust is an option, choose Rust over C++. That's an opinion, but it's quite firmly held.
Re: Ask HN: Are there any good reasons to use C++ over Rust for new projects today?
#28Consider cross-platform -ness. For example, if you make a new app with domain logic in C++, you can build it on iOS through Swift/Objective-C++ >> C++, or on Android through Java JNI >> C++, or on React Native through JavaScript Interface (JSI) >> C++, or on Linux through wxWidgets >> C++, or... etc. Other than that, Rust is a great language with a great compiler eliminating whole categories of bugs possible with C++…
I don't disagree that broader platform support is a reason to choose C++, but Rust is just as capable at integrating with the specific platforms you're talking about.
Maybe it’s possible but definitely not as straightforward to use rust on iOS. Compared to C++.
Re: Ask HN: Are there any good reasons to use C++ over Rust for new projects today?
#29Doesn't really make sense to take a productivity hit for small gains in a context where safety isn't a necessity.
Just two cents from a junior person :)
Re: Ask HN: Are there any good reasons to use C++ over Rust for new projects today?
#30I am a retiring engineer/entrepreneur. I made a lot of money with C++. It is hard for me to tell anyone not to use it. I recently developed an oil and gas derivative tool in Rust. IMO Rust has a long way to go. It reminds me of OCaml. I spent 2 years developing a Compliance System on DEC/OSF1 in OCaml. We made the mistake of adopting that language too early. Also, the C++ community is a lot more tolerant. A big plus…