News for hackers. Stuff that matters.
Re:GitHub Copilot by feross on Tuesday June 29, 2021 @12:25PM (#27678136)
I’ve also been using the Alpha for around two weeks. I'm impressed by how GitHub Copilot seems to know exactly what I want to type next. Sometimes it even suggests code I was about to look up, such as a snippet to pick a random hex color or completing an array with all the common image mime-types.

Copilot is particularly helpful when working on React components where it makes eerily accurate predictions. I see technology like Copilot becoming an indispensable part of the programmer toolbelt similar to IDE autocomplete for many people.

I also see it changing the way that programmers document their code. With Copilot if you write a really good descriptive comment before jumping into the implementation, it does a much better job of suggesting the right code, sometimes even writing the entire function for you.

Re:GitHub Copilot by pfraze on Tuesday June 29, 2021 @12:48PM (#27678454)
They finally did it. They finally found a way to make me write comments.
Re:GitHub Copilot by oars on Wednesday June 30, 2021 @01:26AM (#27685209)
The real purpose of this tool.
Re:GitHub Copilot by spoonjim on Tuesday June 29, 2021 @08:32PM (#27683572)
Jesus. From a guy with your track record that means a lot.
Re:GitHub Copilot by FreeSpeech on Tuesday June 29, 2021 @05:15PM (#27681816)
Has anyone used Copilot with a more succinct language? It appears to only automate boilerplate and rudimentary patterns, which while useful in repetitive low signal to noise ratio languages like React or Java, sounds less appealing if you're writing Clojure.
Re:GitHub Copilot by thu2111 on Wednesday June 30, 2021 @04:32AM (#27686304)
I've not used Copilot but I've experimented with two other AI driven autocompletion engines in Java and Kotlin. In both cases I uninstalled the plugins due to a combination of two problems:

1. The AI suggestions were often less helpful than the type driven IDE autocompletions (using IntelliJ).

2. The AI plugins were very aggressive in pushing their completions to the top of the suggestions list, even when they were strictly less helpful than the defaults.

The result was it actually slowed me down.

Looking at the marketing materials for these services, they're often focused on dynamic languages like Python or JavaScript where there's far less information available for the IDE to help you with. If you've picked your language partly due to the excellent IDE support, it's probably harder for the AI to compete with hand-written logic and type system information.

Re:GitHub Copilot by c0dezer019 on Saturday July 10, 2021 @01:43AM (#27791401)
I'd recommend TabNine, it is extremely helpful. I tried Kite once, and it is WAY overrated. So slow that by the time it provided me suggestions I was only a few characters away from finishing. Tabnine has saved me hours.
Re:GitHub Copilot by geekraver on Wednesday June 30, 2021 @03:34PM (#27692587)
Good luck using type-based autocomplete to write entire functions for you.
Re:GitHub Copilot by kopos on Tuesday June 29, 2021 @09:22PM (#27683865)
Or the converse?

If Copilot is as good as it gets but only for some languages, won’t it influence what languages will be chosen by devs or companies?

Re:GitHub Copilot by mtnygard on Tuesday June 29, 2021 @09:49PM (#27684008)
Indeed, I could imagine it becoming more difficult to adopt a language that doesn't already have a large corpus to train on.
Re:GitHub Copilot by Jeff_Brown on Tuesday June 29, 2021 @10:51PM (#27684354)
Could there be a boom followed by a bust? Sometimes a greedy algorithm looks good until it doesn't. It's at least imaginable that AI coding helps you do stuff locally that eventually ties you in knots globally, because you were able to rush in without thinking things through.

(It's also conceivable I'm put out of a job, but I'm not worried yet. So far I can only imagine AI automates away the boring part, and I super-duper-want that.)

Re:GitHub Copilot by rjzzleep on Tuesday June 29, 2021 @09:52PM (#27684021)
I really wonder sometimes if Java would never have made it that far if it wasn’t for eclipse and later IntelliJ.
Re:GitHub Copilot by zdragnar on Tuesday June 29, 2021 @10:43PM (#27684315)
Well, there are few things many programmers enjoy better than automating away repetitive tasks. If not exactly intellij or eclipse, something that achieved the same end would certainly have arisen.

I'm sure there's at least a few relevant XKCD strips to insert here.

Re:GitHub Copilot by chrisandchris on Wednesday June 30, 2021 @05:19AM (#27686539)
Would be an interesting fact so see companies adopt languages that need significantly more code to reach the same result just because some AI can automate a lot.

Thinking about generating 10 times the code you need, just because you can generate it instead of writing (perfomant?) code.

Re:GitHub Copilot by sdesol on Tuesday June 29, 2021 @07:37PM (#27683179)
This is a good point and it will be interesting to see if something like copilot will get developers/companies to adopt a language that is better supported by AI.

Edit: You are honestly downvoting me for saying something that might actually happen. If copilot lives up to the hype, but for a limited number of languages, this can have a profound affect on what languages people might decide to use in the future.

Re:GitHub Copilot by Nixinova on Wednesday June 30, 2021 @01:59AM (#27685393)
Boilerplate is the most annoying type of code to write/try to remember, having all of that automated away would be awesome.
Re:GitHub Copilot by int_19h on Wednesday June 30, 2021 @08:40AM (#27687735)
This approach is kind of a hack, though. The proper way to automate boilerplate is better PL/library design that makes it unnecessary.
Re:GitHub Copilot by oalae5niMiel7qu on Sunday July 04, 2021 @12:34AM (#27727245)
Wait until it's time to maintain all this autogenerated code. It's going to be a nightmare.
Re:GitHub Copilot by Breza on Monday July 12, 2021 @03:46PM (#27814215)
Don't worry, the most common bug fixes will become part of the suggested code, so when you start writing patches, Copilot will have great suggestions. And then when you have to fix the new bugs, same deal.
Re:GitHub Copilot by oalae5niMiel7qu on Sunday July 18, 2021 @02:04AM (#27871052)
The real nightmares will revolve around changing requirements. That's where a statistical analyzer is not going to be smart enough to know what's going on, and you're going to have to understand all this autogenerated code yourself.
[dead]
Re:GitHub Copilot by aprinsen on Tuesday June 29, 2021 @11:06PM (#27684410)
Is this a joke? Top 3 comments follow almost an identical format?
Re:GitHub Copilot by discordance on Tuesday June 29, 2021 @11:19PM (#27684474)
It's a feature not a bug. Copilot also assists with HN comments!
Re:GitHub Copilot by gexla on Wednesday June 30, 2021 @12:00AM (#27684712)
Amazing, this is exactly what I was going to type!
Re:GitHub Copilot by tome on Wednesday June 30, 2021 @03:45AM (#27686027)
I suppose you were both trained on the same data set.
Re:GitHub Copilot by wholinator2 on Tuesday June 29, 2021 @11:19PM (#27684477)
Right? Im getting heavy astroturf vibes from these repetitive, nearly perfectly phrased, corporate sounding paragraphs of pure praise.
Re:GitHub Copilot by EGreg on Wednesday June 30, 2021 @01:27AM (#27685216)
This is the HN copilot, which writes comments for you.

Basically, if you look at what’s not yet available to the public, we have engines that can write an entire program that does what you want, a test suite, documentation, and write thoughtful comments on all the forums about why the program is good. They could make about 100,000 programs an hour on a cluster, together wih effusive praise for each, but that would make everyone supicious.

Re:GitHub Copilot by spoonjim on Wednesday June 30, 2021 @01:32AM (#27685249)
Ferross is a well known figure and a monster talent. I seriously doubt he has sold out as a Github shill.
Re:GitHub Copilot by throwamon on Wednesday June 30, 2021 @12:27AM (#27684867)
> it does a mucho mejor trabajo de sugerir the right code, sometimes it is even writing the entire function para ti.

Whether it's a joke or astroturfing, this alone makes it brilliant.

Re:GitHub Copilot by taneq on Wednesday June 30, 2021 @02:53AM (#27685694)
It's a direct reply to the other comment you mention and it parses like it's autogenerated but then swerves off into another language. I'm pretty sure it's a joke.
Re:GitHub Copilot by varispeed on Wednesday June 30, 2021 @07:08AM (#27687146)
Yes it was a joke. I wrote it myself. Seems many people didn't get it. Oh well...
Re:GitHub Copilot by Noumenon72 on Tuesday June 29, 2021 @07:22PM (#27683042)
Does it sometimes switch into a different language mid-function?
Re:GitHub Copilot by varispeed on Wednesday June 30, 2021 @07:29AM (#27687262)
I do it todo el tiempo
Re:GitHub Copilot by teshier-A on Wednesday June 30, 2021 @05:39AM (#27686642)
Is there a rule for banning users that sell their account for this type of comment ? If not there should be
[dead]
Re:GitHub Copilot by qaq on Tuesday June 29, 2021 @03:26PM (#27680592)
They were replaced by GPT too :)
Re:GitHub Copilot by cercatrova on Tuesday June 29, 2021 @04:01PM (#27680977)
More like GPT three :)