• coherent_domain@infosec.pub
    link
    fedilink
    English
    arrow-up
    147
    ·
    edit-2
    10 months ago

    The image is taken from Zhihu, a Chinese Quora-like site.

    The prompt is talking about give a design of a certain app, and the response seems to talk about some suggested pages. So it doesn’t seem to reflect the text.

    But this in general aligns with my experience coding with llm. I was trying to upgrade my eslint from 8 to 9, and ask chatgpt to convert my eslint file, and it proceed to spit out complete garbage.

    I thought this would be a good task for llm because eslint config is very common and well-documented, and the transformation is very mechanical, but it just cannot do it. So I proceed to read the documents and finished the migration in a couple hour…

    • Lucy :3@feddit.org
      link
      fedilink
      arrow-up
      76
      arrow-down
      1
      ·
      10 months ago

      I asked ChatGPT with help about bare metal 32-bit ARM (For the Pi Zero W) C/ASM, emulated in QEMU for testing, and after the third iteration of “use printf for output” -> “there’s no printf with bare metal as target” -> “use solution X” -> “doesn’t work” -> “ude printf for output” … I had enough.

      • Björn@swg-empire.de
        link
        fedilink
        arrow-up
        20
        arrow-down
        2
        ·
        10 months ago

        I used ChatGPT to help me make a package with SUSE’s Open Build Service. It was actually quite good. Was pulling my hair out for a while until I noticed that the project I wanted to build had changes URLs and I was using an outdated one.

        In the end I just had to get one last detail right. And then my ChatGPT 4 allowance dried up and they dropped me back down to 3 and it couldn’t do anything. So I had to use my own brain, ugh.

        • noctivius@lemm.ee
          link
          fedilink
          English
          arrow-up
          10
          ·
          10 months ago

          chatgpt is worse among biggest chatbots with writing codes. From my experience Deepseek > Perplexity > Gemini > Claude.

      • Scrubbles@poptalk.scrubbles.tech
        link
        fedilink
        English
        arrow-up
        5
        ·
        10 months ago

        Yeah you can tell it just ratholes on trying to force one concept to work rather than realizing it’s not the correct concept to begin with

        • formulaBonk@lemm.ee
          link
          fedilink
          English
          arrow-up
          6
          ·
          10 months ago

          That’s exactly what most junior devs do when stuck. They rehash the same solution over and over and it almost seems like that llms trained on code bases infer that behavior from commit histories etc.

          It almost feels like on of those “we taught him these tasks incorrectly as a joke” scenarios

      • qqq@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        10 months ago

        QEMU makes it pretty painless to hook up gdb just FYI; you should look into that. I think you can also have it provide a memory mapped UART for I/O which you can use with newlib to get printf debugging

    • Cethin@lemmy.zip
      link
      fedilink
      English
      arrow-up
      9
      ·
      10 months ago

      I use it sometimes, usually just to create boilerplate. Actual functionality it’s hit or miss, and often it ends up taking more time to fix than to write myself.

    • petey@aussie.zone
      link
      fedilink
      arrow-up
      1
      ·
      10 months ago

      I used Claude 3.7 to upgrade my eslint configs to flat and upgrade from v7 to v9 with Roo Code and it did it perfectly