• JoeByeThen [he/him, they/them]
    ·
    edit-2
    2 years ago

    Depends. There's a possibility that it's internalized how a compiler works and so it's emulating the function of one. Unlikely, but not impossible as gpt3 does seem capable of outputting small amounts of stuff in formats like base64. However, it's much more likely that it's seen enough example of tutorial code that it's simulating what the output should be for those specific functions like a parrot that's been trained to finish songs it has heard over and over.

    • edge [he/him]
      hexagon
      ·
      2 years ago

      There’s a possibility that it’s internalized how a compiler works and so it’s emulating the function of one. Unlikely, but not impossible

      I also got it to compile and run quick sort. When I get the time I'm going to try and see if it will give me a hexdump of the compiled file then try to run it in an actual terminal.

      • JoeByeThen [he/him, they/them]
        ·
        2 years ago

        I've gotten it to give me parts of a json as an incomplete zip file before, but once it reached a point that required repeating, like null spaces or whatever, it got stuck in a loop. It's complicated, but also fascinating to try and visualize out the different levels of like meta that need to occur for all this to happen based on what is essentially a super long and highly contextualized Markov chain.