• JATtho@sopuli.xyz
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    2 months ago

    C++: you sure you want to do this? This will either: a) blow your foot off b) be too fast to be measured in micro-benchmarks.

    b. B. B. a. then B.

    You have chosen to simultaneously blow your arm off and be the fastest code thing on the planet. Congrats. Yes.

  • Noxy@yiffit.net
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 months ago

    These trolley problem memes are getting harder and harder to understand

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      2 months ago

      All the noise I see is from people insisting that Rust developers are noisy, and their favorite language is much better types-don’t-solve-bugs-undefined-behavior-is-fine-and-memory-errors-are-not-a-problem.

      Actual Rust developers have been silent for years.

      • MajorHavoc@programming.dev
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        2 months ago

        I once shared that I had a bad first experience with Rust and no less than four Rust developers arrived to inform me that I was either hallucinating, or bad at programming, or both.

        I haven’t had this much fun winding up a sensitive community since I shared how I really felt about Java Spring, in it’s heyday.

        • pooberbee@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          2 months ago

          I suspect there are a lot of “Rust devs” that are little more than kool-aid drinkers. Common refrains are that Rust is the fastest language, most type-safe language, and most powerful language. Rust certainly seems to move the state of the art forward in some ways, but you can still write garbage code in it.

          I’ve worked with lots of different people in lots of different languages, and I think I’d rather good people in a bad language than the other way around by a mile.

          • Sleepless One@lemmy.ml
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 months ago

            You can write garbage code in rust, but the compiler will beat you with a stick for doing so.

    • suy@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      2 months ago

      Yes. There is already an answer with many votes saying so, but I’ll add myself to the list.

      I don’t have to like all the language, and not even all of the standard library. I learnt C++ with the Qt library, and I still do 99% of my development using Qt because it’s the kind of software that I like to write the most. I can choose the parts that I like the most about the full C++ ecosystem, like most people do (you would have to see how different game development is, for example).

      I’m also learning Rust, and I see nothing wrong with it. It’s just that I see C++ better for the kind of stuff that I need to write (at this time at least).

      • refalo@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        personally I just can’t get over the syntax to even try rust. to me it just looks terrible. I know not everybody agrees though. that and having even longer compile times and no mature gui framework

  • corroded@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    C++ is just as “safe” as Rust if you use modern language features (std::unique_ptr, for instance). I would argue that anyone who says Rust provides better memory safety than C++ most likely is not familiar with modern C++ and still sees the language as “C with classes.”

    • RustyWizard@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      I would argue that anyone who says C++ provides a similar level of memory safety as rust hasn’t done serious development work in either language.

  • Vivendi@lemmy.zip
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    2 months ago

    Seriously. Try publishing anything not written in Rust nowadays and you WILL get multiple “bUt baut mUh rUsT??? 1?1!! 11!1!” Comments.