News for hackers. Stuff that matters.
Re:Copilot sells code other people wrote by highwaylights on Thursday June 23, 2022 @06:51AM (#31847311)
This seems disingenous.

People don’t have a problem that AI is being used in some form to provide the service.

The complaint is pretty clearly that code is being lifted from repositories without attribution or compensation, and being redistributed into other applications.

How impressive the work behind copilot is or is not really isn’t relevant.

Re:Copilot sells code other people wrote by tiborsaas on Thursday June 23, 2022 @07:50AM (#31847745)
I've made use of a ton of open source tools and have not paid any attribution or compensation. By made use of, I mean I used them as their intended purposes and not their source code. I have a FOSS OS, server, CMD tools and libraries powering my ideas, it's part of the deal that I don't have to pay.

If I modify them I know what I have to do, but Co-pilot is somewhere in-between the two, it's abstracting knowledge from these codebases. We don't yet know how to deal with it properly, but this will change with time, that's why having these conversations are important.

I think that AI models will gain a new legal state, whatever they learn will be considered original work if it's not repeating non-trivial work 1:1.

Re:Copilot sells code other people wrote by moffkalast on Thursday June 23, 2022 @07:56AM (#31847794)
> it's not repeating non-trivial work 1:1

But that's basically all copilot does? It's just a fancy compression system with a search function.

Re:Copilot sells code other people wrote by tiborsaas on Thursday June 23, 2022 @08:11AM (#31847924)
No, it customizes the snippets to your context, the code is synthesized and not looked up in a db like a web search engine.
Re:Copilot sells code other people wrote by ay on Thursday June 23, 2022 @08:40AM (#31848209)
I tried it for the first time today, so treat this with a grain of salt.

https://twitter.com/ayourtch/status/1539928018138931200 is my experiment. The code in question has a very specific format - it’s C with a lot macro sauce. I described the intent in the comment and pasted the includes lines. Then I started the #define of a unique looking token, and it added the lines with the correct boilerplate. What you see in gray is more boilerplate that it suggests when prompted.

I would dare to assert that “xxxayourtchtestxxx” is not going to be in anyone else’s code than mine.

So you can see the example of copilot generating completely new code.

Not saying it’s 100% of what it does - but this side looks very useful.

I also did a test with Rust: described a function canonicalizing MAC address, and then when it saw ![test] prompts, it started to make very passable unit tests for the function which was not even written yet - it was only the comment of what it would do.

Also a massively useful lever to have, if it can do so consistently.

My attempts to make it generate a bug-free canonicalization function didn’t work - but it was interesting to see it try different approaches based on the existing test code (and no, they didn’t always satisfy the tests, unlike one would expect :)

So this angle is “pair programming with a creative novice”, which also can be useful - it can give ideas to explore that you didn’t think of.

Of course this was all fairly trivial code, I do not know yet how it will behave in a more tricky situation.

Re:Copilot sells code other people wrote by moffkalast on Thursday June 23, 2022 @08:31AM (#31848107)
But it kind of is when you think about it. Network weights are just a db written in an incomprehensible format and the synthesis part is searching and converting it back to readable data.

Even if it changes the var names and formatting a bit, it's still at best highly derivative. And at worst it spits out the exact code verbatim.

Re:Copilot sells code other people wrote by tiborsaas on Thursday June 23, 2022 @08:57AM (#31848407)
> Network weights are just a db written in an incomprehensible format

That makes all the difference IMHO, its complexity makes it much more than "just a DB". The synthesis part takes into account the context also, so it does intelligent things automatically, a smart SQL query does not.

My brain also works kinda like this. My knowledge is encoded in an incomprehensible format and I convert my knowledge into code based on the problem at hand.

Re:Copilot sells code other people wrote by csee on Thursday June 23, 2022 @07:01AM (#31847395)
This is how it always works, though. Moderna is standing on the shoulders of centuries of cumulative human knowledge without compensating all the sources of that knowledge. Musicians learn from other musicians and imitate to an extent, which is why all the musicians in a genre sound very similar, and we don't see present day rappers compensating the previous generation of rappers.

This is where some modest taxation comes in. To reallocate a slice of the output of value creation to its actual source in a rough kind of way wherever more direct compensation isn't feasible.

Re:Copilot sells code other people wrote by cycomanic on Thursday June 23, 2022 @07:12AM (#31847466)
> Musicians learn from other musicians and imitate to an extent, which is why all the musicians in a genre sound very similar, and we don't see present day rappers compensating the previous generation of rappers.

You clearly don't know how copyright around sampling works. Yes rappers are paying shitloads to previous generation musicians for samples they use.

Re:Copilot sells code other people wrote by csee on Thursday June 23, 2022 @07:21AM (#31847530)
Sure, if we're talking about sampling, which is analogous to co-pilot copy and pasting chunks of code verbatim (which we've seen happen). But the complaints about co-pilot go far deeper than that. Quoting from the tweet: "it just sells code other people wrote". Do musicians "just" copy from all the people they've been inspired by and learned from?
Re:Copilot sells code other people wrote by cycomanic on Thursday June 23, 2022 @12:32PM (#31851508)
What does "inspired" mean in the context of a computer program?
Re:Copilot sells code other people wrote by jacquesm on Thursday June 23, 2022 @07:03AM (#31847412)
Yes, but those humans are humans, not machines. With machines the scale changes dramatically. Which, incidentally is something copyright law has addressed explicitly: if you mechanically transform at best you end up with a derived work.
Re:Copilot sells code other people wrote by csee on Thursday June 23, 2022 @07:09AM (#31847445)
I don't understand the difference between Co-Pilot on the one hand and Moderna (on the shoulders of medical research) or SpaceX (on the shoulders of physics knowledge and cumulative rocket engineering knowledge) on the other. They all heavily use technology, automation and machines. I don't see where the distinction is coming from, and if there is a technical legal distinction, is it an ethically important one?
Re:Copilot sells code other people wrote by jacquesm on Thursday June 23, 2022 @07:28AM (#31847582)
The distinction is a legal one: intellectual property can not be re-used without permission of the rights holder, be it a patent or a chunk of source code.

And you can bet that SpaceX using physics knowledge and cumulative rocket engineering knowledge are very careful to either license the tech they use or be very explicit about documenting their own.

That you can't see the difference is entirely on you, going 'against the flow' of society sometimes leads to change but more often it simply results in friction and a lack of comprehension.

Keep in mind that open source is based on copyright law, and without copyright law the protections that open source offers would be gone.

To give an extreme example: if you had a chunk of software that was constructed in such a way that it would spit out a complete copy of 'the Gimp' without the license file if you started to write an image processing program that would be a very clear case of copyright violation.

If you then start breaking the Gimp down into smaller and smaller re-usable fractions at some point you might be able to argue that such a generic and oft used snippet should be free of copyright. But that only works as long as you then don't string together a whole pile of pieces that you each copied somewhere else, the whole idea is that your creation is an original one.

Medical research (which quite often leads to patents, which I don't believe should be possible, especially if that research was publicly funded) and physics knowledge are of a different kind than copyrighted program code. The latter would be better compared to universally present language constructs and constraints, such as 'memory management', 'data manipulation' etc. Once you make those explicit in an implementation copyright applies.

Or, to make another analogy: it's like comparing the skill of writing to the product of that skill. The skill isn't protected, but the output of the act of writing is.

Re:Copilot sells code other people wrote by Xunjin on Thursday June 23, 2022 @08:00AM (#31847832)
An amazing argument and analogy, also I do agree about Medical research, being possible to patent a work which is publicly funded is an A*** move.
Re:Copilot sells code other people wrote by meheleventyone on Thursday June 23, 2022 @07:25AM (#31847560)
There are thousands of novel decisions in the work of Moderna and SpaceX beyond their cultural starting points. Same thing with art. Copilot isn't inventing nor is DALLE-2 being artistic.
Re:Copilot sells code other people wrote by lelanthran on Thursday June 23, 2022 @07:46AM (#31847717)
> I don't understand the difference between Co-Pilot on the one hand and Moderna (on the shoulders of medical research) or SpaceX (on the shoulders of physics knowledge and cumulative rocket engineering knowledge) on the other. They all heavily use technology, automation and machines. I don't see where the distinction is coming from, and if there is a technical legal distinction, is it an ethically important one?

They are all in compliance with intellectual property laws? Seriously, that's a bloody big difference.

Co-pilot is not in compliance with many of the source code it is using!

Whether you like it or not, compliance with the law is necessary.

Re:Copilot sells code other people wrote by Ygg2 on Thursday June 23, 2022 @07:28AM (#31847586)
> I don't see where the distinction is coming from

Humans use reasoning. Copilot just guesses the likeliest next word.

See the Quake's fast inverse sqrt code incident: https://twitter.com/mitsuhiko/status/1410886329924194309

Re:Copilot sells code other people wrote by Dracophoenix on Thursday June 23, 2022 @12:22PM (#31851325)
> This is where some modest taxation comes in. To reallocate a slice of the output of value creation to its actual source in a rough kind of way wherever more direct compensation isn't feasible.

I was with you until this statement. The vast majority of society consumes, but doesn't create something new in the process. I'm bewildered as to why you think taxation is a solution rather than a disincentive towards creating. As far as compensating the giants upon whose shoulders most stand, there are plenty of vehicles for that: royalties, patents, copyrights, pensions, awards and prizes, paid fellowships, etc. These are relatively easy to calculate and write a contract for.