ai code trash

I asked chatgpt to make a game like flappy bird in java but when i go to compile it in jdk it won't run.
it states "error reached end of file while parsing"

https://pastebin.com/3JRWRcaU

  1. 2 months ago
    Anonymous

    Maybe ChatGPT can help you with that issue too.

    • 2 months ago
      Anonymous

      probably output was cut short and OP didn't noticed

  2. 2 months ago
    Anonymous

    So this is what this board is going to become, huh

    • 2 months ago
      Anonymous

      you're already dead :))

      • 2 months ago
        Anonymous

        I wonder if they id HRT injections from anything that can be hacked with stuxnet.

    • 2 months ago
      Anonymous

      We need a separate board.
      It's a fucking disgrace how they're training this board to train non-free AI code with trolling and bait.
      If the code is not open source, it's not open.

      • 2 months ago
        Anonymous

        Kek, the Open Assistant tool literally seems to be designed to be a commercial tool for Customer Service and retards here are helping it train for free

  3. 2 months ago
    Anonymous

    i asked it to write a javascript function to validate an ethereum address and it didn't work and was overly verbose. Bits of the code were there but it returned false when it was supposed to return true

    • 2 months ago
      Anonymous

      most chatgpt code results are 95% ok and remaining 5% needs some fixing

      • 2 months ago
        Anonymous

        More like 0.5% OK unless you ask it about fizzbuzz.

        • 2 months ago
          Anonymous

          100% CORRECT

          • 2 months ago
            Anonymous

            Show it fizzbuzz and ask it to explain the code. Next do the same but replace the modulos with divisions.

            • 2 months ago
              Anonymous
              • 2 months ago
                Anonymous
              • 2 months ago
                Anonymous

                AHHHHHHHHHHHHHHHHHHHHHH
                >AHHHHHHHHHHHHHHHHHHHHH
                AHHHHHHHHHHHHHHHHHHHHHH
                >AHHHHHHHHHHHHHHHHHHHHH
                AHHHHHHHHHHHHHHHHHHHHHH
                >AHHHHHHHHHHHHHHHHHHHHH

              • 2 months ago
                Anonymous

                Funny right?
                It's one of the first I discovered when playing around to see if chatgpt could actually be used for real work.
                It was just a test to see how much it overfitted. I actually found it was rather robust in a lot of ways.
                Other things I tested it on: compilation and decompilation. It does the latter much better than the former, if you ever have a SIB byte it automatically dies and it almost never gets the REX prefix right when compiling.
                Explaining code when the variable names and comments do not spell out everything that's happening: complete fail on all real-world code segments I tried. The best answer it ever gave me was "it's not clear what the code is doing without more information. It appears the code is comparing two vectors and processing it through a special function". This was incorrect but it successfully identified that there were two vectors at least.
                Generating code snippets: I couldn't get it to generate anything useful at all. It can generate the 'homework' version of a snippet, but not the production-ready version, no matter how much you try to get it to iterate and fix it up. It often hallucinated functions (my favorite: a version of mprotect that takes an int* as last argument that is supposed to return the mprotect mode. Trying to point out mprotect has no such signature, it changes the int* to a plain int.......) and so on.
                Code fix suggestions: complete fail. It can tell me to add code to check for null quite well, but nothing else. It also (kinda obviously) inserts many spurious null checks.

          • 2 months ago
            Anonymous

            An AI would have realized there doesn't need to be 4 conditional branches here, the first if statement would be useless if you output a newline AFTER the conditional.

  4. 2 months ago
    Anonymous

    you're missing 2 closing brackets you fucking moron

  5. 2 months ago
    Anonymous

    LEARN TO CODE, YOU RETARDED FUCKING WOMANISH moron

    • 2 months ago
      Anonymous

      if you're so smart, fix it

      • 2 months ago
        Anonymous

        >public void jump() { if (gameOver) {
        it ends abruptly.

        • 2 months ago
          Anonymous

          "IF"?????? please don't leave me in suspense. finish the game.

          • 2 months ago
            gay programmer slave

            y-yes,, master... o-tetsudai shimasu~

            • 2 months ago
              Anonymous

              post feet

  6. 2 months ago
    Anonymous

    What a waste of cars. Capitalism can be retarded like that sometimes, where people would rather their stuff rot than let others have it for free. Maybe they should be laws against a waste of resources like that?

    • 2 months ago
      Anonymous

      No, but instead they have laws to buy new ones regularly.
      For "environmental reasons".

    • 2 months ago
      Anonymous

      why don't you lead by example? first let's see you and the other starbucks socialists give up their cars and energy-consuming devices. do your part to stop climate change.

    • 2 months ago
      Anonymous

      LOL, anon fell for antiwork's false captions of that image. Those cars were seized in Iran because they were being smuggled in by customs and judiciary officials who had been taking bribes to let them in without the proper inspections and duties paid.

  7. 2 months ago
    Anonymous

    [...]

  8. 2 months ago
    Anonymous

    That code is awful
    >addColumn(true)
    >addColumn(true)
    >addColumn(true)
    >addColumn(true)
    >putting a check for game over state in a jump() function
    Truly miserable

  9. 2 months ago
    Anonymous

    it doesn't even have a main() function
    how do you run this?
    do you even know java?

  10. 2 months ago
    Anonymous

    As far as I can tell it only spawns four pipes and they don't even move.
    Not to mention that it just stops at "if gameOver".
    Truly, ChatGPT is replacing programmers any day now.
    ASDasfasxnsa saxbnasj xsabxbhsaj xsbhaxbas xshbx sbhxsbh.

  11. 2 months ago
    Anonymous

    I refuse to believe that anyone who knows what the "jdk" is doesn't know how to debug a middle-school level syntax issue

  12. 2 months ago
    Anonymous

    bump

  13. 2 months ago
    Anonymous

    maybe if you tried to hit the copy code button instead of manually selecting the text you wouldn't miss part of the code and it would

    you absolute fucking idiot lol

  14. 2 months ago
    Anonymous

    hello everyone how can i get chatgpt to translate my lewd japanese voicework scripts?

    it keeps saying that it goes against it's policies.

  15. 2 months ago
    Anonymous

    bump

  16. 2 months ago
    Anonymous

    Wow. i guess my job wont get replaced with AI too soon.

Your email address will not be published. Required fields are marked *