The Art of the Fugue: Minimizing Interleaving in Collaborative Text Editing

04/30/2023
by   Matthew Weidner, et al.
0

Existing algorithms for replicated lists, which are widely used in collaborative text editors, suffer from a problem: when two users concurrently insert text at the same position in the document, the merged outcome may interleave the inserted text passages, resulting in corrupted and potentially unreadable text. The problem has gone unnoticed for decades, and it affects both CRDTs and Operational Transformation. This paper presents Fugue, the first algorithm that guarantees maximal non-interleaving, our new correctness property for replicated lists. We present two variants of the Fugue algorithm, one based on a tree and the other based on a list, and prove that they are semantically equivalent. We also implement Fugue and demonstrate that it offers performance comparable to state-of-the-art CRDT libraries for text editing.

READ FULL TEXT
research
05/11/2018

OpSets: Sequential Specifications for Replicated Datatypes (Extended Version)

We introduce OpSets, an executable framework for specifying and reasonin...
research
08/29/2023

Chunked Lists versus Extensible Arrays for Text Inversion

In our 2017 work on in-memory list-based text inversion [Hawking and Bil...
research
04/08/2021

Permutation Encoding for Text Steganography: A Short Tutorial

We explore a method of encoding secret messages using factoradic numberi...
research
10/05/2021

De-rendering Stylized Texts

Editing raster text is a promising but challenging task. We propose to a...
research
10/30/2020

Time-position characterization of conflicts: a case study of collaborative editing

Collaborative editing (CE) became increasingly common, often compulsory ...
research
04/13/2015

Egyptian Dialect Stopword List Generation from Social Network Data

This paper proposes a methodology for generating a stopword list from on...
research
09/18/2017

Non-Linear Editor for Text-Based Screencast

Screencasts, where computer screen is broadcast to a large audience on t...

Please sign up or login with your details

Forgot password? Click here to reset