• daniskarma@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    They have their uses. For instance the other day I needed to read some assembly and decompiled C, you know how fun that can be. LLM proved quite good at translating it to english. And really speed up the process.

    Writing it back wasn’t that good though, just good enough to point in a direction but I still ended up writing the patcher mostly by myself.

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

      the other day I needed to read some assembly and decompiled C

      As one casually does lol Jokes aside, that’s pretty cool. I wish I had the technical know-how and, most importantly, the patience for it.

      • FizzyOrange@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        2 months ago

        Assembly is very simple (at least RISC-V assembly is which I mostly work with) but also very tedious to read. It doesn’t help that the people who choose the instruction mnemonics have extremely poor taste - e.g. lb, lh, lw, ld instead of load8, load16, load32, load64. Or j instead of jump. Who needs to save characters that much?

        The over-abbreviation is some kind of weird flaw that hardware guys all have. I wondered if it comes from labelling pins on PCB silkscreens (MISO, CLK etc)… Or maybe they just have bad taste.

        I once worked on a chip that had nested acronyms.

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

          Who needs to save characters that much?

          Do you realize how old assembly language is?

          It predates hard disks by ten years and coincided with the invention of the transistor.

    • atzanteol@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Just far less efficiently than a snippet library.

      Your snippet library can convert a large JSON file to a Java class using Java property naming conventions and including annotations for Jackson where the names differ from the JSON?