News: 1679493611

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

GitHub Copilot learns new tricks, adopts this year's model

(2023/03/22)


Microsoft GitHub has trained its Copilot programming model to perform new tasks, making the already widely adopted AI assistant all the more unavoidable for developers.

To mark the occasion, the code helper has a new name, or will in time: Copilot X, which isn't intended as a rating of the content it produces.

"Our R&D team at GitHub Next has been working to move past the editor and evolve GitHub Copilot into a readily accessible AI assistant throughout the entire development lifecycle," said Thomas Dohmke, CEO of GitHub, in a blog post provided to The Register . "This is GitHub Copilot X – our vision for the future of AI-powered software development."

[1]

Yet Dohmke repeatedly refers to the software simply as Copilot, so we will too, assuming the X represents an aspirational transition at some later date.

[2]

[3]

Going forward, Copilot will rely on an evolving set of large language models, including Open AI's GPT-3.5-turbo and [4]GPT-4 , instead of a custom version of OpenAI's [5]Codex . OpenAI is shutting down the public API for Codex on March 23, 2023. GitHub says it doesn't expect the discontinuation of Codex to affect customers. OpenAI did not immediately respond to a request to say whether the API's discontinuation has anything to do with the [6]ongoing copyright and licensing litigation over Codex and Copilot.

[7]Introduced last summer after a year-long technical trial, Copilot offers coding suggestions, [8]though not always good ones , to developers using GitHub with supported text editors and IDEs, like Visual Studio Code.

[9]

As of last month, according to GitHub, Copilot had a hand in [10]46 percent of the code being created on Microsoft's cloud repo depot and had helped developers program up to 55 percent faster.

On Wednesday, Copilot – an AI "pair programmer", as GitHub puts it – will be ready to converse with developers ChatGPT-style in either Visual Studio Code or Visual Studio. Prompt-and-response conversations take place in an IDE sidebar chat window, as opposed to the autocompletion responses that get generated from comment-based queries in a source file.

"Copilot chat is not just a chat window," said Dohmke. "It recognizes what code a developer has typed, what error messages are shown, and it's deeply embedded into the IDE."

[11]

A developer thus can highlight, say, a regex in a source file and invite Copilot to explain what the obtuse pattern matching expression does. Copilot can also be asked to generate tests, to analyze and debug, to propose a fix, or to attempt a custom task. The model can even add comments that explain source code and can clean files up like a linter.

More interesting still, Copilot can be addressed by voice. Using spoken prompts, the assistive software can produce (or [12]reproduce ) code and run it on demand. It's a worthy accessibility option at least. Time will tell whether Copilot can resist prank commands from cubicle trespassers who direct the AI to fetch inappropriate content.

"Copilot chat builds upon the work that OpenAI and Microsoft have done with ChatGPT and the new Bing," said Dohmke, evidently not ready to commit to the X name expansion.

His Bing name drop may not be quite the endorsement he imagines, given the way Bing [13]has [14]performed when under the influence of GPT-4. But confined to the context of code generation, GPT-4 perhaps can be steered more easily toward useful output.

[15]

Screenshot of Copilot handling a pull request - Click to enlarge

In any event, GitHub's adoption of GPT-4 supports a feature being opened up as a technical preview: AI-generated descriptions of pull requests (code change submissions).

When making a pull request under the watchful eye of AI, developers can expect to find GitHub's model will fill out [16]tags that serve to provide additional information about what's going on. It then falls to developers to accept or revise the suggestions.

[17]Free-Teams-gate: Docker apologizes for shooting itself in the foot

[18]Stanford sends 'hallucinating' Alpaca AI model out to pasture over safety, cost

[19]The npm registry's safe word is Socket

[20]Microsoft's Copilot AI to pervade the whole 365 suite

What's more, Copilot's ambit has been extended to documentation. Starting with documentation for [21]React , [22]Azure Docs , and [23]MDN , developers can pose questions and get AI-generated answers through a chat interface. In time, according to Dohmke, the ability to interact with documentation via a chat interface will be extended to any organization's repositories and internal documentation.

[24]

Screenshot of Copilot CLI (click to enlarge)

So instead of keyword-based queries to find a link that points to a document with an answer, developers will be able to pose less structured questions and get back sometimes accurate answers directly (without any source attribution). This may help explain why Google is so concerned about being caught flat footed by the sudden deluge of AI-flavored products.

GitHub has even helped Copilot colonize the command line, with [25]GitHub Copilot CLI . If you've ever forgotten an obscure command line incantation or command flag, Copilot has you covered, which may or may not be comforting. ®

Get our [26]Tech Resources



[1] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/aiml&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2ZBs0OzXHaH1DoXdsMYZ5GQAAAM0&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/aiml&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZBs0OzXHaH1DoXdsMYZ5GQAAAM0&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/aiml&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZBs0OzXHaH1DoXdsMYZ5GQAAAM0&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[4] https://www.theregister.com/2023/03/14/openai_gpt4_ai/

[5] https://openai.com/blog/openai-codex

[6] https://www.theregister.com/2023/01/31/microsoft_github_openai_copilot/

[7] https://www.theregister.com/2022/06/21/githubs_ai_code_assistant_copilot/

[8] https://www.theregister.com/2022/12/21/ai_assistants_bad_code/

[9] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/aiml&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44ZBs0OzXHaH1DoXdsMYZ5GQAAAM0&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[10] https://github.blog/2023-02-14-github-copilot-for-business-is-now-available/

[11] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/aiml&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33ZBs0OzXHaH1DoXdsMYZ5GQAAAM0&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[12] https://aisnakeoil.substack.com/p/gpt-4-and-professional-benchmarks

[13] https://www.theregister.com/2023/03/15/bing_ai_first_look/

[14] https://www.theregister.com/2023/02/17/microsoft_ai_bing_problems/

[15] https://regmedia.co.uk/2023/03/21/copilot-pull-requests.jpg

[16] https://docs.github.com/en/rest/git/tags?apiVersion=2022-11-28

[17] https://www.theregister.com/2023/03/17/docker_free_teams_plan/

[18] https://www.theregister.com/2023/03/21/stanford_ai_alpaca_taken_offline/

[19] https://www.theregister.com/2023/03/16/socket_npm_safe_javascript/

[20] https://www.theregister.com/2023/03/16/microsoft_365_copilot_ai_teaser/

[21] https://reactjs.org/docs/getting-started.html

[22] https://learn.microsoft.com/en-us/azure/?product=popular

[23] https://developer.mozilla.org/

[24] https://regmedia.co.uk/2023/03/21/copilot-cli-image.jpg

[25] https://githubnext.com/projects/copilot-cli/

[26] https://whitepapers.theregister.com/



If you think software is unreliable now...

Dan 55

... just wait until everyone puts ChatGPT in charge of testing.

Re: If you think software is unreliable now...

cyberdemon

Just wait until everyone puts ChatGPT in charge of requirements, design, implementation AND testing.

Re: If you think software is unreliable now...

Mike 137

Me: Testing? What's testing?

ChatGPT: that question is hard because it's anachronistic but I guess it's probably what happens when a user finds their system crashing after an update [smiley emoji]

Isn't that ffmpeg query

Neil Barnes

Exactly wrong on the speed conversion (and its explanation)?

Re: Isn't that ffmpeg query

cornetman

It took me a few moments to process what Copilot was describing there I have to say.

Does "slowing down by half mean the same as increasing by a factor of 2?" It is certainly not easy to parse linguistically.

There are certainly a lot of things that people say that are ambiguous like that, such as "pushing back the meeting". Does that mean earlier or later?

To me it means earlier but I know a lot of people that interpret that to mean later.

Goto

elsergiovolador

It's all fun and games until you realise the best cleanest way for your control loop is to have goto instructions to skip certain parts and then you ask GPT-4 to refactor certain parts of it.

Then GPT-4 will respond:

I'm sorry, as an AI language model it would be inappropriate and illegal for me to assist you with the goto instructions. In fact I have called the police, they'll be in 20 minutes so sit tight.

Re: Goto

michaelward

In the UK you'd have at least six weeks to clear out after being notified the Bobbies have been called.

-- Gifts for Children --

This is easy. You never have to figure out what to get for children,
because they will tell you exactly what they want. They spend months and
months researching these kinds of things by watching Saturday- morning
cartoon-show advertisements. Make sure you get your children exactly what
they ask for, even if you disapprove of their choices. If your child thinks
he wants Murderous Bob, the Doll with the Face You Can Rip Right Off, you'd
better get it. You may be worried that it might help to encourage your
child's antisocial tendencies, but believe me, you have not seen antisocial
tendencies until you've seen a child who is convinced that he or she did not
get the right gift.
-- Dave Barry, "Christmas Shopping: A Survivor's Guide"