• Michal
    link
    fedilink
    arrow-up
    33
    arrow-down
    1
    ·
    19 天前

    Counterpoint: how do you even prove that any part of the code was AI generated.

    Also, i made a script years ago that algorithmically generates python code from user input. Is it now considered AI-generated too?

    • Wiz@midwest.social
      link
      fedilink
      arrow-up
      19
      arrow-down
      5
      ·
      19 天前

      i made a script years ago that algorithmically generates python code from user input. Is it now considered AI-generated too?

      No, because you created the generation algorithm. Any code it generates is yours.

      • skami@sh.itjust.works
        link
        fedilink
        arrow-up
        9
        ·
        19 天前

        Not how I understand it, but I’m not a lawyer. The user that uses the script to generate the code can copyright the output and oop can copyright their script (and the output they themself generate). If it worked like you said, it would be trivial to write a script that generates all possible code by enumerating possible programs, then because the script will eventually generate your code, it’s already copyrighted. This appear absurd to me.

        Relevant: https://www.vice.com/en/article/musicians-algorithmically-generate-every-possible-melody-release-them-to-public-domain/

        If the script copies chunks of code under the copyright of the original script writer, I typically see for those parts that the original owner keeps copyright of those chunks and usually license it in some way to the user. But the code from the user input part is still copyrightable by the user. And that’s that last part that is most interesting for the copyright of AI works. I’m curious how the law will settle on that.

        I’m open to counterarguments.

        • Wiz@midwest.social
          link
          fedilink
          arrow-up
          1
          ·
          18 天前

          This is a really good point, and it’s making me rethink my own idea about the subject.

      • psud@aussie.zone
        link
        fedilink
        English
        arrow-up
        2
        ·
        16 天前

        I believe you’re claiming that compiler authors own the software their compiler compiles which is clearly not true.

        No way does op own the algorithmically created program based on user input

    • JackbyDev
      link
      fedilink
      English
      arrow-up
      6
      ·
      19 天前

      Computer output cannot be copyrighted, don’t focus on it being “AI”. It’s not quite so simple, there’s some nuance about how much human input is required. We’ll likely see something about that at some point in court. The frustrating thing is that a lot of this boils down to just speculation until it goes to court.

    • sunbeam60@feddit.uk
      link
      fedilink
      arrow-up
      3
      ·
      19 天前

      OP is obviously ignorant of how much tooling has already helped write boiler plate code.

      Besides AI code is actually one of the things that’s harder to detect, compared to prose.

      And all that said, AI is doing an amazing job writing a lot of the boilerplate TDD tests etc. To pretend otherwise is to ignore facts.

      AI can actually write great code, but it needs an incredibly amount of tests wrapped around and a strict architecture that it’s forced to stick to. Yes, it’s far too happy sprinkling magic constants and repeat code, so it needs a considerable amount of support to clean that up … but it’s still vastly faster to write good code with an AI held on a short leash than it is to write good code by hand.

    • Dyskolos@lemmy.zip
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      19 天前

      Guess you can’t really prove that, unless you leave comments like “generated by Claude” in it with timestamp and whatnot 😁 Or one can prove that you are unable to get to that result yourself.

      So nonsense, yes.

      • mattvanlaw@lemmy.world
        link
        fedilink
        arrow-up
        3
        arrow-down
        1
        ·
        19 天前

        Cursor, an ai/agentic-first ide, is doing this with a blame-style method. Each line as it’s modified, added DOES show history of ai versus each human contributor.

        So, not nonsense in probability, but in practice – no real enforcement to turn the feature on.

        • Rooster326
          link
          fedilink
          arrow-up
          2
          ·
          19 天前

          Why would you ever want this?

          If you pushed the bug that took down production - they aren’t gonna whataboutism the AI generated it. They’re still going to fire you.

          • sunbeam60@feddit.uk
            link
            fedilink
            arrow-up
            2
            ·
            19 天前

            It makes little difference IMHO. If you crash the car, you can’t escape liability blaming self driving.

            Likewise, if you commit it, you own it, however it’s generated.

            • mattvanlaw@lemmy.world
              link
              fedilink
              arrow-up
              2
              ·
              19 天前

              It’s mainly for developers to follow decisions made over many iterations of files in a code base. A CTO might crawl the gitblame…but it’s usually us crunchy devs in the trenches getting by.

          • mattvanlaw@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            19 天前

            Sorry, but as another reply: pushing bugs to production doesn’t immediately equate to firing. Bug tickets are common and likely addressing issues in production.

              • mattvanlaw@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                19 天前

                I guess you mean like full outtage for all users? My bad just a lot of ways to take the verb “down” for me. Still, though, what a crappy company to not learn but fire from that experience!