Live data from Hacker News

GitHub Copilot is generally available

github.blog

41–50 of 796 posts

Re: GitHub Copilot is generally available

#41

Does Copilot already display the licenses of the code it might insert/suggest, or assure the developer, that the inserted/suggested code is not a verbatim copy of existing code? How can developers be sure, that they are not violating licenses by using Copilot?

My sincere question is what if a developer looks at some GPL code, and then that developer encounters a situation in a corporate project where-in he uses the GPL code from memory, is that already a violation? So to avoid a violation a developer needs to perform a mind-wipe?

If the code is nontrivial, then yes, it is a violation. To be in compliance, you need to write your own code.

If I am writing a novel and I copy a section verbatim from another novel, I am infringing on the other novelist's copyright, regardless of whether I wrote it from memory or not.

And this makes sense. For a trivial operation, there might be only one way to write the code. That's not copyright infringement, just like you're not infringing on an author's copyright by occasionally writing a sentence that was similar to theirs. For a nontrivial operation, you can easily write your own code without copying someone else's work.

Remember also that you can use others' ideas. Copyright only cares about the code itself. If there's a clever trick that you've seen someone use, you're free to use the same clever trick as long as 1) they didn't patent it and 2) you're not actually copying their code

Re: GitHub Copilot is generally available

#43

IMHO, it's still far from GA quality/usability. A must-have feature that's missing is a toggle switch that lets you temporarily turn it off. Without a feature, it can get really noisy.

This may vary in the IDEs they support, but theres an "Activate Copilot" toggle button right in the status bar in VSCode to toggle on and off instantly that appears on every editor window if the extension is installed.

Re: GitHub Copilot is generally available

#44
I'll be honest I love the technology involved in this product but I hate that it's another aspect of monetizing the efforts and humanity of millions of people.

It's incredible that we're able to do these things but awful at the same time since this data was / is not theirs. Same as something like Dall-E.

Re: GitHub Copilot is generally available

#45

Does Copilot already display the licenses of the code it might insert/suggest, or assure the developer, that the inserted/suggested code is not a verbatim copy of existing code? How can developers be sure, that they are not violating licenses by using Copilot?

From the FAQ

""" We built a filter to help detect and suppress the rare instances where a GitHub Copilot suggestion contains code that matches public code on GitHub. You have the choice to turn that filter on or off during setup. With the filter on, GitHub Copilot checks code suggestions with its surrounding code for matches or near matches (ignoring whitespace) against public code on GitHub of about 150 characters. If there is a match, the suggestion will not be shown to you. We plan on continuing to evolve this approach and welcome feedback and comment. """

Re: GitHub Copilot is generally available

#46

Does Copilot already display the licenses of the code it might insert/suggest, or assure the developer, that the inserted/suggested code is not a verbatim copy of existing code? How can developers be sure, that they are not violating licenses by using Copilot?

Previously discussed at length here: https://news.ycombinator.com/item?id=27773157 > or assure the developer, that the inserted/suggested code is not a verbatim copy of existing code No, it does not do that. > How can developers be sure, that they are not violating licenses by using Copilot There are no clear answers.

from Microsofts standpoint the shot across the bow for open source licenses is clear: do you have enough lawyers and experts to convince a gerontocracy of the legislative branch of the US government that its not "okay because its AI" because if you dont, then thanks for the code nerd.

Re: GitHub Copilot is generally available

#47
post #42

Are there any plans for GitHub Copilot to ship an API? I think it would be interesting to set it up w/ my side project https://codeamigo.dev

The API version of copilot exists. It's called OpenAI Codex. https://openai.com/blog/openai-codex/

Yeah but it takes forever to get off the waitlist (I've been waiting for almost a year)

Re: GitHub Copilot is generally available

#48

I hope I never again have to work on a codebase/language where copilot would be worth subscribing to.

Nonsense. I've been using it to write tests, and it does a phenomenal job. If I write out the positive case, it will suggest the negative case and help me through the various permutations. This has by-far been the most useful part of co-pilot so far.

It's nothing I couldn't do myself, but just makes my job that much easier and quicker

Post reply on HN