Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years ago

Its not wrong though

lemmy.world

message-square
134
fedilink
903

Its not wrong though

lemmy.world

alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years ago
message-square
134
fedilink
  • over_clox@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    Never heard of a decompiler I see.

    • slst@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      23
      ·
      2 years ago

      A decompiler doesnt give you access to the comments, variable names, which is an important part of every source code

      • over_clox@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        2 years ago

        Meanwhile, AI is having a heyday with it…

        https://arxiv.org/abs/1909.09029

      • BaroqueInMind@kbin.social
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        What’s cool is that you can interpret the var names yourself and rename them whatever you want.

        • slst@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          7
          ·
          2 years ago

          But it is extremely time-consuming. Open source code makes it transparent and easy to read, that’s what it is about: transparency

    • newIdentity@sh.itjust.works
      link
      fedilink
      arrow-up
      14
      ·
      2 years ago

      A decompiler won’t give you the source code. Just some code that might not even necessarily work when compiled back.

      • over_clox@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        And? Decompilers aren’t for noobs. So what if it gives you variable and function names like A000, A001, etc?

        It can still lead a seasoned programmer where to go in the raw machine code to mod some things.

      • over_clox@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        You’re actually chatting with a hacker that made No-CD hacks.

      • amki@feddit.de
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        From the point of view of the decompiler machine code is indeed the source code though

    • tastysnacks@programming.dev
      link
      fedilink
      arrow-up
      7
      ·
      2 years ago

      Try converting from English to Japanese and back to English.

      • over_clox@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        2 years ago

        xor ax, ax

        • amki@feddit.de
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          2 years ago

          A fancy way to say do nothing is not the same as translating back and forth. Example: Show me the intermediate translation.

          • over_clox@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            You’re right.

            xor rax, rax

            • Karyoplasma@discuss.tchncs.de
              link
              fedilink
              arrow-up
              1
              ·
              edit-2
              2 years ago
              GF2P8AFFINEINVQB xmm1, xmm2, 10
              
          • over_clox@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            Also that instruction does not do nothing, it resets the CPU register to zero without having to access RAM. Far from a NOP instruction.

    • SpaceNoodle@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      Still not the actual source code, bucko.

      • over_clox@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        No, it’s actually better when you can read the machine code.

        Most folks don’t care to recompile the whole thing when all they wanna do is bypass the activation and tracker shit.

        • SpaceNoodle@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          Having access to the source code actually makes reading machine code easier, so you’re also wrong on this entirely different thing you’re going on about.

          • over_clox@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            You’ve clearly never used a disassembler such as HIEW have you? You get the entire breakdown of the assembly code.

            • SpaceNoodle@lemmy.world
              link
              fedilink
              arrow-up
              2
              ·
              2 years ago

              I disassemble binaries daily for work. It’s still not the same as source code.

              • over_clox@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                2 years ago

                I didn’t say it was. I just said loosely what the OG meme said, if you know how to read assembly, you know how to read (and write) what some of the code does.

          • over_clox@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            I never said disassembly or decompiling was easier in any way. I’ll agree with you on that, it’s way more difficult.

            Back to the point of the meme though, if you can read assembly, you can read it all.

            • SpaceNoodle@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              edit-2
              2 years ago

              You’ve never actually compared source code to its compiled output, have you.

              • over_clox@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                2 years ago

                I’ve written drivers in 65 bytes of code. I don’t tend to use high level languages that hide what’s going on behind the scenes.

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 1.82K users / day
  • 5.7K users / week
  • 9.09K users / month
  • 17.8K users / 6 months
  • 197 local subscribers
  • 23.6K subscribers
  • 1.46K Posts
  • 53.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org