News for hackers. Stuff that matters.
Re:Google Launches Carbon, an Experimental Replacement for C++ by sudosysgen on Monday July 25, 2022 @11:01AM (#32225309)
Instead Rust has a borrow checker, procedural macros of different types, half a parallel language when using unsafe, etc...

And by the way, Rust does have pointer arithmetic.

It's not clear to me that either is simpler or easier. The big point of Rust is really memory safety, not ease of use or simplicity.

Re:Google Launches Carbon, an Experimental Replacement for C++ by tialaramex on Monday July 25, 2022 @01:43PM (#32228090)
Rust's slogan is: "A language empowering everyone to build reliable and efficient software."

Now, that "everyone" there has a bunch of social consequences, like you're going to see a bunch more diversity in Rust's community than we've traditionally seen in this sort of endeavour. But it also means technically there's work put in to actually deliver on the slogan by making it easier for everyone to use the language.

This is how Rust has those excellent compiler diagnostics. That's not an accident, it's part of "empowering everyone". Experts could manage with a compiler that outputs terse errors like "Syntax error, line 14" but that's not going to empower everyone.

Re:Google Launches Carbon, an Experimental Replacement for C++ by moomin on Monday July 25, 2022 @01:46PM (#32228161)
Yes, but C++ isn’t complex because it set out to be complex, it’s complex because they’re constantly trying to enhance it whilst maintaining backwards compatibility with a system that was originally basically just a big set of CPP macros.

Rust has a heck of a lot of features, but it’s got nothing like the “too perfect forwarding” problem of the language behaviour just being plain hard to predict.

Re:Google Launches Carbon, an Experimental Replacement for C++ by pitaj on Monday July 25, 2022 @11:51AM (#32226146)
Rust doesn't have pointer arithmetic in the same way that C and C++ do. All you can do with pointers in rust is offset them.