News for hackers. Stuff that matters.
Re:GitHub Copilot emits GPL code by concordDance on Friday April 21, 2023 @06:01PM (#35660830)
Using for training doesn't mean its reproduced.

Consider a junior dev who writes a range check function while working for a company (so they own the copyright) then goes to a different company and writes the same range function because that's just how he writes code.

Has copyright been infringed?

Re:GitHub Copilot emits GPL code by cyanydeez on Friday April 21, 2023 @06:36PM (#35661182)
They have clean room implementation for just this problem.

The _only_ escape clause is some random function that says how arbitrary a code block is. Or nontrivial.

A person or AI can absolutely be violating copyright via your example.

Re:GitHub Copilot emits GPL code by Swenrekcah on Friday April 21, 2023 @06:09PM (#35660916)
That programmer definitely reproduced the code, so if copilot does the same that’s definitely reproduction.

Then the legalities can be argued, but an individual is in any case not remotely comparable to a service like copilot.

Re:GitHub Copilot emits GPL code by seadan83 on Friday April 21, 2023 @06:29PM (#35661099)
> Then the legalities can be argued, but an individual is in any case not remotely comparable to a service like copilot.

Why is this? Copilot in some ways is an automated way to search code & stack overflow. There is a very annoying website that does nothing more than show relevant code samples of various google search terms.

If the manual version of something is okay (eg: googling for code, finding it, fitting for a new and specific purpose that is similar), why would an automated version of that be any different?

Re:GitHub Copilot emits GPL code by okamiueru on Friday April 21, 2023 @06:40PM (#35661219)
Because of the license the code is under?
Re:GitHub Copilot emits GPL code by Swenrekcah on Friday April 21, 2023 @06:43PM (#35661239)
For a similar reason that camera surveillance can be forbidden in places where people are still allowed to keep their eyes open.

Or sending millions of messages in an automated way can be illegal but millions of people sending a message is not.

Re:GitHub Copilot emits GPL code by seadan83 on Friday April 21, 2023 @07:20PM (#35661550)
I'm confused by the forbidden surveillance example. Generally surveillance camera's are legal for any place where there is no expectation of privacy. The expectation of privacy is largely only ones home, outside of that you can be video taped all day long by anyone. I'm not sure how this is analgous..

The million messages example is interesting. Though, what examples are there? In what cases is something legal to do it once, but there is some threshold where you cannot do it many times?

The "sending millions of messages" is only perhaps illegal because it breaks terms of service. Or, the one message is perhaps also illegal but nobody cares to pursue litigation for one instance of an infraction. The point remains though, if an individual does something once that is legal - it makes that activity legal, period and full stop. No?

Re:GitHub Copilot emits GPL code by Swenrekcah on Friday April 21, 2023 @07:39PM (#35661687)
I was thinking about things like spam and also social media.

Note that my main objection is to equating a person doing something with an automated process. Sometimes it may be legal or other times illegal but it just clearly isn’t the same.

For the last point, I think the answer to that is a definite no in most jurisdictions. Laws and judicial conventions often allow differing circumstances to affect the legality of things.

Re:GitHub Copilot emits GPL code by seadan83 on Friday April 21, 2023 @11:12PM (#35663024)
> For the last point, I think the answer to that is a definite no in most jurisdictions. Laws and judicial conventions often allow differing circumstances to affect the legality of things.

Curious, any concrete examples? I can't really think of any where one instance is okay but many is not. I can think of examples where one instance is ignored and many instances are harder to ignore (and so is prosecuted), but overall - I can't really think of anything that is okay to do once but not many times.

Re:GitHub Copilot emits GPL code by Swenrekcah on Saturday April 22, 2023 @10:00AM (#35666681)
Don’t forget the automation part, that’s the key issue.

Unsolicited robocalls are illegal in many places where human callers may not be.

Re:GitHub Copilot emits GPL code by belorn on Friday April 21, 2023 @06:43PM (#35661242)
Playing a movie for a few friends who visits is fine, but start to demand tickets and suddenly it will look like a cinema which is not fine.

The reason is always the same. Courts and judges will look at the situation and make a decision about what seems fair and what does not. It is them that need to be convinced that a specific use of a copyrighted work is permitted either through fair use or by a license.

Re:GitHub Copilot emits GPL code by seadan83 on Friday April 21, 2023 @07:14PM (#35661507)
> Playing a movie for a few friends who visits is fine, but start to demand tickets and suddenly it will look like a cinema which is not fine.

Interesting analogy. "Ripping" something off an only using it for your personal project sounds like the "playing a movie for a few friends". Doing so for the benefit of corporation that then has thousands of daily visitors sounds like the "movie cinema" example. Though, in both cases it was an individual googling and finding how to implement a specific function.

"fair use" in copyright is pretty specific in that it refers to things like "you can play portions of a clip in order to comment on it." Or as another example, you can use clips/portions for the purposes of a review commentary.

"Form and function" is perhaps a very important crux here. Some things you can only do a certain way. For example, quick-sort, there are is only really one way to implement quick sort (or otherwise it is not at all quick sort!).

Personally I feel the copyright line is higher than a function, the copyright is on the collection of functions who together create a specific software. The individual functions IMHO are as copyright'able as-is a cog on a bike cassette, or the chain on a motorcycle.

Re:GitHub Copilot emits GPL code by belorn on Saturday April 22, 2023 @06:17AM (#35665009)
I think there are quite few things in programming that can only be implemented one way. I see it as similar to music in that almost every song have notes going up or down the scale. Obviously there can't be that many variations, but then the important distinctions is often in the details. Applying copyright on a single function is like applying copyright on a single riff. Sometimes the legal system will accept it, but it should be the exception rather than the norm.

Fair use seem to had a change in scope. Historically it seems to be mostly about things like "play a clip in order to comment on it.", but now we have things like google making a copy of all books ever written in order for people to search through them. Similar arguments has been made over copying news articles from news sites in order to put a portion of it in search results. A stack overflow-like search engine that trawled proprietary code bases would likely be sued, but in theory they could argue fair use just like google.

Re:GitHub Copilot emits GPL code by sinrtb on Tuesday April 25, 2023 @01:00PM (#35703335)
I am pretty sure both cases would break copyright. But in the first case the copyright holders would never go after you and the second they would. But in both cases they could. The damages that a company could recover from you for watching a movie with a few friends is much lower than the damages they could recover if you made money selling tickets. Not to mention the negative PR a company would get for going after someone buying a DVD and watching it with friends.
Re:GitHub Copilot emits GPL code by jitix on Friday April 21, 2023 @07:43PM (#35661723)
IMO it’s the same thing because I fundamentally see LLMs in the same role as calculators that helps reduce cognitive load by offloading repetitive work.

Practically with an LLM the programmer can focus on the creative part (handler function, react component, etc) while the LLM generates the necessary boilerplate for the ever changing frameworks and infra configurations. The programmer (and QA) would still review and test everything but would save time writing boilerplate and ship features faster.

Re:GitHub Copilot emits GPL code by lallysingh on Friday April 21, 2023 @06:16PM (#35660975)
Yup. They just copied manually.
Re:GitHub Copilot emits GPL code by blibble on Friday April 21, 2023 @06:14PM (#35660958)
> Has copyright been infringed?

yes

now if he had written a specification as to what the function should be, then passed it to someone else that had never seen the function and worked from the spec then he'd be ok

see: IBM BIOS

Re:GitHub Copilot emits GPL code by antonvs on Friday April 21, 2023 @06:21PM (#35661016)
> yes

It's not nearly that simple. No real copyright case is going to hinge on what a single range check function looks like.

This is human law, it's not a programming situation where you can just apply some simple rule and get a deterministic answer. Context plays a huge part, among other things.

Re:GitHub Copilot emits GPL code by blibble on Friday April 21, 2023 @06:35PM (#35661167)
> No real copyright case is going to hinge on what a single range check function looks like.

you realise this exact extremely famous function was the focus of a billion dollar supreme court copyright battle that went on for years?

https://en.wikipedia.org/wiki/Google_LLC_v._Oracle_America,_...

that's the entire reason GP brought it up

Re:GitHub Copilot emits GPL code by antonvs on Saturday April 22, 2023 @03:50PM (#35670309)
I should have said that no successful copyright case is going to hinge on that.

Oracle's position on that was legally incorrect, for the reason I was alluding to: the relevant standard requires that illegal copying involve the core of the creative expression of the original work, which a generic range check function clearly doesn't do.

Re:GitHub Copilot emits GPL code by stagger87 on Friday April 21, 2023 @06:36PM (#35661173)
IANAL, but I do not think this is correct. "Clean room" implementation is a valid strategy to avoid this specific type of copyright concern. I'm aware of it because I've done it and worked with lawyers through the process.
Re:GitHub Copilot emits GPL code by seadan83 on Friday April 21, 2023 @06:27PM (#35661075)
As the copyright holder of "throw new", the Junior dev infringed my copyright! Let alone them infringing copyright of the company they crafted that code for.

On a more serious note, there is a question whether algorithms and code blocks can be copyrighted, or if it is the _software_ that is copyrighted. Let's say I use websockets and you crib my usage of websockets for your own application. My opinion is that unless you rebuild the same thing I did, then "cribbing" is the long held art of "let me google how to do that". The artistic creation is the end software product, not really some measly embedded function that is boiler plate (form and function) for anything to work.

The 'form and function' clause of copyright almost certainly makes a range check function not a copyright infringement.

Re:GitHub Copilot emits GPL code by veec_cas_tant on Friday April 21, 2023 @06:28PM (#35661086)
Easy money idea: when you know an employee will be leaving the company, have them spend their last weeks writing basic, foundational functions in multiple languages!
Re:GitHub Copilot emits GPL code by ml-anon on Monday April 24, 2023 @05:42AM (#35685474)
It literally means reproduced in some capacity. Just because its called "training" it doesn't mean it has any reasonable analogy to how humans learn or how expert humans train in a skill.

GPT-style models literally aim to reproduce the input character by character (token by token).