News for hackers. Stuff that matters.
Re:GitHub Copilot by iandanforth on Tuesday June 29, 2021 @03:46PM (#27680816)
What is the licensing for code generated in this way? GPT-3 has memorized hundreds of texts verbatim and can be prompted to regurgitate that text. Has this model only been trained on code that doesn't require attribution as part of the license?
Re:GitHub Copilot by billti on Tuesday June 29, 2021 @05:21PM (#27681885)
The landing page for it states the below, so hopefully not too much of an issue (though I guess some folks may find a 0.1% risk high).

> GitHub Copilot is a code synthesizer, not a search engine: the vast majority of the code that it suggests is uniquely generated and has never been seen before. We found that about 0.1% of the time, the suggestion may contain some snippets that are verbatim from the training set.

Re:GitHub Copilot by rictic on Tuesday June 29, 2021 @08:05PM (#27683397)
If you pulled a marble out of a bag ten times a day, with a 0.1% chance each time that it was red: after a day you'd have a 1% chance of seeing a red marble, the first week you'd have a 6.7% chance, the first month you'd have a 26% chance, and the first working year you'd have a 92.6% chance of having seen at least one red marble.

Probabilities are fun!

Re:GitHub Copilot by ganzuul on Wednesday June 30, 2021 @10:53AM (#27689263)
Well within the margin of fair use.
Re:GitHub Copilot by marcan_42 on Wednesday June 30, 2021 @03:36PM (#27692595)
That's not how fair use works. It doesn't matter how unlikely it is, if Copilot one day decides to "suggest" a significant snippet of ckxd from a GPLed app, you'd better be planning to GPL your project.
Re:GitHub Copilot by hakre on Friday July 02, 2021 @09:33AM (#27711282)
No, and this has been outlined in the past why that is not the case.

e.g. https://lwn.net/Articles/61292/ and most likely only one opinion.

on the other hand, it would be interesting to learn about what the copyright implications are of

a) creating a utility like copilot (it is a software program) and contains a corpus based on copyrighted material (the database that has been trained)

b) using it to create code based on the corpus and resulting in software as a work under copyright.

Re:GitHub Copilot by geekraver on Wednesday June 30, 2021 @03:35PM (#27692591)
And you would have a whole lot of blue marbles.
Re:GitHub Copilot by propertymagnate on Thursday July 01, 2021 @04:07AM (#27697221)
I only murdered them once isn't the best of legal defenses.
Re:GitHub Copilot by Jeff_Brown on Tuesday June 29, 2021 @10:59PM (#27684382)
Automatic refactoring could be useful for avoiding a lot of dumb legal disputes.

I say dumb because I am, perhaps chauvinistically, assuming that no brilliant algorithmic insights will be transferred via the AI copilot, only work that might have been conceptually hard to a beginner but feels routine to a day laborer.

Then again that assumption suggests there'd be nothing to sue over.

Re:GitHub Copilot by Gh0stRAT on Tuesday June 29, 2021 @11:56PM (#27684697)
True, but that definitely wouldn't stop Oracle from suing over it anyway. (See the rangeCheck chapter of Oracle v Google [0])

Also, Oracle v Google opens the possibility of a fair-use defense in the event that Copilot does regurgitate a small snippet of code.

[0] https://news.ycombinator.com/item?id=11722514

Re:GitHub Copilot by jgworks on Tuesday June 29, 2021 @05:41PM (#27682079)
I'd be surprised if a company's legal department would be OK with that 0.1% risk.
Re:GitHub Copilot by viraptor on Tuesday June 29, 2021 @06:00PM (#27682315)
Google already learned that one. "There's only a tiny chance we may be copying some public code from Oracle." may not be a good explanation there.
Re:GitHub Copilot by TedDoesntTalk on Tuesday June 29, 2021 @07:46PM (#27683242)
Like wouldn’t be entertaining without the License Nazis. No code for you! (Seinfeld reference)
Re:GitHub Copilot by varispeed on Tuesday June 29, 2021 @06:56PM (#27682838)
Did they have a license to use public source code as a data source for data set though?
Re:GitHub Copilot by Jeff_Brown on Tuesday June 29, 2021 @11:07PM (#27684418)
God I wish contracts were encoded semantically rather than as plain text. I just tried to look through Github's terms of service[1]. I'd search for "Github can <verb> with <adjective> code" if I could. Instead I'm giving up.

[1] https://docs.github.com/en/github/site-policy/github-terms-o...

Re:GitHub Copilot by int_19h on Wednesday June 30, 2021 @08:42AM (#27687750)
A world in which all laws and contracts were required to be written in Lojban would be interesting.
Re:GitHub Copilot by Jeff_Brown on Wednesday June 30, 2021 @09:00AM (#27687941)
That looks hard. More politically feasible might be a language I've unfortunately forgotten the name of, ordinary English but with some extra rules designed to eliminate ambiguity -- every noun has to carry a specifier like "some" or "all" or "the" or "a", etc.
Re:GitHub Copilot by ganzuul on Wednesday June 30, 2021 @10:56AM (#27689306)
Legalese might be similar to code, and there is lots of interest in making law machine readable. So don't give up; check back later.
Re:GitHub Copilot by smackjer on Tuesday June 29, 2021 @07:50PM (#27683266)
Yes, it's public source code.
Re:GitHub Copilot by haimez on Tuesday June 29, 2021 @09:13PM (#27683814)
Public doesn’t mean it’s not encumbered by copyrights
Re:GitHub Copilot by ggreer on Wednesday June 30, 2021 @02:24AM (#27685547)
Pretty much everything is trained on copyrighted content: machine translation software, TWDNE, DALL-E, and all the GPTs. Software people are bringing this up now because it's their ox being gored. It's the same as when furries got upset about This Fursona Does Not Exist.[1][2]

1. https://news.ycombinator.com/item?id=23093911

2. https://www.reddit.com/r/HobbyDrama/comments/gfam2y/furries_...

Re:GitHub Copilot by tremon on Wednesday June 30, 2021 @06:08AM (#27686788)
To expand on your argument, pretty much every person is trained on copyrighted content too. Doesn't make their generated content automatically subject to copyright either.
Re:GitHub Copilot by malka on Wednesday June 30, 2021 @07:45AM (#27687352)
yeah, except that Oracle and google have way more lawyer power than furries artists.
Re:GitHub Copilot by ganzuul on Wednesday June 30, 2021 @11:01AM (#27689386)
You have no idea how much money they make. Some of them have payment plans for commissions.
Re:GitHub Copilot by user-the-name on Wednesday June 30, 2021 @06:18AM (#27686831)
This is an argument for why this is a bigger problem, not a smaller one.
Re:GitHub Copilot by oalae5niMiel7qu on Sunday July 04, 2021 @12:37AM (#27727254)
If it's BSD-licensed, the encumbrance doesn't matter much.
Re:GitHub Copilot by iandanforth on Tuesday June 29, 2021 @07:05PM (#27682903)
Update: Nat Friedman answered this as part of this thread on twitter:

https://twitter.com/natfriedman/status/1409883713786241032

Basically they are building a system to find explicit copying and warn developers when the output is verbatim.

Re:GitHub Copilot by Abimelex on Tuesday June 29, 2021 @05:07PM (#27681742)
Not sure how this is handled in US, but in Germany a few lines of code have in general not enough uniqueness to be licensed.
Re:GitHub Copilot by hakre on Friday July 02, 2021 @09:15AM (#27711092)
So the corpus has been compiled under license and the derivative work is eligible for distribution?
Re:GitHub Copilot by mempko on Tuesday June 29, 2021 @04:59PM (#27681652)
Finally, a faster way to spread bugs than copy/paste.
Re:GitHub Copilot by richardanaya on Tuesday June 29, 2021 @04:10PM (#27681089)
You're using the word "memorized" in a very loose way.
Re:GitHub Copilot by delaaxe on Tuesday June 29, 2021 @04:29PM (#27681314)
His point still holds, GPT-3 can output large chunks of licensed code, verbatim
Re:GitHub Copilot by tsbinz on Tuesday June 29, 2021 @05:18PM (#27681852)
How is it loose? Both in the colloquial sense and in the sense it is used in machine learning it is fitting. https://bair.berkeley.edu/blog/2020/12/20/lmmem/ is a post demonstrating it.