MTGZone
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
🍹Early to RISA 🧉@sh.itjust.worksM to Greentext@sh.itjust.works · 2 个月前

Anon hates C++

message-square
87
link
fedilink
500

Anon hates C++

🍹Early to RISA 🧉@sh.itjust.worksM to Greentext@sh.itjust.works · 2 个月前
message-square
87
link
fedilink
  • Eggymatrix@sh.itjust.works
    link
    fedilink
    arrow-up
    38
    arrow-down
    1
    ·
    2 个月前

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

    • Hadriscus@jlai.lu
      link
      fedilink
      arrow-up
      23
      ·
      2 个月前

      What does that mean ?

      • Sonnenblume@discuss.tchncs.de
        link
        fedilink
        arrow-up
        28
        ·
        2 个月前

        If you have a constant expression like 1 + 2 in your code you can evaluate it at compile time once and avoid computing it at runtime. You can do that with control flow and much more complex language constructs in C++. If you want to know more about that look into C++ template meta programming, constexpr, and constval.

        • ඞmir@lemmy.ml
          link
          fedilink
          arrow-up
          55
          arrow-down
          1
          ·
          2 个月前

          Or don’t look into those things if you wish to remain sane

          • 87Six@lemmy.zip
            link
            fedilink
            arrow-up
            17
            arrow-down
            1
            ·
            2 个月前

            Templates are cool as fuck tho… For like 5 minutes until you go insane

            • ඞmir@lemmy.ml
              link
              fedilink
              arrow-up
              7
              ·
              2 个月前

              I get that the designers wanted to have compile time static replacement but this was not the way to do it.

          • furry toaster@lemmy.blahaj.zone
            link
            fedilink
            English
            arrow-up
            9
            ·
            2 个月前

            yeah, zig and rust have the same concepts but much better thought and structed

            • Err(()).unwrap()@lemmy.world
              link
              fedilink
              arrow-up
              11
              ·
              2 个月前

              It’s easy to build a well-designed language when you don’t have to work around the mistakes of the past that were too difficult to solve then and too deeply entrenched to change now.

              • furry toaster@lemmy.blahaj.zone
                link
                fedilink
                English
                arrow-up
                12
                ·
                2 个月前

                yes, thats why I dont bother finnishing projects

                • tomenzgg@midwest.social
                  link
                  fedilink
                  English
                  arrow-up
                  12
                  ·
                  2 个月前

                  To be fair, I never fully understood why programming projects have to be native Finlanders, in the end.

        • timochka@lemmy.zipdeleted by creator
          link
          fedilink
          arrow-up
          8
          arrow-down
          1
          ·
          edit-2
          1 个月前

          deleted by creator

        • Hadriscus@jlai.lu
          link
          fedilink
          arrow-up
          2
          ·
          2 个月前

          thank you !

      • ddplf@szmer.info
        link
        fedilink
        arrow-up
        10
        ·
        2 个月前

        it means rust is cool as fuck

        • Hadriscus@jlai.lu
          link
          fedilink
          arrow-up
          2
          ·
          2 个月前

          aren’t they talking about C++ ?

          • ddplf@szmer.info
            link
            fedilink
            arrow-up
            10
            ·
            2 个月前

            C++ has pretty much no compile-time checks, while Rust’s overengineered syntax allows it’s compiler to catch vast majority of your everyday errors during compilation.

            • Hadriscus@jlai.lu
              link
              fedilink
              arrow-up
              3
              ·
              2 个月前

              ok thanks

            • Mr. Satan@lemmy.zip
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 个月前

              It doesn’t eliminate logic bugs. I’d argue these are way more relevant in day to day programming.

          • asdfasdfasdf@lemmy.world
            link
            fedilink
            English
            arrow-up
            3
            ·
            2 个月前

            Rust is a very modern alternative to C /C++.

      • red_tomato@lemmy.world
        link
        fedilink
        arrow-up
        10
        arrow-down
        3
        ·
        2 个月前

        Overengineered mess

    • iknewitwhenisawit@fedinsfw.app
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 个月前

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

    • furry toaster@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 个月前

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

      • Sonnenblume@discuss.tchncs.de
        link
        fedilink
        arrow-up
        3
        ·
        2 个月前

        I think the closest to an actual answer you will find are the cpp core guidelines.

Greentext@sh.itjust.works

greentext@sh.itjust.works

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !greentext@sh.itjust.works

This is a place to share greentexts and witness the confounding life of Anon. If you’re new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

  • Anon is often crazy.
  • Anon is often depressed.
  • Anon frequently shares thoughts that are immature, offensive, or incomprehensible.

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 351 users / day
  • 2.18K users / week
  • 4.81K users / month
  • 10.6K users / 6 months
  • 1 local subscriber
  • 9.04K subscribers
  • 1.53K Posts
  • 32.7K Comments
  • Modlog
  • mods:
  • 🍹Early to RISA 🧉@sh.itjust.works
  • BE: 0.19.18
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org