Probably not a good title to seek upvotes. If it does get upvotes, more programmers get share in your pain 😅

  • deadbeef79000@lemmy.nz
    link
    fedilink
    arrow-up
    8
    ·
    2 days ago

    Fuck C and it’s lazy shit pointer arithmetic array indexing shortcut. I.e. you just add the index × size(t) to the array pointer.

    Bounds checking? We’ve heard of it.

        • BigDanishGuy@sh.itjust.works
          link
          fedilink
          arrow-up
          11
          ·
          edit-2
          1 day ago

          And sun glasses, don’t forget the aviators.

          While Mr “I can’t code without a garbage collector” is still putting on his backplate of “oh no pointers are bad” and a duck typed full face helmet, to ride his interpreted moped, the big boys, Mr C-ool and Mr ASSembly, are already downing grain alcohol at the finish line.

          But then again I really don’t like to step out of my embedded RTOS bubble. It really depends on what you want to accomplish and how complicated your system is.

          • deadbeef79000@lemmy.nz
            link
            fedilink
            arrow-up
            4
            ·
            1 day ago

            embedded RTOS

            That sounds like a domain where memory safety is secondary to size and speed… though compile time memory safety guarantees could help.

            Good thing we have so many options!

        • letsgo@lemm.ee
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 day ago

          I’ve ridden a motorbike in a T-shirt and kilt before. That’s … fun …