News for hackers. Stuff that matters.
Re:I do not agree with Github's use of copyrighted code as t... by kuon on Saturday July 03, 2021 @04:27PM (#27724615)
I've given thousands of hours to open source projects, I really think open source is a pillar of modern society. So you would think I am all for something like copilot, but no.

At first I thought this was a great feature, because easier access to code, but after some reflection, I am also very skeptical.

I am able to make my code open source, because I can make a living out of it, and I have a lot of open source code that I love to share for things like education or private stuff, but if you want to use it for something real, you need to hire me. If you can suck all the code without even I noticing it, that's not fair.

The other thing is code quality. I don't want to sound rude, but there are tons of bad code around. Not necessarily because the author is unskilled, but because the code might not need to be high quality (for example I wrote a script to sort my photos, it was very hastily written and specific to my usage, I used once and was done with it). Also, there are some bad/wrong pattern that are really popular.

I am surprised you are able to DMCA a twitch stream because someone whistle india jones theme but in this case it is considered fair use.

Re:I do not agree with Github's use of copyrighted code as t... by jefftk on Saturday July 03, 2021 @05:30PM (#27725080)
> have a lot of open source code that I love to share for things like education or private stuff, but if you want to use it for something real, you need to hire me. If you can suck all the code without even I noticing it, that's not fair

Co-pilot aside, that's already how it works today. If you make something open source, I can use your code to power my business, and I'm under no obligation to hire you. It's great when companies give back to open source, either by supporting the projects they depend on, or by open sourcing their own internal projects, but it's not obligatory.

If you don't want people to independently profit from your code, don't release it under a license that allows commercial use

Re:I do not agree with Github's use of copyrighted code as t... by johnday on Saturday July 03, 2021 @06:09PM (#27725344)
It sounds like the person you're responding to already releases their code under a non-commercial license. The problem with Copilot is that it may allow commercial enterprises to avoid such a license by copying the code verbatim from their repositories, possibly without any party involved knowing that it's happened.
Re:I do not agree with Github's use of copyrighted code as t... by tluyben2 on Sunday July 04, 2021 @06:48AM (#27728688)
But this is only for snippets right? Which I think is the issue: it has never been tested in court. Basically if you put:

     /* web user management */
And copilot comes up with complete user management lifted out of another repo with all pages, db structures and logic but the copyrights stripped then yes. But, as I understand it, that is not what it does. You will need to slowly tell it every tiny part of how user mamagement is to be implemented and for those snippets it copies code. But when you are done, there might be snippets from 100s of different repositories potentially. I think it is hard to show that breaks copyright as many people already come up with roughly the same stuff 1000s times/day all over the world.
Re:I do not agree with Github's use of copyrighted code as t... by johnday on Sunday July 04, 2021 @10:02AM (#27729695)
> But when you are done, there might be snippets from 100s of different repositories potentially.

Potentially, but not necessarily. It's possible also that if there is only one close match for the logic required, it may produce verbatim something it's already seen. GPT is known to do this for sufficiently precise inputs.

Re:I do not agree with Github's use of copyrighted code as t... by jefftk on Saturday July 03, 2021 @06:48PM (#27725624)
Where are you seeing that they are using a non-commercial license?

(And non-commercial licenses are not open source: https://opensource.org/osd)

Re:I do not agree with Github's use of copyrighted code as t... by johnday on Saturday July 03, 2021 @07:34PM (#27725914)
To me, the sentence

> I have a lot of open source code that I love to share for things like education or private stuff, but if you want to use it for something real, you need to hire me.

implies that they have code which they are sharing under that proviso. Do you read it differently?

You are right about the technical distinction of open source from source-available. I think that the GGP (and myself) were both using it colloquially as a shorthand for source-available.

Re:I do not agree with Github's use of copyrighted code as t... by oefrha on Saturday July 03, 2021 @11:11PM (#27726958)
Is Copilot trained on source available code? If not, then whatever restrictions you may want to apply with your source available code isn’t relevant. The debate is about copyleft.
Re:I do not agree with Github's use of copyrighted code as t... by viktree on Sunday July 04, 2021 @12:33AM (#27727244)
The RMS function in Quake Source code exists in the copilot training set (see https://news.ycombinator.com/item?id=27710287) is covered under GPL which is source available (see https://github.com/id-Software/Quake-III-Arena/blob/master/c...)
Re:I do not agree with Github's use of copyrighted code as t... by oefrha on Sunday July 04, 2021 @01:25AM (#27727431)
GPL is an open source license. Please read the ancestors to understand what’s being discussed here.

Edit: I was clearly making a distinction between open source (as in covered by an OSI-approved open source license) and only source-available, rather than treating source-available as a superset of open source.

Re:I do not agree with Github's use of copyrighted code as t... by krono on Saturday July 03, 2021 @06:04PM (#27725310)
> If you make something open source, I can use your code to power my business

"Open source" isn't a license. You're not allowed to just use any open source software that doesn't contain a license by default.

Re:I do not agree with Github's use of copyrighted code as t... by jefftk on Saturday July 03, 2021 @06:46PM (#27725615)
The standard definition of "open source" is https://opensource.org/osd, which has:

"Open source doesn't just mean access to the source code. The distribution terms of open-source software must comply with the following criteria: ... The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research."

Re:I do not agree with Github's use of copyrighted code as t... by krono on Saturday July 03, 2021 @08:04PM (#27726081)
But if there's no license, it's not the license that restricts but common copyright law.
Re:I do not agree with Github's use of copyrighted code as t... by jefftk on Saturday July 03, 2021 @08:12PM (#27726112)
If there's no license, then it's not open source. This is a term with a standard meaning, and it doesn't just mean that the source is available for reading
Re:I do not agree with Github's use of copyrighted code as t... by krono on Saturday July 03, 2021 @08:57PM (#27726446)
Ah right, I honestly did not know!

Still, if you come across some published source code that does not appear to be licensed and does not specifically define itself as being "Open Source" as defined by the "Open Source Initiative", copyright law applies and you're not allowed to just take it and use it.

GitHub specifically uses the words "source code from publicly available sources" when talking about what they used to train their model on.

As far as I'm aware public code repos aren't by default "Open Source" as defined by the "Open Source Initiative".

Re:I do not agree with Github's use of copyrighted code as t... by jefftk on Saturday July 03, 2021 @10:00PM (#27726724)
Sorry, I was specifically responding to how my parent views open source.

I agree that Copilot was probably trained in part on public code that isn't open source -- GitHub's claim (not saying I agree) is that they don't need a license to train on code.

Re:I do not agree with Github's use of copyrighted code as t... by krono on Sunday July 04, 2021 @01:55AM (#27727537)
No need to apologise!

In this post's comment section alone many use the term "open source" but really mean to say "public-source", others use the two terms interchangeably even when they seem to be aware of the distinction, and then there are people who seem to think that by making your GitHub repo public it becomes OSD-spec "open source" and with that free to use.

It's just so confusing and easy to misinterpret each-others' true meaning.

Thanks for making me aware of the existence of that OSD OSS spec btw! Came across the (recovered) blog post where the term was first announced http://www.catb.org/~esr/open-source.html.

Re:I do not agree with Github's use of copyrighted code as t... by Denvercoder9 on Saturday July 03, 2021 @06:43PM (#27725595)
The conventional definition of "open source" is software licensed under a OSI-approved license.
Re:I do not agree with Github's use of copyrighted code as t... by krono on Saturday July 03, 2021 @08:11PM (#27726105)
Does that mean general copyright does not apply to unlicensed open source software? Do any legal precedents exist related to this?

I'm honestly curious now.

Re:I do not agree with Github's use of copyrighted code as t... by jefftk on Saturday July 03, 2021 @10:01PM (#27726728)
"unlicensed open source software" isn't really a thing. If you push something to GitHub with no license it's source-available, not open source.
Re:I do not agree with Github's use of copyrighted code as t... by bogwog on Saturday July 03, 2021 @08:44PM (#27726360)
> I can use your code to power my business, and I'm under no obligation to hire you.

Make sure you read those licenses. Just because something is open source doesn't mean that you're free to use it for whatever you want.

There are some projects that are open source and free for non-commercial use only.

Re:I do not agree with Github's use of copyrighted code as t... by jefftk on Saturday July 03, 2021 @10:03PM (#27726733)
> open source and free for non-commercial use only

That's not open source: https://opensource.org/osd

Re:I do not agree with Github's use of copyrighted code as t... by saurik on Saturday July 03, 2021 @10:26PM (#27726820)
You have said this multiple times on this thread now, but in addition to how the OSI getting to unilaterally define the technical definition of "open source" being controversial even within the software engineering community, you really need to be looking at the definition of words "descriptively" and most people seem to put even "shared source" (look but don't touch) models as subsets of the class "open source".

Regardless: Copilot doesn't only pick up "open source" code... it picks up any code that has been published under any reason including the large amounts of code that is on GitHub without any license at all or which was literally stolen and leaked onto GitHub.

Meanwhile, even open source licenses have restrictions, whether they be "you can't use my work without agreeing to contribute back your work to the collective", various forms of automatic patent grants and associated retaliation clauses, or merely "you have to credit me", a simple limitation almost all open source software comes with which Copilot launders away.

Re:I do not agree with Github's use of copyrighted code as t... by jefftk on Sunday July 04, 2021 @02:07PM (#27731495)
> the OSI getting to unilaterally define the technical definition of "open source" being controversial even within the software engineering community

I don't think this is controversial? The OSI defined the term when they introduced it, in the late 90s. When Microsoft came out with "shared source" there was a huge amount of pushback from people saying "don't think that this is open source" (ex: https://www.linuxjournal.com/article/5496)

> Copilot doesn't only pick up "open source" code... it picks up any code that has been published under any reason

I agree. I'm not defending Copilot, and I think the legal questions here are interesting and tricky. My pushback here and throughout this page has been when people say non-commercial licenses are open source -- this thread started with kuon saying "I have a lot of open source code that I love to share for things like education or private stuff, but if you want to use it for something real, you need to hire me"

Re:I do not agree with Github's use of copyrighted code as t... by oefrha on Saturday July 03, 2021 @11:16PM (#27726974)
> it picks up any code that has been published under any reason including the large amounts of code that is on GitHub without any license at all or which was literally stolen and leaked onto GitHub.

You are stating a rather arbitrary assumption of yours as a fact, unless you have concrete sources or evidence.

Re:I do not agree with Github's use of copyrighted code as t... by kuon on Sunday July 04, 2021 @10:01AM (#27729686)
This is the gist of it. I do not agree with OSI definition of open source but I won't argue about it here.

There are many OSI approved licenses with restrictions on use, like "your software must also be open source" or "contribute back your changes" or "give me attribution"...

Re:I do not agree with Github's use of copyrighted code as t... by bogwog on Sunday July 04, 2021 @12:03PM (#27730662)
My definition of "open source" is that the source code is publicly available. That's it.

Just because that organization got their hands on a premium domain name doesn't mean they get to decide what that term means.

You shouldn't assume random strangers online know that you're referring to OSI's definition when you say "open source".

Re:I do not agree with Github's use of copyrighted code as t... by jefftk on Sunday July 04, 2021 @01:55PM (#27731408)
> My definition of "open source" is that the source code is publicly available. That's it.

If I defined "open source" to mean that changes the source code must be released publicly, it's going to be pretty hard for me to talk to all the other people who already use "open source" to mean something else. There is already a standard term for the source code being publicly available: "source available": https://en.wikipedia.org/wiki/Source-available_software. You're also welcome to invent and attempt to popularize any alternative term you want, but using idiosyncratic definitions makes discussion less clear.

> Just because that organization got their hands on a premium domain name doesn't mean they get to decide what that term means.

The OSI didn't just claim "opensource.org" -- the folks behind it coined (https://opensource.com/article/18/2/coining-term-open-source...), introduced, and popularized the term "open source" over two decades ago. From the beginning they have used the same definition, which was derived from the Debian project's Free Software Guidelines.

They are not also not the only ones who use the term that way. Wikipedia has "Licenses which only permit non-commercial redistribution or modification of the source code for personal use only are generally not considered as open-source licenses" -- https://en.wikipedia.org/wiki/Open_source

Re:I do not agree with Github's use of copyrighted code as t... by judge2020 on Saturday July 03, 2021 @05:16PM (#27724995)
> but if you want to use it for something real, you need to hire me.

No I do not. Even strictly proprietary code can be copied and used in a for-profit way without approval as long as it qualifies for fair use.

Re:I do not agree with Github's use of copyrighted code as t... by okamiueru on Saturday July 03, 2021 @06:37PM (#27725542)
"Something real" and "fair use" don't get along. I'm also not sure fair use trumps licensing, since one is a copyright issue, and the other is the terms of use. You don't get to copy a snippet of GPL code and get away by calling it fair use. At least, I hope it isn't the case.
Re:I do not agree with Github's use of copyrighted code as t... by judge2020 on Saturday July 03, 2021 @08:41PM (#27726343)
> I'm also not sure fair use trumps licensing, since one is a copyright issue, and the other is the terms of use.

Licenses and copyright are strictly related - the 'terms of use' in the form of a license simply is a grant for someone to reuse something in full granted they uphold their end of the bargain which might mean (for the GPL) relicensing code that touches said licensed code; but, if someone doesn't agree to the license or they don't uphold their end (such as by releasing their own code under the same license), the license states that the use is now invalid and they're not allowed to copy it in the permissive form provided unless the use passes the fair use doctrine.

Now 'fair use' is actually a pretty high bar, and most especially for code - feel free to read 17 USC 107 [0] which lays out how this is determined. What's tough for code is that, in terms of for copying code or using a library, it usually doesn't qualify for the initial requirement "for purposes such as criticism, comment, news reporting, teaching, scholarship, or research, is not an infringement of copyright". Unless you're taking GPL code and writing up how bad it is, or how efficient is is, chances are the use doesn't fit into fair use.

So while I think I was indeed a bit obtuse in saying that code could be used in a fair use way (since that's not what happens in these contexts) it's technically possible.

0: https://www.law.cornell.edu/uscode/text/17/107

Re:I do not agree with Github's use of copyrighted code as t... by xyzzy_plugh on Saturday July 03, 2021 @06:16PM (#27725391)
> I am able to make my code open source, because I can make a living out of it, and I have a lot of open source code that I love to share for things like education or private stuff, but if you want to use it for something real, you need to hire me. If you can suck all the code without even I noticing it, that's not fair.

If you license your software such that I can do whatever I want with it, then I can do whatever I want with it. I don't see how you can then go on to claim it isn't fair if I'm using as you allow.

Re:I do not agree with Github's use of copyrighted code as t... by CameronNemo on Saturday July 03, 2021 @06:37PM (#27725534)
Personally, I make a distinction between legal and socially acceptable.

If one of the richest corporations on Earth can't be bothered to share patches for permissively licensed code that they use, I will gladly shame them.

It's a different story for a small shop with no legal department and wariness about being sued over its use of open source code.

Re:I do not agree with Github's use of copyrighted code as t... by ricardobeat on Saturday July 03, 2021 @06:24PM (#27725446)
> I am surprised you are able to DMCA a twitch stream because someone whistle india jones theme but in this case it is considered fair use

Why is it surprising? Indiana Jones is private IP. The code was published with an OSS license explicitly authorizing its use.

Re:I do not agree with Github's use of copyrighted code as t... by krono on Saturday July 03, 2021 @09:05PM (#27726491)
From the Copilot FAQ, notice there is no specific mention of the term "Open Source":

  > It has been trained on a selection of English language and source code from publicly available sources, including code in public repositories on GitHub.
Meaning GitHub might have also been sourcing from public source / source-available projects that were not OSS licensed at all.
Re:I do not agree with Github's use of copyrighted code as t... by progfix on Sunday July 04, 2021 @04:41AM (#27728166)
> I have a lot of open source code that I love to share for things like education or private stuff, but if you want to use it for something real, you need to hire me.

Then you should share your code with a license that reflects that.

Re:I do not agree with Github's use of copyrighted code as t... by kuon on Sunday July 04, 2021 @09:55AM (#27729655)
I do. But as long as the repository is public, copilot will feed on it. At least this is what I understood.
Re:I do not agree with Github's use of copyrighted code as t... by edem on Saturday July 03, 2021 @05:47PM (#27725196)
I second the DMCA, it is ridiculous.