sightbroke 7 hours ago

Pardon my ignorance and I understand the appeal of keeping everything within one cohesive language, but are some of the these core utilities really being made "safer" by rewriting them in rust?

I mean, is 'cp' really unsafe in C and will be magically safe in Rust?

Or is this partly to appeal to the comfort of having one uniform language?

Admittedly in the long term regardless these rewrites may well pay off quite well.

  • steveklabnik 7 hours ago

    There's some information from the project on this here: https://uutils.github.io/blog/2025-02-extending/

    • sightbroke 6 hours ago

      I see they state:

      "Is it really safer?

      While Rust is better than C/C++ for security, these programs are often already very safe. Security is not the key argument for us in this rewrite even if Rust provides some automatic improvements."

      I think that answers my question. Thanks!

  • empath75 6 hours ago

    I think the safety of those tools as a static, unchanging code base is not a major concern, but when you're writing and maintaining code, every code change is a potential source of new bugs, and Rust does eliminate large classes of bugs as things to be worried about.

    That said, I actually think that it's pretty likely that switching to using the Rust tools is going to turn up quite a few new non-memory-safety-related (ie: logic) bugs.