• ChrysanthemumIndica@discuss.tchncs.de
      link
      fedilink
      arrow-up
      18
      ·
      4 months ago

      This makes me feel so much better after spending a morning banging my head against some wild pointer arithmetic, thank you much much! (Ultimately the pointer incantations were successful, praise be!)

      • Quetzalcutlass@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 months ago

        Three things in CS meet the qualifications for arcane runes: complex regular expressions, pointer arithmetic, and bit shifting.

        • kboy101222@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          8
          arrow-down
          1
          ·
          4 months ago

          True, true. I have a vague idea how embedded systems work. I have no idea how you even get started with driver development.

          OS development isn’t terrible though. There are numerous books to help you make your own kernel and OS

          • wise_pancake@lemmy.ca
            link
            fedilink
            arrow-up
            5
            ·
            4 months ago

            “There are lots of books on harvesting your own primal power source, but most people these days make a pact with the demon Linus and simply channel his power”

          • cmder@lemmy.world
            link
            fedilink
            arrow-up
            7
            ·
            4 months ago

            For linux driver development you can start by reading “Linux Device Drivers, Third Edition” pdf.
            It is free and give you an idea about how everything works.
            The real learning is by reading and using the linux kernel api doc or directly the source code of the api you want to call.
            Source : i did this for a school project where i had to implement multiple kernel modules.

            • merc@sh.itjust.works
              link
              fedilink
              arrow-up
              3
              arrow-down
              1
              ·
              4 months ago

              I think the real issue with driver development is that almost nobody ever has a reason to do it. It’s a much more constrained way of programming compared to normal programs, and isn’t necessary unless you need to talk to hardware or something. So, nobody has an excuse to learn it.

                • merc@sh.itjust.works
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  4 months ago

                  Yes… as I said. But, most people use hardware provided by other people, which means other people write the drivers.

                  • SpaceNoodle@lemmy.world
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    edit-2
                    4 months ago

                    Yes, and those people are people.

                    Also, sometimes the drivers are total garbage, and other people have to rewrite the garbage from the first people.

                    Also also, sometimes there is no driver.