3 ms·
I also use Copilot a lot, and while it does suggest large function bodies, I'm not sure that it's "regurgitating" them (though it could be...I don't know). I su
by mdswanson 4y ago
I also use Copilot a lot, and while it does suggest large function bodies, I'm not sure that it's "regurgitating" them (though it could be...I don't know). I suspect that it's seen so many function bodies that are similar that it generates another similar output. Like autocomplete in a word processor has seen so many similar chunks of text that it reproduces them based on past experience. I don't know this as a fact, of course. I'm just reacting to the word "regurgitating."
- philipwhiuk 4y agoIt regenerates the comments from the Quake 2 fast inverse square root function.
- mdswanson 4y agoJust did a quick github.com search on that function (with comments) and found around 131 matches. Many without a license. So yes, I believe that it would produce those comments...because it's seen humans repurpose and reuse that code without attribution or license many times. Definitely an issue...but not as simple as copy and paste.
- bamboozled 4y agoThe fact you don't know is the problem. I can't use co-pilot because if I am stealing someone else's copyrighted code I'm in trouble from a legal standpoint.
- mdswanson 4y agoI definitely agree that we should find out. I've used Copilot almost since its inception, and I've seen nothing like a large copied/pasted function. If anything, it's mostly a single/double line autocomplete based on what I would have written anyway.