7 ms·
> C++ is fast, but aside from a shared value around performance, it has fairly little in common with the ideas that Rust is built on. The core guidelines are v
by santaclaus 9y ago
> C++ is fast, but aside from a shared value around performance, it has fairly little in common with the ideas that Rust is built on.
The core guidelines are very similar to Rust, in spirit and intent.
- steveklabnik 9y ago... but the details are very, very different. Unless I've missed significant revisions, data races and concurrency are a non-goal of the Core Guidelines, but are central to Rust. That said, I always welcome tooling to make C++ safer; the end game is making programs better, not language partisanship!
- swift 9y agoI will say this for C++: post C++11, it’s one of the few languages in widespread use to have an explicitly defined memory model. The people working on C++ definitely do care about concurrency and parallelism. I’d still choose Rust over C++ for that kind of program any time I was given the choice, though. =)
- steveklabnik 9y agoAbsolutely, I'm not saying they don't care; it's that solving that problem is an explicit non-goal of the GSL work. The C++ committee is clearly working on concurrency related things, I was reading the various coroutines TSes recently in fact, as we're working on similar things in Rust.
- duneroadrunner 9y agoSaferCPlusPlus[1] is the library that's probably closer to Rust "in spirit and intent". And more importantly, safety effectiveness. And it does address the data race issue. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus https://github.com/duneroadrunner/SaferCPlusPlus