News for hackers. Stuff that matters.
Re:CRDTs are the future by z3t4 on Monday September 28, 2020 @02:16PM (#24619658)
The transform operation is more simple if you know the order of things. For example in OT: nr2) Delete H from index 0. nr1) Insert "Hello" at index 0. You know that nr1 should come before nr2 because of a central counter. But with CRDT it's a) Delete character id 0, b) Insert "Hello" at character with id 0.
Re:CRDTs are the future by andreareina on Tuesday September 29, 2020 @12:05AM (#24624061)
I think intention preservation requires that you know what the clients know about. So you still need something like a vector clock to model what the dependency relationship between nr2 and nr1 are.
Re:CRDTs are the future by z3t4 on Tuesday September 29, 2020 @01:23AM (#24624395)
Yes, in OT the clients can send what they think is the global counter. Then each client or the server can transform the edit operation from the edit history eg. move the index left/right. In CRDT each index is instead an ID and deleted characters has to be saved as "tomestones" so you know where they where.