• Juice
    link
    fedilink
    arrow-up
    55
    arrow-down
    1
    ·
    edit-2
    1 day ago

    Why is everyone down on Rust? Seriously. I don’t know it but I’ve considered learning it and it appeals to me and people literally scoff when I mention it. Saw it referred to as a meme language on Lemmy, which is built in Rust. What am I missing?

    • Grandwolf319@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      12 hours ago

      Cause it’s a C++ replacement when said audience never asked for one. It’s great but it’s still waaaayy too early, people need to slowly get comfortable with it.

    • fl42v@lemmy.ml
      link
      fedilink
      arrow-up
      23
      ·
      23 hours ago

      I think ppl just got pissed with the fanboys unironically asking to RIIR everything. The language itself is comfy AF, tho

    • Dessalines@lemmy.mlOP
      link
      fedilink
      arrow-up
      14
      ·
      1 day ago

      I don’t think many ppl are down on rust… it’s won developer’s most favorite to use for like 5+ years now in a row on stackoverflow.

    • Feyd@programming.dev
      link
      fedilink
      arrow-up
      31
      ·
      1 day ago

      I think rust has good ideas and may even become the default systems language in the mid-term. I find it irritating that there is a very vocal subset of rust proponents that tend to insist that every project in every language needs to be rewritten in rust immediately. I suspect that is also why other people are down on rust.

      • Juice
        link
        fedilink
        arrow-up
        5
        ·
        1 day ago

        That makes sense! Thanks for your insight

    • uis@lemm.ee
      link
      fedilink
      arrow-up
      16
      arrow-down
      1
      ·
      1 day ago

      For me “The Critical Flaw” of rust is its compiler. And requirent of 12 GB of disk space to compile just the frontend of compiler. Even GCC will all frontends(C, C++, Ada, Fortran, Modula-2, JIT) requires less space.

      But joke is probably about “rewrite in rust” culture.

      • Juice
        link
        fedilink
        arrow-up
        6
        ·
        1 day ago

        Wow that’s enormous. I’ll have to learn more about that. Thanks for the info!

      • bi_tux@lemmy.world
        link
        fedilink
        arrow-up
        3
        arrow-down
        2
        ·
        23 hours ago

        that’s because Rust is more modern and in modern days we don’t rly have hard disk limitation, also it’s probably because the compiler tells you the solution to most problems

        • WhyJiffie@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          16 hours ago

          and in modern days we don’t rly have hard disk limitation

          well if you are a corporation, that’s true. Otherwise, not much

    • Sl00k@programming.dev
      link
      fedilink
      English
      arrow-up
      16
      arrow-down
      2
      ·
      edit-2
      1 day ago

      Imo it’s bc it’s the new kid on the block. Yes it’s 10 years old but barely becoming common use in production and government mandates are only speeding that up. In actuality it’s a great language and has been hyped for a few years by people who actually use it. Python went through the same thing in the 2010s where devs really tried clowning on it, now it’s used everywhere.

      • Juice
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        1 day ago

        Good to know, I’ve only been a dev since 2019 so I appreciate the long view

    • affiliate@lemmy.world
      link
      fedilink
      arrow-up
      12
      arrow-down
      7
      ·
      1 day ago

      i think it’s mainly people being cranky and set in their ways. they got used to working around all the footguns/bad design decisions of the C/C++ specifications and really don’t want to feel like it was all for nothing. they’re comfortable with C/C++, and rust is new and uncomfortable. i think for some people, being a C/C++ developer is also a big part of their identity, and it might be uncomfortable to let that go.

      i also think there’s a historical precedent for this kind of thing: when a new way of doing things emerges, many of the people who grew up doing it the old way get upset about it and refuse to accept that the new way might be an improvement.

      • Juice
        link
        fedilink
        arrow-up
        5
        ·
        1 day ago

        Is Rust as close to the metal as C? Seems like there would still be a need for C. I could see Rust replacing Java as something that’s so ceremonial and verbose, but from my limited perspective as a sometimes java dev, having only the most glancing experience with C, it seems like C would be hard to replace because of what it is. Buy I honestly don’t know much about Rust either, I just think JS is so finicky and unpredictable whereas web assembly seems extremely fast and stable.

        • frezik
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          16 hours ago

          It’s slightly less close to the metal as C. Array bounds checks are always going to cost you something, for example. However, if you look at the speed of numeric computation in C, Rust, and Go, they’re all in the same order of magnitude performance compared to things like Python or JavaScript (not including things like PyPi, which is C with extra steps).

          • Juice
            link
            fedilink
            arrow-up
            2
            ·
            15 hours ago

            Wow thanks so much for breaking that down for me! The discussions I’ve been having here and the information devs are sharing is really kicking me off the fence about learning Rust

            • frezik
              link
              fedilink
              arrow-up
              2
              ·
              edit-2
              15 hours ago

              Eh, I’d still go for it. I find the Rust compiler tends to amplify my impostor syndrome–it tells you all the ways you are objectively being stupid. I know that’s not really selling it, but it’s doing that stuff for a reason. I’m especially hopeful that it becomes the standard way to do things with microcontrollers; that’s about the only place I write C/C++ at all.

        • Thinker@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          18 hours ago

          I mean, the simple proof is that Rust has been growing by leaps and bounds in the embedded world, which is the closest to bare metal you get. It’s also being used in the Linux kernel and Windows, and there are several projects building new kernels in pure Rust. So yeah, it’s safe to say that it’s as close to the metal as C.

          Also, the comparison to Java is understandable if you’ve only been exposed to Rust by the memes, but it doesn’t hold up in practice. Rust has a lot more syntax than C (although that’s not saying much), but it’s one of the most expressive languages on the market today.

        • themoken@startrek.website
          link
          fedilink
          arrow-up
          7
          arrow-down
          2
          ·
          edit-2
          1 day ago

          Rust can create native binaries but I wouldn’t call it close to the metal like C. It’s certainly possible to bootstrap from assembly to Rust but, unlike C, every operation doesn’t have a direct analog to an assembly operation. For example Rust needs to be able to dynamically allocate memory for all of its syntax to be intact.

          • Ephera@lemmy.ml
            link
            fedilink
            arrow-up
            7
            ·
            23 hours ago

            For example Rust needs to be able to dynamically allocate memory for all of its syntax to be intact.

            Hmm, you got an example of what you mean?

            Rust can be used without allocations, as is for example commonly done with embedded.
            That does mean, you can’t use dynamically sized types, like String, Vec and PathBuf, but I wouldn’t consider those part of the syntax, they’re rather in the std lib…

            • themoken@startrek.website
              link
              fedilink
              arrow-up
              2
              ·
              12 hours ago

              So you’re right that this is a bit arbitrary because the line between the standard lib and the language is blurry, but someone writing Rust is going to expect Vec to work, it doesn’t even require an extra “use” to get it.

              Perhaps a better core example would be operator overloading (or really any place using traits). When looking at “a + b” in Rust you have to be aware that, depending on the types involved, that could mean anything.

              Anyway, I love Rust, it just doesn’t have the 1:1 relationship with the assembly output that C basically still has.