• Kirp123@lemmy.world
        link
        fedilink
        English
        arrow-up
        15
        ·
        16 hours ago

        In the US code is copyrighted the same as literary works. But that only covers the actual lines of code and not the ideas, functions or algorithms they implement. This means that if someone copy pastes your code word for word they are infringing your copyright but if they write their own code that does the same function as yours they are fine.

        • Beej Jorgensen@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          5
          ·
          16 hours ago

          Human-generated code absolutely is, correct. But AI-generated code is still untested. AI-generated art does not have copyright protection currently. My money is that AI-generated code will have copyright protection through some mental and legal gymnastics. Because money.

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

            Oh, AI-generated code may not be, but like you said we don’t have a court ruling yet.

            I don’t think it can’t be, but we’d first have to have models trained without violating the rights of all the authors of the works in the training data. Like if you trained a model only on GPL software, then the model and its output should also be GPL.

            • Beej Jorgensen@lemmy.sdf.org
              link
              fedilink
              English
              arrow-up
              4
              ·
              15 hours ago

              but we’d first have to have models trained without violating the rights of all the authors of the works in the training data. Like if you trained a model only on GPL software, then the model and its output should also be GPL.

              I’m not so convinced on that one. Copying code without permission, yes, that’s illegal. Distributing copied code without permission, also illegal. But processing code (copied with permission) into weights, that doesn’t feel to me like a violation. If I have a legit copy of something, I should be able to distribute computed statistics about that copy.

              EFF points out some hazards: https://www.eff.org/deeplinks/2026/10/rewriting-copyright-law-generative-ai-would-hurt-everyone

              • frongt@lemmy.zip
                link
                fedilink
                English
                arrow-up
                1
                ·
                14 hours ago

                Sure, but it’s not just statistics like “30% of lines contain the letter E”. It reproduces the material, sometimes verbatim.

                A model is very obviously a derivative work, as it has 0% original content input. Under fair use law, it also very obviously fails all four tests.

                • Beej Jorgensen@lemmy.sdf.org
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  14 hours ago

                  Reproduction of the material we agree is against the law.

                  A model is very obviously a derivative work, as it has 0% original content input. Under fair use law, it also very obviously fails all four tests. Computing the letter frequency has 0% original content input, as well, but is definitely not a derivative work. Do you disagree?