3
you are viewing a single comment's thread
view the rest of the comments
[-] FizzyOrange@programming.dev 19 points 3 days ago

Doesn't say anything you didn't already know. Probably written with AI.

Also the conclusion is wrong:

Neither approach is universally superior.

The Rust approach is obviously superior.

[-] soulsource@discuss.tchncs.de 6 points 2 days ago* (last edited 2 days ago)

I'm willing to bet that it's AI. It soft-contradicts itself quite often, emphasising that C++ is "Performance First", but then also claiming stuff like "Rust achieves memory safety with zero runtime overhead".

Edit: What I am trying to say is that I have seen text like this in LLM output quite often, if the LLM is mixing text from different sources in its training data.

Also, there is just wrong stuff in the text itself, not only in the conclusion. For instance the claim that Rust's type system makes data races impossible. They are easier to avoid, but there is nothing stopping you from writing data races... Here, for instance, have a data race in safe Rust...

[-] FizzyOrange@programming.dev 4 points 2 days ago

That is not actually a "data race". It is a race condition for sure, but a data race is a very specific thing - where two threads access the same location at the same time and at least one is a write.

That could be unsafe in Rust because it might lead to reading "impossible values" like an enum that isn't equal to any of its variants. Therefore safe Rust must prevent it or there's a soundness hole.

[-] soulsource@discuss.tchncs.de 2 points 2 days ago

Oh, sorry. I stand corrected then.

[-] BB_C@programming.dev 1 points 2 days ago

The whole premise is wrong, since it's based on the presumption of C++ and Rust being effectively generational siblings, with the C++ "designers" (charitable) having the option to take the Rust route (in the superficial narrow aspects covered), but choosing not to do so. When the reality is that C++ was the intellectual pollution product of "next C" and OOP overhype from that era (late 80's/ early 90's), resulting in the "C with classes" moniker.

The lack of both history (and/or evolution) and paradigm talk is telling.

this post was submitted on 25 Dec 2025
3 points (55.2% liked)

Rust

7606 readers
2 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS