Closed DiamondYuan closed 2 years ago
I'm confused by this one too. But I guess Joseph just skipped the concrete detail for simplicity.
As illustrated in the original RGA paper, the data structure is
which is a linked list with some optimizations already.
And Automerge's paper did not mention the recursive structure as well. So I guess it's just Automerge's implementation decision, which was not described in the paper.
The parent
in the field plays the same role as the left
in your description. It's not used to construct a hierarchical structure. With item
, id
, and left
it should be sufficient for you to build an array CRDT.
Hello, I am learning CRDT recently and trying to implement my own crdt。After reading your article, I have a few doubts.
more like a list of
Item
(order by id)?Just need
item
andid
and 'left` to implement the plain text crdt ? or parent and right are equivalent ?