Live data from Hacker News

GitHub Copilot available for JetBrains and Neovim

github.com

11–20 of 446 posts

Re: GitHub Copilot available for JetBrains and Neovim

#11
post #2

Can any users give their opinion on how it's helping their productivity? What problems are they finding, if any?

What I like most about Copilot is seeing different programming styles suggested to me

For example, I didn't know about self.fail() in unittests and had never used it, but Copilot suggested it and it produced the most readable version of the unit test

Re: GitHub Copilot available for JetBrains and Neovim

#12

Earlier quoted context omitted.

I only played around with it on OpenAI but it's the same model as far as I know. It's pretty good at regurgitating algorithms it's seen before. It's not good at all at coming up with new algorithms. It's very good at translating between programming languages, including pseudocode. It can write a lot more valid code much quicker than any human, and in a whole slew of languages. I haven't had the urge to use it much af…

Your response makes me wonder if poisoning the well is possible by submitting code to Github with multiple languages and coding styles. A single file with a function signature written in Javascript and the body written in Python + Ruby. Enough code would surely break the AI model behind it. Unless Copilot has some sort of ingestion validation which wouldn’t surprise.

In any training with code I've done, we've written a parser that validates against tree sitter grammars to make sure it's at least syntactically valid against some known subset of languages we're training on.

Re: GitHub Copilot available for JetBrains and Neovim

#13

Earlier quoted context omitted.

I only played around with it on OpenAI but it's the same model as far as I know. It's pretty good at regurgitating algorithms it's seen before. It's not good at all at coming up with new algorithms. It's very good at translating between programming languages, including pseudocode. It can write a lot more valid code much quicker than any human, and in a whole slew of languages. I haven't had the urge to use it much af…

Your response makes me wonder if poisoning the well is possible by submitting code to Github with multiple languages and coding styles. A single file with a function signature written in Javascript and the body written in Python + Ruby. Enough code would surely break the AI model behind it. Unless Copilot has some sort of ingestion validation which wouldn’t surprise.

Probably but you would have to submit an absurdly large amount of code to make a dent. Practically unreasonable considering their training corpus is also increasing per lines of public code submitted on github.

So not only would you have to submit a insanely large amount of code but you're also racing against literally millions of users writing legitimate code at any period of time.

Re: GitHub Copilot available for JetBrains and Neovim

#14
post #2

Can any users give their opinion on how it's helping their productivity? What problems are they finding, if any?

Tried it out for a while, and it's clear that it's trying to get people to be faster at writing boilerplate, not get people to write better code. I'm a bit scared for what this means as I don't think being able to faster write boilerplate is something worthwhile. The example ed_elliott_asc made is one of those examples where instead of fixing things so you don't have to repeat yourself, copilot makes it easy to just…

> I don't think being able to faster write boilerplate is something worthwhile

But do you believe people being slower at writing boilerplate is undesirable?

Re: GitHub Copilot available for JetBrains and Neovim

#16
post #2

Can any users give their opinion on how it's helping their productivity? What problems are they finding, if any?

Tried it out for a while, and it's clear that it's trying to get people to be faster at writing boilerplate, not get people to write better code. I'm a bit scared for what this means as I don't think being able to faster write boilerplate is something worthwhile. The example ed_elliott_asc made is one of those examples where instead of fixing things so you don't have to repeat yourself, copilot makes it easy to just…

Writing a slightly abstracted library to handle populating a list isn't necessarily "fixing" something. It might be, for sure, but is going to be very use case dependent, and there are a lot of instances where it's better to have 5, 10, or yes even 15-20+ nearly-identical lines and be done in a minute or two (or 5 seconds with Copilot IME) than spend half a day tweaking test coverage on your one-off library.

Re: GitHub Copilot available for JetBrains and Neovim

#17
post #2

Can any users give their opinion on how it's helping their productivity? What problems are they finding, if any?

It does the boring code for me.

If I want to throw an exception if an object is null or undefined, Co-pilot will do the if and the exception throw using the right error class, and a more meaningful error message that what I usually came up with.

If want to map some random technical data table to something useful in my programming language, I can copy paste the data from the documentation in pdf or html into a comment block, give an example, and co-pilot will write everything in the format I want.

If I want to slightly refactor some code, I can do it once or twice and co-pilot can help me a lot to refactor the remaining.

If I want to have a quick http server in nodejs, I don't have to Google anything.

It's a lot of tiny things like this.

Re: GitHub Copilot available for JetBrains and Neovim

#18

Earlier quoted context omitted.

Tried it out for a while, and it's clear that it's trying to get people to be faster at writing boilerplate, not get people to write better code. I'm a bit scared for what this means as I don't think being able to faster write boilerplate is something worthwhile. The example ed_elliott_asc made is one of those examples where instead of fixing things so you don't have to repeat yourself, copilot makes it easy to just…

> I don't think being able to faster write boilerplate is something worthwhile But do you believe people being slower at writing boilerplate is undesirable?

It may be desirable for boilerplate to be maximally painful if it forces our collective hands to cut down on boilerplate and innovate it away

Re: GitHub Copilot available for JetBrains and Neovim

#19
post #2

Can any users give their opinion on how it's helping their productivity? What problems are they finding, if any?

There's a risk of it turning into a worse StackOverflow, by suggesting plausible-looking but subtly incorrect code. Here's two examples I found:

https://twitter.com/ridiculous_fish/status/14527512360594513...

Post reply on HN