• buh [she/her]@hexbear.net
    link
    fedilink
    English
    arrow-up
    60
    arrow-down
    1
    ·
    11 hours ago

    When a compiler takes my human readable code and converts it into executable machine code, that’s AI

    • GaveUp [she/her]@hexbear.net
      link
      fedilink
      English
      arrow-up
      38
      ·
      edit-2
      11 hours ago

      I wouldn’t be surprised if it’s technically true but it’s more like, coder starts writing out a line of code, AI autocompletes the rest of the line, and then the coder has to revise and usually edit it. And the amount of code by character count that the AI autocompleted is 25% of all new code. Like same shit as Github’s CoPilot that came out years ago, nothing special at all

      None of that 25% of AI generated code wasn’t very heavily initiated and carefully crafted by humans every single time to ensure it actually works

      It’s such a purposeful misrepresentation of labour (even though the coders themselves all want to automate away and exploit the rest of the working class too)

      • Thordros [he/him, comrade/them]@hexbear.net
        link
        fedilink
        English
        arrow-up
        30
        ·
        edit-2
        11 hours ago

        coder starts writing out a line of code, AI autocompletes the rest of the line, and then the coder has to revise and usually edit it. And the amount of code by character count that the AI autocompleted is 25% of all new code.

        When you dig past the clickbait articles and find out what he actually said, you’re correct. He’s jerking himself off about how good his company’s internal autocomplete is.

        • GaveUp [she/her]@hexbear.net
          link
          fedilink
          English
          arrow-up
          17
          ·
          10 hours ago

          I’m not going to read it but I bet it’s nowhere near as good as he thinks it really is

          I wouldn’t be surprised if the statistics on “AI generated code” was like, I type 10 characters, I let AI autocompleted the next 40 characters, but then I have to edit 20 of those characters, and the AI tool counts “40 characters” as “AI generated” since that was what was accepted

          Not to mention since it’s probably all trained on their own internal codebase and there’s a set certain coding style guide, it’d probably perform way worse for general coding if people weren’t all trying to code following the exact same patterns, guidelines, and libraries,

      • hexaflexagonbear [he/him]@hexbear.net
        link
        fedilink
        English
        arrow-up
        10
        ·
        10 hours ago

        I assume that’s what it is as well. I’m guessing there’s also a lot of boilerplate stuff and they’re counting line counts inflated by pointless comments, and function comment templates that usually have to get fully rewritten.

  • dave
    link
    fedilink
    English
    arrow-up
    32
    ·
    10 hours ago

    I write minified JavaScript and the AI pretty-prints it with 8-space indentation. That’s well over 25% by weight.

  • KoboldKomrade [he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    16
    ·
    10 hours ago

    Lol I’d bet 90% of that is of equal quality to the code you get by measuring lines written.

    Another 9% is likely stolen.

    The final 1% won’t even compile, doesn’t work right, or needs so much work you’d be better off redoing it.

    The only useful result I’ve had with CS is asking for VERY basic programs that I have to then check the quality of. Besides that, I had ONE question that I knew would be answered in a text book somewhere, but couldn’t get a search hit about. (I think it was something about the most efficient way to insert or sort or something like that.)

    Worked with it a bit at work and the output was so unreliable I gave up and took the best result it gave me and hard coded it so I could have something to show off. Left it as a “in the future…” thing and last I heard its still spinning in the weeds.

  • TheDoctor [they/them]@hexbear.net
    link
    fedilink
    English
    arrow-up
    7
    ·
    9 hours ago

    In what kind of workflow? Because if I start typing, my copilot generates 20 lines, and I edit that 20 lines down to 5 that will compile and bear little resemblance to what was generated, I feel like that should count as 0 AI lines, but I have a feeling it counts for more.