News for hackers. Stuff that matters.
Re:“I wish I could have licensed the Id source code releases... by kaptain on Tuesday July 06, 2021 @01:46AM (#27744597)
I’ve looked at some of the Copilot threads but am unable to follow the issue. Can someone summarize what the issue is with Copilot and why a BSD license would have been significant for the code?
Re:“I wish I could have licensed the Id source code releases... by young_unixer on Tuesday July 06, 2021 @02:13AM (#27744754)
1. Someone expressed their concern that fragments of GPL code would end up in projects with non-GPL licenses and called it open source laundering. They were also concerned about the interpretation of derivative work. Could copilot's output be considered a derivative work?

https://twitter.com/eevee/status/1410037309848752128?lang=en

2. Someone posted how copilot reproduced the famous fast inverse square root function verbatim, including comments.

https://news.ycombinator.com/item?id=27710287

Re:“I wish I could have licensed the Id source code releases... by belorn on Tuesday July 06, 2021 @03:10AM (#27745075)
One more critical aspect of the issue:

3. Microsoft decided to exclude proprietary code from copilot learning date. If they were concerned that copilot's output might infringe on other companies proprietary code, they should have the same concerns about free and open source licensed code.

Re:“I wish I could have licensed the Id source code releases... by pwdisswordfish8 on Tuesday July 06, 2021 @02:52AM (#27744975)
> concern that fragments of GPL code would end up in projects with non-GPL licenses

Framing it like this makes it sound like a problem with the GPL in particular, when really it's a problem for anything (including ingested code with no discernable license) that isn't expressly available under permissive licenses--more permissive than even the BSDs or MIT license, which after all, still require attribution by way of reproducing any copyright notices and distributing the text of the license itself.

The only terms where this isn't really a problem is limited to basically WTFPL and public domain code.

Re:“I wish I could have licensed the Id source code releases... by an_opabinia on Tuesday July 06, 2021 @02:34AM (#27744875)
> open source laundering

Microsoft already launders open source code by just hiring people in China and Romania to rewrite it. Copilot is their engineering culture distilled. However most big companies do this.

Re:“I wish I could have licensed the Id source code releases... by fsloth on Tuesday July 06, 2021 @02:57AM (#27745005)
Rewriting is totally ok. In every possible context. Because the opposite (blocking rewriting by some legal mechanism) would mean a past employer could slap a court order stopping a programmer from working ever again in any other company due to IP infringement since he could 'just copy his previous work and hence company ip'.
Re:“I wish I could have licensed the Id source code releases... by kortilla on Tuesday July 06, 2021 @02:55AM (#27744994)
Rewriting isn’t the same thing. Otherwise you could claim libreoffice devs are just laundering closed source Microsoft office code.
Re:“I wish I could have licensed the Id source code releases... by horstmeyer on Tuesday July 06, 2021 @02:00AM (#27744671)
My understanding is that when Copilot automatically inserts some GPL licensed code fragment into your project, your project automatically has to become GPL licensed, whether you want and realize or not.
Re:“I wish I could have licensed the Id source code releases... by simion314 on Tuesday July 06, 2021 @02:37AM (#27744890)
>your project, your project automatically has to become GPL licensed, whether you want and realize or not.

This is not exactly true, GPL is not magic that automatically re-licenses your code behind your back. What actually happens is your are in violation of the GPL , one way to solve the violation is that you re-license your code (so you have to do it, it is not happening behind your back automatically). I am not aware of any case where someone did not want to GPL the software and a judge forced him to do it. This kind of problems are also happening with proprietary license, some developer copy-pastes some properietary code and in the end you have to make ti right remove the code and make a deal with the party you damaged.

Re:“I wish I could have licensed the Id source code releases... by drran on Tuesday July 06, 2021 @02:54AM (#27744985)
NeXT (now Apple) has this experience:

> The C compiler in use at the time was GCC, which was released under the GPL. To avoid the restrictions of this code, NeXT provided its front end as a library that end users would link against GCC, thereby avoiding the GPL (which only applies to distribution of the software, not how you use it). This little legal maneuver didn't work, however, so NeXT was forced to release the code.

Re:“I wish I could have licensed the Id source code releases... by simion314 on Tuesday July 06, 2021 @04:22AM (#27745490)
Can you provide a link on the "forced" part ? Maybe they realized that is fucking OK to respect the license , they would not like it if someone fucks with their proprietary code either.
Re:“I wish I could have licensed the Id source code releases... by drran on Tuesday July 06, 2021 @05:30AM (#27745986)
Re:“I wish I could have licensed the Id source code releases... by simion314 on Tuesday July 06, 2021 @06:25AM (#27746385)
But from a quick check those are the reverse of the OP implication, in this cases someone takes a big GPL project and inserts a small proprietary thing on top , I would like to see an example where someone had a bit proprietary project, a dev inserted 5 lines GPL code and a judge forced them to GPL everything.
Re:“I wish I could have licensed the Id source code releases... by drran on Tuesday July 06, 2021 @10:53AM (#27749423)
If you are looking for the smallest case, then look at Oracle vs Google multibillion debate about this function:

  private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) {
     if (fromIndex > toIndex)
          throw new IllegalArgumentException("fromIndex(" + fromIndex +
               ") > toIndex(" + toIndex+")");
     if (fromIndex < 0) 
          throw new ArrayIndexOutOfBoundsException(fromIndex);
     if (toIndex > arrayLen) 
          throw new ArrayIndexOutOfBoundsException(toIndex);
  }
https://www.copperpodip.com/post/oracle-v-google-shows-why-f...
Re:“I wish I could have licensed the Id source code releases... by simion314 on Tuesday July 06, 2021 @12:15PM (#27750504)
That big case was about APIs but I found that of course copy pasting code is a lcense violation, but the judge/jury did not force any re-licensing

"Alsup did agree with the jury that the rangeCheck function and eight security files were a copyright infringement, but the only relief available was statutory damages up to a maximum of US$150,000"

So your argument is exactly my point, the license is not infecting your product, you have to pay damages or in case of GPL you have the OPTION to comply with the license and release the code.

Again, copy -pasting some GPL code is not magicaly transforming your other code into GPL. Or the reverse copy pasting some Oracle/Microsoft or Google code in yoru project does not make your project Oracle or MS property.

Re:“I wish I could have licensed the Id source code releases... by drran on Tuesday July 06, 2021 @02:23PM (#27752397)
Of course, it's not a magic, because everything is written in clear text, but it works:

> However, in this case, Donald writes, "with Cisco, years of trying to work through their predecessor's compliance problems didn't generate the progress we were hoping for, so we had filed a lawsuit. It was quickly settled, and compliance was achieved." > > There’s an even brighter silver lining to this story: Cisco later became a contributor to the GNU Project. "It really is a success story in bringing a violator into the free software community," Donald wrote.

For a proprietary code, it doesn't work because a commercial company is looking for profit.

Re:“I wish I could have licensed the Id source code releases... by simion314 on Tuesday July 06, 2021 @03:45PM (#27753345)
>For a proprietary code, it doesn't work because a commercial company is looking for profit.

So you would prefer you had by mistake infringed on MS/Google or Oracle code then some dude's GPL shitty left pad ? For me it seems that the license is not important but who exactly you upset.

Anyway the point is the license did not infected Google code, Google had to pay damages and it could have been GPL or other proprietary license.

Re:“I wish I could have licensed the Id source code releases... by drran on Wednesday July 07, 2021 @03:45AM (#27758465)
Unlike GPL, proprietary licenses are not viral. They never asked for fair exchange of code, so court cannot force that.
Re:“I wish I could have licensed the Id source code releases... by ocdtrekkie on Tuesday July 06, 2021 @02:12AM (#27744750)
It's worse than this: Even permissive licenses like MIT require you credit the original author. Copilot regurgitates code without recognizing the original author at all, violating pretty much any and all licenses.
Re:“I wish I could have licensed the Id source code releases... by EdSchouten on Tuesday July 06, 2021 @02:09AM (#27744730)
But the same can happen with BSD licensed code, right? That license also has certain requirements that need to remain fulfilled.

I don’t see how the GPL is special in the discussion around Copilot.

Re:“I wish I could have licensed the Id source code releases... by jonas21 on Tuesday July 06, 2021 @02:24AM (#27744825)
You could presumably satisfy this requirement by linking to a giant file containing the license blocks for all BSD code that it was trained on.
Re:“I wish I could have licensed the Id source code releases... by kbenson on Tuesday July 06, 2021 @02:23AM (#27744822)
The GPL license is license-viral, the BSD license is just attribution-viral, as I understand it.

For BSD licensed code, you must reproduce the license and attribution for that code, but the rest of the code can be licensed as you want. For GPL code there are additional requirements.

Re:“I wish I could have licensed the Id source code releases... by EdSchouten on Tuesday July 06, 2021 @02:44AM (#27744937)
But does Copilot reproduce the license and attribution for the code? As far as I know, it does not.
Re:“I wish I could have licensed the Id source code releases... by kbenson on Tuesday July 06, 2021 @12:44PM (#27750986)
I don't think so, which makes the resulting amalgamation in violation of the original source in that respect for both of them. Beyond that, even if you add the license and attribution manually, the GPL is still not satisfied, and may require the entire source it was used in be released depending on whether you've shipped that product to customers or used it in specific ways. That's an entirely different class of problem than just needing to go back and add some comments to your code to note where some of it came from.
Re:“I wish I could have licensed the Id source code releases... by happymellon on Tuesday July 06, 2021 @02:26AM (#27744839)
This is the fundamental difference between BSD and GPL.

GPL is is Open Source but for you to benefit, you have to make derivative works GPL.

BSD is Open Source and you can close derivatives so that you benefit and you don't have to share back.

I'm not sure how you don't see how an auto-suggest tool that inserts GPL code into yours is different to BSD.

Re:“I wish I could have licensed the Id source code releases... by EdSchouten on Tuesday July 06, 2021 @02:42AM (#27744931)
Does Copilot in its current form auto-inject copyright notices for all BSD licensed code from which output is derived? As far as I know, it does not.

This means that authors of BSD licensed code have their rights violated to the same degree as those of GPL licensed code.

Re:“I wish I could have licensed the Id source code releases... by _ph_ on Tuesday July 06, 2021 @02:48AM (#27744958)
Yes, technically they do. But if the problem is discovered, it is very easy to comply with the BSD terms by adding proper attribution. With GPLed code it is much more difficult.
Re:“I wish I could have licensed the Id source code releases... by kelnos on Tuesday July 06, 2021 @03:03AM (#27745031)
> But if the problem is discovered...

The default shouldn't be "you can violate people's licenses until you notice or get caught". Sure, in practice it probably won't cause anyone legal trouble: it would be really hard for, say, the author of some BSD-licensed code to prove that a user of Copilot actually caused them monetary damages by not providing attribution.

But this isn't really a world I want to live in; we shouldn't treat other people's work with such entitlement. Copilot should be able to trace the provenance of a suggestion it makes, and notify the author of their licensing obligations.

If that's not possible, then Copilot should not exist.

Re:“I wish I could have licensed the Id source code releases... by happymellon on Tuesday July 06, 2021 @04:21AM (#27745485)
> If that's not possible, then Copilot should not exist

Github and Microsoft should have trained it on their own code because they could make it public domain. Using other peoples code with various licences and many different requirements is just going to be a complete shitshow.

Re:“I wish I could have licensed the Id source code releases... by Houshalter on Tuesday July 06, 2021 @04:18AM (#27745471)
All of these issues have existed since GPT-2, maybe earlier. I remember the AI dungeon guys narrowly avoided a lawsuit from training on copyrighted novels. I find it amusing that the tech community was very pro GPT, but anti-copilot. Now that it affects them personally. Especially ironic because this place is usually very skeptical of copyright matters.

All AIs are trained on copyrighted data scraped from the internet. What you guys want effectively amounts to making most AI illegal. At least outside of big tech companies with large private datasets. Is that the world you prefer to live in?

Re:“I wish I could have licensed the Id source code releases... by happymellon on Tuesday July 06, 2021 @04:26AM (#27745526)
Yes, in this case the licence is violated by default, by all code that CoPilot generates.

The point was that you can fix attribution errors pretty simply once they are uncovered, its a lot harder to pull GPL code out of your project to prevent you from having to relicence.

It doesn't sound like it is fit for purpose.

Re:“I wish I could have licensed the Id source code releases... by Tempest1981 on Tuesday July 06, 2021 @03:05AM (#27745040)
Can simple unit-test data be licensed? I.e. tables of inputs and expected outputs?

The answer becomes more interesting if you could use them as input to an AI that generates source code (beyond Copilot).

(Apologies if this has been discussed recently.)