Closed mweidner037 closed 3 years ago
Draft interfaces (no implementations yet): https://github.com/composablesys/compoventuals/commit/539e639b39475b46aa3e35a54fd358fcd4030902
IAtomicList
matches the simple interface used by Legion, but I think Automerge might have more flexibility - see the TODOs in the docstrings.
Should check out Yjs's list interface for comparison
Basic list: https://github.com/composablesys/compoventuals/pull/46
I'd like to also implement LSeq or some variant, that is practical at least for standard LtR text editing. This should only require extending StatelessTreeSource
(see NaiveList
).
Closing for now, although optimized implementations are still needed
We need at least a basic list (sequence) CRDT for JSON. Possibly we could make a wrapper around Yjs, since that is reasonably optimized, and I don't expect we can build list CRDTs in a way that is compositional or somehow nicer than current approaches.