Matthew Weidner

Matthew Weidner

@mweidner.bsky.social

Collaborative software at Common Curriculum / CMU I write about CRDTs etc: https://mattweidner.com/

135 followers66 following18 posts

Fun academic find: the core idea of server reconciliation (a general approach to real-time collaboration that's simpler than Operational Transformation or CRDTs) already appears in an MIT tech report from 1985.

View full thread

Fun academic find: the core idea of server reconciliation (a general approach to real-time collaboration that's simpler than Operational Transformation or CRDTs) already appears in an MIT tech report from 1985.

From the ~1st collaborative text editing paper: if two users do "delete char @ index 7" concurrently, no serial ordering gives the correct answer. So the authors abandon serializability, leading to OT/CRDTs. But if you rephrase the ops as "delete char @ <per-char id>", both serial orders work!

View full thread

For many collaborative apps, though, you can get away with just serializing all users' ops. E.g., apply ops in the order a server receives them. This strategy appears in Replicache and in @tanstack.com DB (taking over from ElectricSQL v0's fancier CRDT-based strategy).

From the ~1st collaborative text editing paper: if two users do "delete char @ index 7" concurrently, no serial ordering gives the correct answer. So the authors abandon serializability, leading to OT/CRDTs. But if you rephrase the ops as "delete char @ <per-char id>", both serial orders work!

In essence, the authors found that text editing is hard - at least when you address each char by its ever-changing index instead of a fixed ID - but concluded that *collaboration* is hard, requiring partial-order thinking & fancy algorithms. That set the tone for a whole field.

Matthew Weidner reposted

I look forward to talking about some new ideas from my work at Common Curriculum & CMU!

Local-First Conf@localfirstconf.com

We’re excited to announce that @mweidner.bsky.social PhD student at CMU, will be speaking at Local-First Conf 2025! Matthew will share a surprisingly simple approach to collaborative text editing—no CRDTs or OT required.

You are up to date.