GitHub Updates ‘AI Pair Programmer’ Co-Pilot and Code Spaces (Online VS Code) – Visual Studio Magazine


GitHub updates co-pilot ‘AI Pair Programmer’ and code spaces (VS code online)

Microsoft-owned GitHub has announced several updates to its extensive development and code repository platform, including two relatively new offerings: GitHub Copilot, described as an “AI pair programmer” and GitHub Codespaces , which provides an instant and personalized online version of VS Code. which runs in the browser and is linked to the platform.

The updates were announced during the ongoing GitHub Universe event, which ends Thursday, October 28.

GitHub co-pilot
GitHub Copilot, still in the technical preview stage, was introduced in June, taking advantage of a revolutionary AI system called Codex that was created by partner Microsoft OpenAI.

GitHub co-pilot
[Click on image for larger view.] GitHub co-pilot (source: GitHub).

It provides supercharged IntelliSense-like features like code completion and suggestions, as well as new capabilities. It offers code suggestions down the line, and can even create entire projects – like a simple game – all on its own from commands entered (soon to be voiced, probably).

Turn words into code
[Click on image for larger view.] Turn words into code (source: OpenAI).

It now works with VS Code, with expected Visual Studio IDE support. The groundbreaking AI system has created some controversy, as it has created existential angst among developers worried about losing their jobs to AI bots, while the Free Software Foundation (FSF) has decried it as ” unacceptable and unfair “.

In August, Copilot was updated and its functionality offered as an API.

“OpenAI Codex is a descendant of GPT-3; its training data contains both natural language and billions of lines of source code from publicly available sources, including code in public GitHub repositories, ”OpenAI said in an August 10 blog post. “OpenAI Codex is the best performer in Python, but it also masters over a dozen languages, including JavaScript, Go, Perl, PHP, Ruby, Swift and TypeScript, and even Shell. It has 14KB of memory for it. Python code, compared to GPT-3 which is only 4KB – so it can take in over 3 times the context information when performing any task. ”

At this week’s GitHub Universe event, further improvements were announced.

“GitHub Copilot can convert comments to code, reduce the time spent browsing API documents, and help you write tests,” GitHub said in an October 27 blog post. “We are extending publisher support to include Neovim and JetBrains IDEs, especially focused on the latest versions of IntelliJ IDEA and PyCharm. Support for multi-line completions in Java has also been added, with support for more languages ​​in the coming months. ”

GitHub is always inviting more developers to try the Tech Preview, prompting them to apply to the waitlist.

GitHub code spaces
GitHub code spaces (“Visual Studio Code backed by high performance virtual machines that boot in seconds”) have also been updated, including the ability to run VS Code in the browser (or on the desktop).

The enhancements include a new devcontainer feature mix, extended access control for port forwarding, GitHub CLI, and REST API, GitHub said.

GitHub code spaces
[Click on image for larger view.] GitHub code spaces (source: GitHub).

“If you’re not already familiar with code spaces, this allows you to create new development environments directly from your browser or through Visual Studio Code,” GitHub said this week. “Earlier this year, we migrated all of our engineering teams to Codespaces, making it the default development environment for all of GitHub. Before Codespaces, it took us up to 45 minutes to create a new development environment from scratch. With Codespaces, a GitHub developer can create a new preconfigured development environment in 10 seconds. This means we spend a lot more time building GitHub, and a lot less time troubleshooting and waiting for staging environments.

The list of specific improvements includes:

  • Easier development environment creation: Developers can now create and update devcontainer.json development environment as code definitions with one-click setup.
  • Command line interface support: The company added support for code spaces in the GitHub CLI to help developers who prefer command line and direct SSH access to their development environments.
  • Beta REST API Support: A new REST API makes it easier to programmatically manage code spaces, including machine types and secrets.
  • Access control for transfer ports: Share the ports transferred to a code space and mark them as public, private, or shared with members of an organization.
  • Transparent access to GitHub Container Registry: Automatic authentication to development containers stored in GHCR without having to provide a personal access token (PAT).

GitHub Everything else
While the announcements above relate directly to hands-on coding (what GitHub calls “the developer cloud”), there are many other news announced on GitHub Universe that affect other parts of the vast platform, from improving the development flow to security and more:

  • The new GitHub Issues experience extends to the public beta: Track workflows with tables and project boards that let you filter, sort, and group issues and pull requests. Switch between working in public and in private with public projects.
  • Automatic tags and release notes for GitHub discussions: Tags to help sort discussions and automatic post notes with thanks to contributors.
  • Improved CI / CD with GitHub actions: Secure deployments with OpenID Connect, deployment environments to simplify approvals, reusable workflow improvements, and new autoscaling functionality for self-hosted runners.
  • Command palette: Much like keyboard shortcuts in an IDE, the Command Palette lets you run commands and navigate organizations, repositories, issues, pull requests, and more, all within the GitHub user interface. .
  • Pull request merge queue: Merge pull requests efficiently, without updating your pull requests every time another change arrives, while ensuring the branch stays green.
  • Code analysis adds support for Ruby: CodeQL analysis can now identify potential vulnerabilities in Ruby code (available in beta).
  • Custom repository roles: Enterprise Cloud customers can now create custom repository access roles, so you can give your teams exactly the permissions they need (available in beta).

“Since last year’s GitHub universe, we’ve delivered over 20,000 enhancements to GitHub for developers, open source communities, and enterprise teams,” the company said.

About the Author

David Ramel is editor and writer for Converge360.

Source link

About George H. McWhorter

Check Also

Learn to code by creating code with hands-on, project-based lessons for just $ 44.99

StackCommerce If you’ve always wanted to jump into a lucrative tech career, now is the …

Leave a Reply

Your email address will not be published. Required fields are marked *