“Rust’s compiler prevents common bugs” So does skill. No offense to you, but, this trope is getting so tiresome. If you like the language then go ahead and use it. What is it with the rust crowd that they have to come acrosslike people trying to convert your religion at your front door?

  • Log in | Sign up@lemmy.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    4 days ago

    I think a bunch of C programmers hate rust passionately because they always looked down their noses at principled languages for being slow.

    Now a principled language is beating them on both speed and safety and it’s as if the jocks lost a baseball game to the nerds who studied dynamics of solids and cut a series of little slots in their bats so that every time they hit the ball it went out of the park.

    So much hate for the clever win over the brute force.

    • PlexSheep@infosec.pub
      link
      fedilink
      arrow-up
      2
      ·
      3 days ago

      Rust is a tiny bit slower in benchmarks with similar implementations, since it has a few more runtime checks, but the difference is minor.

      • Log in | Sign up@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 days ago

        All depends what your trade offs are. “Milliseconds of run time versus months of debugging.” I know one team that were died in the wool C programmers but their baby had one too many security issues and their CTO said they had to reimplement it all in rust. One of them resigned but the others spent ages on it. They hated the borrow checker with a passion, almost as much as they hated the CTO, but after a bit they admitted it had some benefits and in the end they have a love/hate relationship with it. They hate the process still, but they love the result. The Milliseconds vs months quote is from my friend on that team. He said one subsystem had a seriously massive speed boost because they turned off the logging they used to do to recover from some infrequent intermittent bug that simply doesn’t happen any more. They’re proud of what they did.

        • PlexSheep@infosec.pub
          link
          fedilink
          arrow-up
          2
          ·
          2 days ago

          Yes, it’s true and a common trope that you can save development or rather debugging time with Rust, since it guides you in a safer direction.

          • Log in | Sign up@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            For me, it’s all about the maintenance now. If it encourages you to write messy code, you will come to loathe your codebase. If it gives you clean, easy to navigate code you will love it more and more.

            When I was a young programmer I couldn’t abide any boilerplate at all and loved clever magic that made it disappear. Now I don’t mind a bit of boilerplate and hate non-obvious machinery.

            When I was young I bought the promise that object oriented programming would solve the software complexity problem, but now I think that at best it’s neutral and sometimes it makes it worse.