Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

Anon hates C++

⁨486⁩ ⁨likes⁩

Submitted ⁨⁨1⁩ ⁨week⁩ ago⁩ by ⁨Early_To_Risa@sh.itjust.works⁩ to ⁨greentext@sh.itjust.works⁩

https://sh.itjust.works/pictrs/image/da459ab4-2892-4721-a2f4-08279f1b6c23.png

source

Comments

Sort:hotnewtop
  • red_tomato@lemmy.world ⁨1⁩ ⁨week⁩ ago

    The whole point of C++ is to graft Object Oriented Programming into C like some Frankenstein’s monster because OOP was the big hype.

    C++ being performant is mostly a side effect of it being based on a language created when programs were still punched into paper cards.

    source
    • Eggymatrix@sh.itjust.works ⁨1⁩ ⁨week⁩ ago

      That was the point 20 years ago. These days it is pivoting to compile time functional programming

      source
      • Hadriscus@jlai.lu ⁨1⁩ ⁨week⁩ ago

        What does that mean ?

        source
        • -> View More Comments
      • iknewitwhenisawit@fedinsfw.app ⁨1⁩ ⁨week⁩ ago

        C++ has a lot of terrible language features because it would allow some 8 bit embedded CPU to dynamically change from LSB to MSB ordering in the middle of decoding some input. 🙈

        source
      • protogen420@lemmy.blahaj.zone ⁨1⁩ ⁨week⁩ ago

        does anyone actually follow whatver the comittee sees as best practices?

        source
        • -> View More Comments
  • resipsaloquitur@lemmy.cafe ⁨1⁩ ⁨week⁩ ago

    Go ahead, write your 3D engine in Python. I dare you.

    source
    • hoshikarakitaridia@lemmy.world ⁨1⁩ ⁨week⁩ ago

      Never underestimate my self-loathing and my desire to write the most unusable piece of shit.

      source
    • chicken@lemmy.dbzer0.com ⁨1⁩ ⁨week⁩ ago

      How many games write their own 3D engine anymore

      source
      • mycodesucks@lemmy.world ⁨1⁩ ⁨week⁩ ago

        Not enough. It’s why they all need so many fucking resources and why you need to spend $1500 on a video card for a game that could run on a 15 year old GeForce if the developers put any effort into optimizing anything.

        source
        • -> View More Comments
    • sp3ctr4l@lemmy.dbzer0.com ⁨1⁩ ⁨week⁩ ago

      You know the majority of LLM stacks are in python, right?

      We already live in that world, basically.

      Python LLM training produces models that are then refined into things that 3D engines plug into to do AI upscaling and framegen, and then different python trained models use more python to interface with MCPs to write more slop extentions and games and other programs.

      Its nearly literally an ouroboros.

      source
      • fibojoly@sh.itjust.works ⁨5⁩ ⁨days⁩ ago

        It’s funny that you think Python is anything else than a wrapper for real languages that get shit done.

        source
        • -> View More Comments
    • criss_cross@lemmy.world ⁨6⁩ ⁨days⁩ ago

      Screams in GIL

      source
    • justlemmyin@lemmy.world ⁨1⁩ ⁨week⁩ ago

      3D engine in LOLCODE or bust

      source
  • Wirlocke@lemmy.blahaj.zone ⁨6⁩ ⁨days⁩ ago

    I love C++ as a god defying monument of backward compatibility. You can go through the versions like an archeologist looking through layers of rock to see what trends of that time. There’s not only one way to do the thing you want, but several, too many ways, and no one can stop you from frankensteining pieces together that were never meant to be.

    If C is meant to be a basic toolbox, C++ is your dad’s disorganized tool cabinet he keeps in the garage. Overflowing with barely used, highly specific, and redundant tools.

    source
    • fibojoly@sh.itjust.works ⁨5⁩ ⁨days⁩ ago

      And every one of those tools can kill you.

      source
  • xep@discuss.online ⁨1⁩ ⁨week⁩ ago

    The point of C++ isn’t optimization, but rather that one only pays for what one uses. Experience in C++ leads to using the features of C++ that are appropriate and conscientiously eschewing the rest.

    source
    • 87Six@lemmy.zip ⁨1⁩ ⁨week⁩ ago

      I understand C++ better than what C++ coders say online fr

      Much love

      source
    • LodeMike@lemmy.today ⁨1⁩ ⁨week⁩ ago

      Unless you call an stdlib function and suddenly 10,000 call instructions.

      source
  • MonkderVierte@lemmy.zip ⁨1⁩ ⁨week⁩ ago

    The point of C++ is C, but with extra footguns.

    source
    • resipsaloquitur@lemmy.cafe ⁨6⁩ ⁨days⁩ ago

      Try OO C and you see why C++ is the way it is.

      Stroustrop’s first cut of C++ was called “C With Classes.”

      source
    • thebestaquaman@lemmy.world ⁨6⁩ ⁨days⁩ ago

      Footgunscannons

      source
  • deathmetal27@lemmy.world ⁨1⁩ ⁨week⁩ ago

    By that logic, if your English language essay gets an F it’s the English language’s fault?

    source
  • eestileib@sh.itjust.works ⁨6⁩ ⁨days⁩ ago

    I got paid good money to write C++ for several years.

    It is a shit language, and people love it for the same reason that they love being in a fraternity with hazing rituals.

    source
    • tetris11@feddit.uk ⁨5⁩ ⁨days⁩ ago

      For the free beer?

      source
      • eestileib@sh.itjust.works ⁨5⁩ ⁨days⁩ ago

        Sounds like frats have moved on to ketamine, which is even more depressing to me somehow

        source
  • BaraCoded@literature.cafe ⁨6⁩ ⁨days⁩ ago

    Isn’t that the role of Rust?

    source
    • Tattorack@lemmy.world ⁨6⁩ ⁨days⁩ ago

      This feels like that XKCD comic.

      “There are 14 competing standards…”

      source
    • ILikeBoobies@lemmy.ca ⁨6⁩ ⁨days⁩ ago

      Not really, the role of Rust is type/memory safety, you can still have unoptimized games. Also Rust is more complicated.

      Verse, Scratch and GDScript are video game scripts.

      source
    • perviouslyiner@lemmy.world ⁨6⁩ ⁨days⁩ ago

      Would be a bit weird expecting all those C++ people to use a language that will be invented 27 years after the language they chose to learn?

      source
    • cobalt32@lemmy.blahaj.zone ⁨6⁩ ⁨days⁩ ago

      Yes

      source
  • DupaCycki@lemmy.world ⁨1⁩ ⁨week⁩ ago

    You’d be surprised how few game devs actually touch any code. It’s not just artists or designers. Even the ‘programmers’ increasingly rely on visual tools instead of coding.

    source
  • Kolanaki@pawb.social ⁨4⁩ ⁨days⁩ ago

    I like C++ but then again, I am just a modder so I have no idea what it’s actually bad at since it does everything I need and it’s easy. I’m not writing whole big programs that serve a huge company or anything. Hell, I ain’t even making entire games.

    source
  • lessthanluigi@lemmy.sdf.org ⁨6⁩ ⁨days⁩ ago

    Anon is my C language programming college professor. He was also a linux evangelist, and got me to start daily driving/dualbooting linux.

    source
  • Konaber@discuss.tchncs.de ⁨6⁩ ⁨days⁩ ago

    Fuck C++. IMO the Microsoft Windows of the programming languages.

    source
    • Dreamcatcher@lemmy.zip ⁨6⁩ ⁨days⁩ ago

      this is why we should only use python :)

      so great for programming, with no downsides. why hasn’t anyone thought of this before?

      i’m a genius, i know.

      source
  • chunes@lemmy.world ⁨6⁩ ⁨days⁩ ago

    Has anyone ever invented actual good modern language yet?

    Yes, it’s called Odin.

    source
  • FavouriteShapes@sh.itjust.works ⁨6⁩ ⁨days⁩ ago

    Still need to learn this one but I have no time on top of uni course. I guess I’ll pick it up next July

    source