News for hackers. Stuff that matters.
Re:Undefined Behavior in C and C++ by bch on Tuesday August 12, 2025 @03:58AM (#44873586)
> Rusts tooling is hands down better than C/++ which aids to a more streamlined and efficient development experience

Would you expand on this? What was your C tooling/workflow that was inferior to your new Rust experience?

Re:Undefined Behavior in C and C++ by simonask on Tuesday August 12, 2025 @05:42AM (#44874260)
Not the GP, but the biggest one is dependency management. Cargo is just extremely good.

As for the language tooling itself, static and runtime analyzers in C and C++ (and these are table stakes at this point) do not come close to the level of accuracy of the Rust compiler. If you care about writing unsafe code, Miri is orders of magnitude better at detecting UB than any runtime analyzer I've seen for C and C++.

Re:Undefined Behavior in C and C++ by johnisgood on Tuesday August 12, 2025 @06:34AM (#44874546)
Pacman is extremely good, too, for C. :)
Re:Undefined Behavior in C and C++ by simonask on Tuesday August 12, 2025 @10:38AM (#44876805)
Pacman solves a different problem. Cargo manages your project's dependencies, not system packages.
Re:Undefined Behavior in C and C++ by johnisgood on Tuesday August 12, 2025 @10:51AM (#44877005)
I know, but often that is all you need for C.
Re:Undefined Behavior in C and C++ by uecker on Tuesday August 12, 2025 @10:57AM (#44877080)
I do not think package management should be done at the level of programming languages.
Re:Undefined Behavior in C and C++ by adwn on Wednesday August 13, 2025 @05:02AM (#44886164)
Strictly speaking, Cargo isn't part of the Rust programming language itself. Cargo is a layer on top of Rust, and you can use the Rust compiler completely independently of Cargo. I think bazel, for example, can compile and handle dependencies without Cargo.
Re:Undefined Behavior in C and C++ by simonask on Wednesday August 13, 2025 @05:48AM (#44886451)
I agree, it should be done at the project level - that is, if you care about portability, reproducibility, deployment, etc.