Want a Co-programmer all the time, GitHub CoPilot Is Here.

An AI powered co-programmer, that helps you complete code snippets from function names and comments.

Github Copilot Icon, and a quote.
Photo from copilot.github.com

Github copilot is a code completion engine that works on most of the programming languages, It was announced by Github and is available on VSCode as an extension.

A gif demonstrating how Github copilot helps writing code.
Gif recorded from copilot.github.com

itHub Copilot is powered by Codex, It uses OpenAI’s GPT 3 and was trained on billion’s of lines of public codes ( Stack-overflow ). GitHub Copilot understands significantly more context than most code assistants. So, whether it’s in a docstring, comment, function name, or the code itself, GitHub Copilot uses the context you’ve provided and synthesizes the code to match your program. Together with OpenAI, GitHub Copilot was designed to get smarter at producing safe and effective code as developers use it.

How good is it?

It was benchmarked against a set of Python functions. The function bodies were blanked out and GitHub Copilot was asked to fill them. The model got it right 43% of the time on the first try, and 57% of the time when allowed 10 attempts. And it’s getting smarter all the time.

Krishna Kotni. Website: reach-the-sky.github.io