News for hackers. Stuff that matters.
Re:What Copilot means for open source by gus_massa on Saturday June 25, 2022 @06:14PM (#31879180)
There is a problem because some licenses require attribution, but ignoring that...

You can make a model that is trained only with BSD and MIT code, and IIRC/IIUC the result can be used with any license, including proprietary code.

You can make a second model that is trained only with BSD, MIT and GPL2 code (and perhaps GPL2+), and IIRC/IIUC the result can be only with GPL2 code.

You can make a third model that is trained only with BSD, MIT and GPL2+ and GPL3 code, and IIRC/IIUC the result can be only with GPL3 code.

AGPL, Apache, WTFPL, ... Just add them to the correct model or create a new model for them.

Re:What Copilot means for open source by q-big on Saturday June 25, 2022 @06:39PM (#31879323)
> You can make a model that is trained only with BSD and MIT code, and IIRC/IIUC the result can be used with any license, including proprietary code.

BSD and MIT license still require attribution of the used source code (there exists a MIT No Attribution License, though: https://en.wikipedia.org/w/index.php?title=MIT_License&oldid...).

Re:What Copilot means for open source by mbreese on Saturday June 25, 2022 @08:17PM (#31879863)
> BSD and MIT license still require attribution of the used source code

Which in this scenario could be accomplished by starting that “this software contains algorithmically generated code that was trained using MIT derived code from X, Y, and Z.

This attribution list would be very long, but it could be done.

I think the interesting thing here would be to compare the generated code with the original training data after the fact. If the generated code does not already exist (with some degree of similarity), then it would be okay to use. Otherwise, if it did already exist, you’d then need to attribute the authors of the chunk of code — which you’d now know.

I’m not discounting the hurdles involved, but there might be ways to overcome them.

Re:What Copilot means for open source by jimmySixDOF on Saturday June 25, 2022 @08:23PM (#31879889)
Whats to stop them from just making a huge attribution page with every possible instance and a vague statement like "the following may or may not have been incorporated in part or in whole" ?
Re:What Copilot means for open source by jacobolus on Saturday June 25, 2022 @08:52PM (#31880034)
They’d be gambling that such a crummy attribution would hold up in court. Generally judges aren’t too amused by people’s efforts to find wacky loopholes that make a mockery of the law.

On the other hand, open source licenses haven’t been tested thoroughly in court, so maybe the result would be to throw out such attribution requirements entirely. The main relevant case to date is https://en.wikipedia.org/wiki/Jacobsen_v._Katzer

Re:What Copilot means for open source by wolpoli on Saturday June 25, 2022 @07:02PM (#31879447)
Great. Now developers will need to check license compatibility before picking the copilot model.

In reality through, we'll all just end up using the MIT No Attribution License copilot.

Re:What Copilot means for open source by q-big on Saturday June 25, 2022 @07:27PM (#31879589)
Developers already have to check license compatibility. If copilot implemented such a feature, this would just represent the status quo.
Re:What Copilot means for open source by xigoi on Sunday June 26, 2022 @04:37AM (#31882148)
> In reality through, we'll all just end up using the MIT No Attribution License copilot.

Great, so GPL code would be left alone. I don't see how that's a bad thing.

Re:What Copilot means for open source by winety on Saturday June 25, 2022 @06:42PM (#31879339)
> There is a problem because some licenses require attribution, but ignoring that...

Surely the solution would be to give credit to every author from the training corpus. I am looking forward to the 10 000 lines of copyrights in every header. :P

If Microsoft had trained it on its own code, there would be no such problems. Surely a company as large as Microsoft has produced enough code over the years to create a large enough training dataset.

Re:What Copilot means for open source by ShamelessC on Saturday June 25, 2022 @07:44PM (#31879694)
> If Microsoft had trained it on its own code, there would be no such problems.

I keep seeing this sentiment from the GPL/"laundering" side of the debate.

Believe me, Microsoft wouldn't have released this thing (after what, 6 months of beta testing?) if they thought they had any "problems" at all.

I'm not saying I don't sort of agree with you, but is there no room for what's actually _likely_ to happen in this debate? Because as best as I can tell, they aren't going to see any real legal issues from this.

(There's also an option to remove generations that result in a collision with actual GitHub code, just fyi)

I feel like when the singularity happens HN is going to be flooded with programmers mad that they got automated away despite it very much being one of the primary goals of computer science and software engineering. This stuff is a kind of just a fact of life now.

Salesforce trained models (on GitHub) competitive with copilot without needing to own GitHub. I would spend less time worrying about how to lawyer up and more time figuring out how you're going to adapt to these new tools. That's the gig.

Re:What Copilot means for open source by belorn on Sunday June 26, 2022 @06:13AM (#31882565)
Microsoft made a bet that releasing Copilot will mean more profits than the legal issues might cost them. This doesn't mean anything if there is or isn't a problem with it.

The simply way to test the legal theory behind copilot would be to write a AI that write music notes, using music scraped from youtube or any other large music library. The idea that one can train on "public available material" and produce algorithms that output large chunk of copyrighted material is a bit untested in court, but go against the wrong target and we will quickly see a response. We have actually seen some traces of this with news bots that scrapes news site and produce "novel" interpretation of existing news, especially sports news.

Re:What Copilot means for open source by ShamelessC on Sunday June 26, 2022 @06:47AM (#31882701)
This is what I'm talking about. Are we commenting on a news report of someone actually doing what you're describing - filling a suit or legal action of any kind against MS for this?

No, we're not. Further, Amazon just announced a similar product and Salesforce has literally _released weights_ for their code models. You can't put the genie back in the bottle.

Actually enforcing any action when the representations are learned rather than hard-coded just seems impossible to me. They have a check box that removes any predictions matching existing code - that basically makes it impossible to discern the source since this will be based on some subjective "semantic closeness" BS.

Re:What Copilot means for open source by Ygg2 on Sunday June 26, 2022 @07:48AM (#31883107)
> Believe me, Microsoft wouldn't have released this thing (after what, 6 months of beta testing?) if they thought they had any "problems" at all.

They would. Did you just forget TAI? Microsoft didn't consider 4chan would train her to be the ultimate racist.

Re:What Copilot means for open source by iostream24 on Sunday June 26, 2022 @03:43AM (#31881930)
As you mentioned “WHEN the singularity happens” as an article of religious faith, followed by a vast leap of faith in proposing no-code tools taking over programming, I’m afraid that you adapting to the reality on the ground will be the difficult part here, rather than the lack of adaptation by programming writ large.

Do you work in marketing? Do you program?

Re:What Copilot means for open source by ShamelessC on Sunday June 26, 2022 @06:22AM (#31882597)
I'm only somewhat certain that the singularity is inevitable (and obviously my predictions aren't worth betting on anyways) - sorry for using poetic language.

I'm a machine learning engineer, amateur researcher and open source contributor. Before that I was a software engineer for 8 years.