一句话:提出结构感知的实时协同编程传播模型,仅同步语法有效变更,显著降低通信开销并保持可构建状态。
现有实时协同编程工具大多在文本层面同步,逐键传播包括语法非法内容在内的每次编辑,造成通信开销过大、频繁传播破坏可构建状态、同步质量差;在网络不稳时尤为明显,协作者被大量无用更新淹没,产生可感知的延迟。本文提出一种结构感知的传播模型,只传播语法有效的代码变更,并将其实现为 IntelliJ 插件。作者在八个代表性编程场景中,将该工具与 VS Code Live Share、Code With Me 和 Replit 三个工业标准工具进行对比。结果表明,该模型显著减少了所传播消息的数量与大小,同时保持程序状态一致且可构建,说明结构感知传播有望成为下一代实时协同编程环境的基础。
Multiple programming tasks require synchronous collaboration between developers, giving rise to real-time collaborative programming tools that enable simultaneous editing of shared source code. However, most existing tools operate at the text level, propagating every keystroke–including syntactically invalid ones–without considering program structure. This results in excessive communication overhead, frequent propagation of build-breaking states, and poor synchronization. A major consequence is noticeable lag, especially under unstable network conditions, as collaborators are overwhelmed with unnecessary updates that disrupt their workflow and degrade the shared coding experience. In this paper, we introduce a novel structure-aware propagation model that transmits only syntactically valid code changes. For evaluation we implemented our tool as an IntelliJ plugin and evaluate it against three industry-standard tools–VS Code Live Share, Code With Me, and Replit–across eight representative programming scenarios. Our results show that it significantly lowers the number and size of propagated messages while maintaining consistent, buildable program states. Our findings demonstrate the potential of structure-aware propagation as a foundation for the next generation of real-time collaborative programming environments.
DOI 原文 ·
@inproceedings{paperbot9259,
title = {From Characters to Structure: Rethinking Real-Time Collaborative Programming Models},
author = {Leon Freudenthaler and Bernhard Taufner and Karl Michael Göschka},
booktitle = {ASE},
year = {2025},
doi = {10.1109/ase63991.2025.00221}
}