BT

Your opinion matters! Please fill in the InfoQ Survey!

Real-Time Collaboration Comes to Atom

| by Sergio De Simone Follow 6 Followers on Nov 15, 2017. Estimated reading time: 1 minute |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

At QCon San Francisco 2017, GitHub’s Nathan Sobo has unveiled Atom’s new real-time collaboration plugin, Teletype. Teletype aims to make it possible for two developers to code together with the same ease as coding alone.

Teletype allows developers to create a new collaboration session and share a link with other coworkers. Each collaborator gets their own cursor and can type freely along with other collaborators.

Collaborative editing is a tricky theoretical problem, says Sobo. The way Atom Teletype addresses it is by letting each collaborator modify their own replica of a document. Local edits are applied immediately to the local replica and then transmitted to the rest of collaborators. This opens up the possibilities for changes to be applied in a different order on different replicas, but the Teletype algorithm, using conflict-free replicated data types (CRDT), should ensure that all replicas end up having the same content.

Teletype uses WebRTC to connect collaborators, which means that all transfers are peer-to-peer, except an initial handshake relying on GitHub’s servers. To ensure privacy, all data transfers are encrypted and never hit GitHub servers.

The CRDT GitHub developed for text editing is also available as a standalone library, along with a full-fledged editor-agnostic library that can be used to integrate the same kind of functionality into a web-based or Electron-based application.

According to GitHub, Teletype was born to address the needs of the Atom team itself, which is globally distributed, and can improve developer workflows in such cases as getting a new teammate onboard, inspecting peers’ work, and learning new skills. GitHub also envisions the possibilities of using Teletype as an alternative to pull requests (PR); instead of initiating a PR, developers could use Teletype to hop into the same text editor and walk through issues in real time.

Teletype can be installed from within Atom 1.22, using the Install tab. Alternatively, it can be installed running apm install teletype from the command line.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT