HackerTubewatch
Surprise me
Frame from CRDTs: The Hard Parts Plays via YouTube's privacy-enhanced embed

CRDTs: The Hard Parts

Martin Kleppmann
Talks
YouTube
3 HN users recommended this talk3 months2020–2024 score 3.5
Years with an HN recommendation, 2007–2026

Recommended as an excellent first education on CRDTs and their limits.

Martin Kleppmann surveys current research on CRDTs, the algorithms for merging concurrent edits across offline replicas. He covers the hard parts such as rich text, moves and merge results that are technically correct but poor.

“I found this video from him to be an excellent first education on CRDTs” (HN, 2021)

1 strong recommendations · 2 recommendations · 3 citations · Talks · intermediate

6 Hacker News comments

From the HN archive; up to 20 kept per video, favoring different commenters. Recommendations first.

@rkangel Jan 2021 Strongly recommends
on HN thread Decentralised Content Moderation
The author is a researcher on distributed systems. I found this video from him to be an excellent first education on CRDTs, how they work, what they're good for and what they aren't (yet) good for: [this video]
Excellent first education on CRDTs, their uses and limits.
@iamwil Jan 2024 Recommends
on HN thread CRDTs Turned Inside Out
Ah, I'll put it in as a note in the beginning. You can see a more basic introduction in a previous post I wrote: [link] [link] Here's some introductory material I found helpful: - [An interactive intro to CRDTs]( [link] ) - [An introduction to state-based CRDTs]( [link] ) - [CRDTs for non-academics]( [link] ) - [CRDT: The Hard Parts]( [this video] ) - [Readings in CRDTs]( [link] ) - [crdt.tech]( [link] )
Listed among helpful introductory material.
@williamstein Dec 2024 Recommends
on HN thread Lies I was told about collab editing, Part 1: Algorithms for offline editing
Read more
What they claim is that if all editing stops, then after a period of time everybody will be looking at the SAME document. This is what is meant by "eventual consistency". Achieving this in general is indeed a difficult problem, but (some of) these algorithms do solve it, though it can be tricky to correctly prove that they do. I agree that it is not possible to ensure that the document everybody is looking at is what they actually wanted it to be. However, there are some options for what happens, where some results may be technically correct -- we are all looking at the same thing -- but obviously really bad. This beautiful talk has some examples: [this video]
Shows examples of technically correct but bad merge results.

Citations, criticism and jokes

@benrbray Sep 2020 Cites it
on HN thread CRDTs are the future
Read more
CRDTs seem very promising, but we still have a long way to go. The most exciting work in this area is being done by Ink&Switch [0]. They have a number of interesting real-world app prototypes based on CRDTs. - An interesting case where CRDTs failed is Xi-editor, where they tried to use CRDTs as the basis for a plugin system [1,2]. - One of the biggest problems with CRDTs is the overhead needed to keep track of the full document history. The automerge [3] project has been working on efficient compression of CRDTs for JSON datatypes. - The idea of monotonic updates is really appealing at first, but I was disappointed when I realized there's no good solution to handle deletions. Tombstones, to me, seem like kind of a hack, albeit a necessary one. Practically, CRDTs aren't the silver bullet they might seem like at first. - Another lesson learned is that when ten people are editing the same paragraph, there's not really a right answer. I think the key to implementing CRDTs is doing it at the correct level of granularity. - ProseMirror intentionally chose NOT to use CRDTs [4]. - Some more good references are [5,6,7] [0] [link] [1] [link] [2] [link] [3] [link] and [link] [4] [link] [5] Kleppmann 2020, "CRDTs: The Hard Parts" [this video] with HN Discussion: [link] [6] Kleppmann 2019, "Interleaving Anomalies in Text Editors" [link] [7] [link]
Listed as a good CRDT reference.
@sambroner Dec 2020 Cites it
on HN thread Lessons learned from creating a rich-text editor with real-time collab (2018)
Read more
Disclosure: I work on a related project (Fluid Framework) that makes application agnostic CRDTs easily available. The CKEditor folks did a great job building an OSS text editor and they did an especially strong work building a text editor that works well with collaboration. I've made a few OSS rich text editors work (mostly) with Fluid [0, 1] and the design of the text editor really changes how easily collaboration can be added. Luckily the text editor accepts remote changes, integrating an OT or CRDT solution is approximately the same. They also did a great job explaining the problem. My experience has been that people don't intuitively understand why real time collaboration is a tricky problem. I didn't. First of all, for a bunch of use cases websockets + redis + a last write wins conflict resolution (or some similar solution) is totally enough. Second, it's not immediately obvious why rich text editing requires more complex conflict resolution. Third, it's not obvious why solving the RTE problem doesn't immediately lend itself to other problems [2]. Because we started building in mid-late 2017, right as CRDTs really started to get competitive with OT, we chose a CRDT approach, but the collab problem space in general is much deeper I realized before getting into it. Anyway, I always appreciate seeing people explain their journey. Especially when it has to do with collaboration. [0] [link] [1] [link] [2] [this video]
Cited on why solving rich text editing does not generalize.
@thomasikzelf Dec 2021 Cites it
on HN thread Where is the CRDT for syntax trees
We are almost there, for lists and structs there are CDRT's but a move operation across the data structure is missing. Martin Kleppman (from automerge) talks about this in his talk "CRDTs: the hard parts"[0]. I also think a range move or range delete is missing from many of these algorithms. A submission here on HN did implement a range delete on rich text (but I forgot what the name was). [0]: [this video] EDIT: Ah actually Peritext (which you linked to) was the article I was thinking of. I think the range delete would be useful for regular lists as well.
Discusses missing move operation for CRDTs.

Video list and Hacker News comment labels from HackerTube (prompted by @karpathy), released under ODC-By 1.0, built on the open-index/hacker-news archive. Hacker News data is provided by Y Combinator; comments remain the work of their authors. Video titles, channel names and thumbnails belong to their creators and are shown via YouTube. HackerTube Watch is an unofficial edition. Data export of 2026-10-31.

Keyboard shortcuts

/
Search
j k
Next / previous video
r
Surprise me
l
Like (video page)
w
Watch later (video page)
?
This help
Esc
Close