• frongt@lemmy.zip
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 hours ago

        For words, it’s pretty good. For code, it often invents a reasonable-sounding function or model name that doesn’t exist.

    • ptu@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      6
      ·
      5 hours ago

      I use it for things that are simple and monotonous to write. This way I’m able to deliver results to tasks I couldn’t have been arsed to do. I’m a data analyst and mostly use mysql and power query

    • dogdeanafternoon@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 hours ago

      What’s your preferred Hello world language? I’m gunna test this out. The more complex the code you need, the more they suck, but I’ll be amazed if it doesn’t work first try to simply print hello world.

      • xthexder@l.sw0.com
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        3 hours ago

        Malbolge is a fun one

        Edit: Funny enough, ChatGPT fails to get this right, even with the answer right there on Wikipedia. When I tried running ChatGPT’s output the first few characters were correct but it errors with invalid char at 37

        • dogdeanafternoon@lemmy.ca
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 hours ago

          Cheeky, I love it.

          Got correct code first try. Failed creating working docker first try. Second try worked.

          tmp="$(mktemp)"; cat >"$tmp" <<'MBEOF'
          ('&%:9]!~}|z2Vxwv-,POqponl$Hjig%eB@@>}=<M:9wv6WsU2T|nm-,jcL(I&%$#"
          `CB]V?Tx<uVtT`Rpo3NlF.Jh++FdbCBA@?]!~|4XzyTT43Qsqq(Lnmkj"Fhg${z@>
          MBEOF
          docker run --rm -v "$tmp":/code/hello.mb:ro esolang/malbolge malbolge /code/hello.mb; rm "$tmp"
          

          Output: Hello World!

          • xthexder@l.sw0.com
            link
            fedilink
            English
            arrow-up
            3
            ·
            edit-2
            53 minutes ago

            I’m actually slightly impressed it got both a working program, and a different one than Wikipedia. The Wikipedia one prints “Hello, world.”

            I guess there must be another program floating around the web with “Hello World!”, since there’s no chance the LLM figured it out on its own (it kinda requires specialized algorithms to do anything)

            • dogdeanafternoon@lemmy.ca
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 hours ago

              I’d never even heard of that language, so it was fun to play with.

              Definitely agree that the LLM didn’t actually figure anything out, but at least it’s not completely useless