“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?

  • baguettefish@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    23
    arrow-down
    1
    ·
    edit-2
    4 days ago

    i think one factor (though definitely not all) of the dislike is the politics of the project, which are fairly inclusive and kind. some people can’t stomach that. another factor might be that the mere existence of rust implies that a lot of people are not the 100x rockstar developer they might aspire to be. maybe it’s also just a simple change = bad. though i have seen people who dislike rust also gravitate towards zig, and that also has some big differences. maybe it’s a hate towards mozilla? when i talk to people who hate rust they don’t articulate themselves well, so i have to speculate and i get nowhere. one thing i do hear about rust a lot is that it’s ugly, but I don’t really get that. i can’t personally fathom disdaining to use a tool simply because of looks, and i also don’t personally think rust is ugly.

    • 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
              ·
              1 day 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.

    • kurwa@lemmy.world
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      4 days ago

      Correct me if I’m wrong because I never used Zig before, but I believe people like it because of the transparency in what the code is doing, like there’s no hidden functionality. Where as Rust definitely does do that.