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

  • IrateAnteater@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    At this point, I’ve seen far more people being almost violently anti-rust than I’ve seen people being weirdly enthusiastic about rust. If Rust people are Jehovah’s Witnesses, then a lot of the anti-Rust people are ISIS.

    • wer2@lemmy.zip
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Try suggesting people try out a garbage collected language and see how the crabs come to feast. :P

    • It’s like the people complaining about SJWs and cancel culture. Sure, some people are annoying and use these things to harass others, but the vast majority are just normal people who care about certain things. But people on the other side, when they can’t provide a good argument against them, start to vilify the people themselves. It’s similar to how right wingers cry about decorum when they’re more likely to vote for rapists.

      I must admit that I had given into this anti-SJW hate at some point in my late teens, but I luckily realized how I was acting like a little bitch, hating on people I don’t even know just because they’re passionate about equality. The funny thing was, I still believed in their causes, but was pretty much brainwashed into believing that they’re hurting the cause by being vocal. It’s weird how dumb we often are.

    • baguettefish@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year 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.

      • kurwa@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year 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.

      • Log in | Sign up@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year 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
          0
          ·
          1 year 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
            0
            ·
            1 year 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
              0
              ·
              1 year 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.

  • mokus@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    “Should I use rust or c++” is the wrong question IMO. The right question is “do I want the code I run, written by thousands or millions of randos, to be written in rust or c++”.

  • hedge_lord@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Unlike you babies I have Personal Responsibility and I write all of my code directly in assembly the way reagan intended. I don’t need guard rails and I’ve never had any issues with it because my Personal Responsibility keeps me safe

  • CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 year ago

    I’d guess it’s Rust fan’s genuine belief that they have something revolutionary.

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

    If you’re that much of a galaxybrain, you should be writing everything directly in opcodes. In reality, nobody is and we invented languages to help us perform an activity the human brain is very poorly suited to.

    This attitude also means that OP stares at their own obvious bugs on a screen all day and then decides they’re great, which is frightening level of detachment from reality to me.

    • LeFantome@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Sadly, it is a detachment from reality that is entirely normal, even typical. In all walks of life.

      What I still find surprising, even though normal, is how technical people can push actual facts and evidence right out of their world view.

      Sure, 70% of the bugs in C++ code bases are memory rated according to multiple sources. So let me aggressively and confidently berate this idiot that says the Rust compiler is doing something useful.

      You do not have to use either language to see how idiotic this is. Even if you accept that this guy has “the skill” to make compiler help redundant, he has no point at all unless he thinks that “typical” C++ users have that same level of skill. And, provably and trivially researched—they do not. Being this wrong makes him, as self-evidenced, incompetent by definition.

      All he proves in the end is that he is angry (and I guess not a fan of Rust).

      “Angry and incompetent” is sadly a much more common trope than the ones he tires off.

      • CanadaPlus@lemmy.sdf.org
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Oh yes, it’s so very human nature. But damn.

        Most coders get the message at least a bit, I think. Other engineers have a reputation for massive egotism, software engineers don’t really.

        • qaz@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          Other engineers have a reputation for massive egotism, software engineers don’t really.

          That’s a joke right?

          • CanadaPlus@lemmy.sdf.org
            link
            fedilink
            arrow-up
            0
            ·
            1 year ago

            Well, it’s possible I’m missing something, or that there’s a different reputation actually in the industry, since I’m an amateur. The first stereotypes I think of are unkempt, caffeine-dependent and socially inept.

            When I’ve seen people asking for help online, traditional engineers seem much more likely to flex their credentials and then not actually answer. Although there’s definitely software examples as well.

      • squaresinger@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        There’s some weird effects with language-specific bug rates.

        In old Java, most uncaught exceptions are NullpointerExceptions, because most other exceptions used to be checked. Can’t not catch a checked exception.

        So they made Kotlin, where NullpointerExceptions are the only type of checked exceptions. Now there are no unhandled NPEs anymore but now you get tons of other exceptions.

  • smiletolerantly@awful.systems
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago
    • if your skill is so great that you would never cause the kinds of bugs the rust compiler is designed to prevent, then it will never keep you from compiling, and therefore your complaint is unnecessary and you can happily use rust
    • if you do encounter these error messages, then you are apparently not skilled enough to not use rust, and should use rust

    In summary: use rust.

    • F04118F@feddit.nl
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      I don’t agree with /u/red-crayon-scribbles ’ approach to memory safety, but what you’re saying isn’t entirely true either.

      It is possible to manipulate memory in ways that do not conform to Rust’s lifecycle/ownership model. In theory, this can even be done correctly.

      The problem is that in practice, this leads to the following, many of which were committed by some of the most highly skilled C developers alive, including major kernel contributors:

      https://xeiaso.net/blog/series/no-way-to-prevent-this/

      • Midnitte@beehaw.org
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        …echoing statements expressed by hundreds of thousands of programmers who use the only language where 90% of the world’s memory safety vulnerabilities have occurred in the last 50 years, and whose projects are 20 times more likely to have security vulnerabilities.

        ooof.

    • jatone@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      it always astounds me how utterly arrogant people are about their own abilities. (myself included) but seriously who the fuck doesnt like having something that just prevents you from doing things that are obviously broken and not going to work?

    • Decq@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      This so true, every one complaining that the borrow checker is annoying isn’t apparently aware what they used to do was inherently flawed. Sure there a some, though rare, false positives. But they are easily mitigated. These people are exactly that what they themselves are complaining about, elitist.

      • smiletolerantly@awful.systems
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Yeah. Once you get used to the (verbose, but by no means unergonomic!) syntax, you’ll probably never be happy with another language again. Job-wise, I am currently mostly using Go, and while also a nice language, I miss the confidence and security I took for granted with rust.

        Not to mention just how goddamn expressive rust can be. Let bindings like if ok/err, else return? Assign from a match on Some(Ok(x))? Filter, map, and friends on any iterator? Oh my GOD the error handling with the question mark iterator? 100% confidence that if it compiles, no error, possible null value, or case is unhandled.

        And all this WHILE giving you the amazing security benefits!

        Ah, damn, caught me proselytizing again.

  • Scoopta@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    While I do totally see the advantages of rust and agree skill is not a solution given people make mistakes…I do agree a lot of the very vocal rust advocates do act almost religious and it is an annoying turn off.

    • daniskarma@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Do you have time to talk about our lord Rust? Did you know it died for our bugs so we don’t have to debug them at run time?

      • zarkanian@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        I’ve never run into a Java evangelist. Every opinion I’ve ever heard about Java is something like “Yeah, this sucks”. I always thought that people put up with it because it’s write-once, run-anywhere, but so is, y’know, Python.

        • ZILtoid1991@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          Early on, Java was advertized as the next great thing, ending headaches from system development, porting, and “promoting good programming practices through OOP”.

          Then people increasingly got tired of OOP and the speed penalty of both that paradigm and the JVM, not to mention more and more education institutes started to claim Java was too hard for beginners, and that Python would be better.

          Now we have Rust evangelists promoting the language as the next great thing, ending headaches from memory safety issues, porting (if you target WASM and pack your app into a Chromium instance), and “promoting good programming practices through FP”.

          Time is truly a flat circle…

        • Valmond@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          There was a saying back in the day, roughly: “java can run on all platforms like anal sex works on all genders”.

          Python is slow but fantastic when it comes to interoperability IMO and is just complex enough that you can get the job done. I just hope they’ll won’t complexify it into oblivion, it’s a really neat language. IMO.

      • LeFantome@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Java was created so that teams of intermediate skill programmers could maintain large, long-lived code bases. And it did its job incredibly well.

        If that is not your use case (or you do not want to admit that you are such a programmer), it may not be your favourite language.

        I always like C# far better. It may be my favourite language overall. It has a bit more headroom and was designed somebody far more skilled. But it was designed to compete directly with Java. So, you know who it was built for.

  • Omega (she/her)@beehaw.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    I mean… they do kinda have a point on the last part. I’m no programmer or coder. I can’t code for shit. I don’t know a lot about development. And even I have the feeling that Rust people, they’re kinda like NixOS people a while back, they never shut the fuck up about it. :3

    They’re definitely enthusiastic, I’ll give them that. But so many projects are sold solely on the fact that they are made with Rust, even though it means absolutely nothing to most users.

    I remember when System76 announced that they were making a new desktop environment and the only thing they basically said about it back then was that it was made with Rust and it felt like my corner of the internet lost their mind about it like they had announced the second coming of Christ or something.

  • ExLisper@lemmy.curiana.net
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    The really annoying part is all the people saying that you shouldn’t like Rust because actually it’s not magically bug free. Yeah, no shit. No one who touched Rust claims it lets you write bug free code. People like Rust because it’s modern, fast, has great tooling, great documentation and really nice features like Traits and Algebraic data types. Memory and thread safety is just a bonus.

      • LeFantome@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Some bugs. I have never heard anybody remotely skilled in Rust claim that it prevents bugs in general.

        Python prevents many classes of bugs too (compared to C++). And any statically typed compiler will prevent some bugs that Python allows. Not too controversial I hope. Of course, unlike Rust, Python is unsuitable for many C++ use cases for other reasons.

        I do not use Rust and my self-image is not tied to C++. So I do not have to get upset when people explain the benefits of Rust.

        Rust is not perfect. That is why I do not use it. But it is not some elaborate lie either. It was designed to do certain things, and it does.

      • ExLisper@lemmy.curiana.net
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        It’s hard to argue with that statement. Like, literally, I have no idea who rust evangelists are, where to look for them and how to find out what “most” of them think about anything.

        • banshee@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          Yep - I don’t really know who these evangelists are either. I have read about “fearless concurrency,” which seems pretty spot-on.

      • ryathal@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        Any type safe language will help you prevent a wide range of bugs that non safe languages need tons of tests to detect.

  • masterspace@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Skill issue takes are dumb as fuck. It’s just republican personal responsibility takes using different language.

    Intelligent people focus on producing systemically better outcomes.

  • limer@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    10 months, 2 weeks, 6 days and 12 hours since I was saved and accepted the one true language (not)