Re:Resilient Sync for Local First
by ricardobeat on Thursday June 27, 2024 @02:19PM
(#40813425)
Ha, I thought by instructions you meant CRDT commands, not actual text instructions.
This is not a failure of CRDT but an inevitable consequence of trying to point to a specific line in a live document. It can happen even without concurrent updates, just two people editing a document in turns; as such it is impossible to resolve regardless of merge strategies, you have to use some kind of section marker that stays in place within the text as it moves (which is basically what every collaborative editor does internally).
If it helps, I drew out the document in https://news.ycombinator.com/threads?id=vlovich123#40793833