• ronigami@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    2 hours ago

    There’s still nothing wrong with reimplementations. It’s like saying don’t build houses because you’ll have to make repairs.

  • embed_me@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    5 hours ago

    I don’t think I’ve seen more vocal sponsors of any language except Rust. With the high barrier to entry and relatively greater developer effort, I am curious to see what place it occupies in over the long term.

  • anyhow2503@lemmy.world
    link
    fedilink
    arrow-up
    31
    arrow-down
    1
    ·
    9 hours ago

    Mozilla, where Rust was originally conceived, have already talked about this risk factor ages ago when they were still working on Servo. Reimplementing battle-tested software in a different language can result in logic bugs being introduced, which no programming language can really prevent. Many times they will actually reintroduce bugs that have already been historically fixed in the original implementation. This doesn’t invalidate the benefits of moving to a very memory safe language, it just needs to be taken into consideration when determining whether it’s worth the risk or the effort.

    Honestly I have no idea whether sudo-rs is a good idea or not, but I have my doubts that any of the other people (especially the very vocal kind) chiming in on this do. Any time Rust is involved in the Linux community, a lot of vocal critics with very little knowledge of the language or programming in general seem to appear.

    • Euphoma@lemmy.ml
      link
      fedilink
      English
      arrow-up
      7
      ·
      8 hours ago

      This is why its generally better to only write new code in more memory safe langs instead of rewriting everything

    • naught101@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      5 hours ago

      It’s a generally applicable lesson in why it’s NOT a good idea to change things for the sake of it though (chesterton’s fence, but where most of the actual bits of fence are invisible).

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      6
      ·
      8 hours ago

      Contrary to popular belief, it is possible to write software in C that is very secure. It takes thought but C has the edge with its small footprint and system integration

      • sabin@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 hours ago

        Yea I mean it’s possible, but the sooner you bite the bullet and use a more modern language, the sooner you’ll get back to the same level of maturity and start having productivity dividends being paid out thanks to things like being able to get your compiler to prevent use after free bugs and the like.

        Not sure how much sudo specifically needs this, maybe new commits are rare. As long as it stays out of LTS for the time being I’m all for it though.

        Also not quite sure what you mean by “footprint”

        Are you talking about the binary size or the fact that C has a tiny and straightforward language spec?

      • pivot_root@lemmy.world
        link
        fedilink
        arrow-up
        9
        arrow-down
        1
        ·
        5 hours ago

        Contrary to popular belief, it is possible to write software in assembly that is very readable. It takes thought but assembly has the edge with its miniscule footprint and zero-dependency runtime.

        • Possibly linux@lemmy.zip
          link
          fedilink
          English
          arrow-up
          3
          ·
          4 hours ago

          I wouldn’t go that far

          The problem with assembly is that it is almost impossible to optimize it as a human. Way back in the day instruction sets were written for humans but these days it is highly unlikely that you will be able to write assembly that can outperform a compiler. The reason primary has to do with pipelining and caching since modern CPUs are extremely complex.

  • RustyNova@lemmy.world
    link
    fedilink
    arrow-up
    35
    arrow-down
    3
    ·
    10 hours ago

    Canonical should really wake up and stop thinking that rewriting in rust is a magical way to remove bugs.

    Sure the rust rewrite will surely be easier to maintain and less error prone (Assuming the code is idiomatic), but you can’t rewrite software maturity.

    They should put it behind a checkbox instead of shoving it down anyone’s throat. They are literally testing in prod

    • ExLisper@lemmy.curiana.net
      link
      fedilink
      arrow-up
      1
      ·
      3 minutes ago

      Yes, because normal sudo never had bugs

      One of the vulnerabilities has remained unnoticed for over 12 years.

      By software maturity you mean that the bugs are hitting puberty?

    • Kwdg@discuss.tchncs.de
      link
      fedilink
      arrow-up
      17
      ·
      9 hours ago

      But that is literally what the 25.10 is for, to test in prod. So that those bugs are fixed in the upcoming LTS

      • sik0fewl@lemmy.ca
        link
        fedilink
        arrow-up
        1
        arrow-down
        3
        ·
        6 hours ago

        They really should not be testing it at all. It’s not even feature complete, let alone mature.

    • BlueBockser@programming.dev
      link
      fedilink
      arrow-up
      22
      ·
      10 hours ago

      We have yet to see if they’ll stick to the Rust implementations for 26.04. If you’re running non-LTS Ubuntu in prod, that’s not on Canonical…

      If we expect software like sudo to stick around for decades to come, a transition phase like this might very well be worth the investment.