• RumRunningDevil@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    I’m not a rust programmer, can anyone with experience in systems programming explain a legitimate use case for the uutils other than weakening the GPL? The auther even admits that several coreutils are still GNU in 26.04 which begs one to ask “why the rewrite?”

    • unknownuserunknownlocation@kbin.earth
      link
      fedilink
      arrow-up
      0
      ·
      9 hours ago

      The goal is to create a more secure version of the program. Since (safe) rust eliminates entire classes of security relevant bugs, a rust version has the potential to be much more secure that the C version. And since rust can eliminate entire classes of bugs, we can put more energy into finding bugs like the ones presented in the article.

      The weaker license is unfortunate, though.

    • sidelove@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 days ago

      Wait, what? How? It compiles down to bare metal without a runtime. People write OSes and program microcontrollers with it. For any arbitrary C program, it’s possible to write Rust code such that it compiles down to the same bytecode. Am I missing something?

          • MonkderVierte@lemmy.zip
            link
            fedilink
            English
            arrow-up
            0
            ·
            edit-2
            11 hours ago

            One you use to manipulate the system / solve problem efficiently, vs. creating GUIs. Which has heavy repercussions on what types of developers use it, how the ecosystem and language is built. One metric to distinguish them is new features / year; admin + hacker types want a stable & clever interface, companies and UI devs new features. And yeah, Rust is a bit of both of them, but has all the characteristics of the later.

            I have the feeling, you soon need a meta-language or extensive IDE-help to even use it. Just like C++.

            edit: In hindsight, this sounds more silly than i thought. There was a great article about it i can’t find anymore, with the conclusion, that Rust is no systems language by that metric.