Collaborative text editing with Eg-Walker: Better, faster, smaller
1–10 of 32 posts
Re: Collaborative text editing with Eg-Walker: Better, faster, smaller
#2I've stated before that I think the main thing holding back collaborative text / sequence CRDTs is integration with a production database.
Eg-walker looks interesting because it might lend itself to be integrated into a database because the operations are immutable and only appended. However, to demonstrate the effectiveness of these algorithms library authors (see Yjs, DiamondTypes, etc) build stand-alone data structures (usually specialized search trees) that most databases already provide.
Personally, I've been trying to adapt a Piece Table[1] to be collaborative and stored in Triplit[2] which runs on both client and server and already implements logical clocks but I might see how well I can adapt this algorithm instead!
1. https://en.wikipedia.org/wiki/Piece_table 2. https://github.com/aspen-cloud/triplit
Re: Collaborative text editing with Eg-Walker: Better, faster, smaller
#3Re: Collaborative text editing with Eg-Walker: Better, faster, smaller
#4Re: Collaborative text editing with Eg-Walker: Better, faster, smaller
#5Re: Collaborative text editing with Eg-Walker: Better, faster, smaller
#6Seph (author) also has a reference implementation in Typescript: https://github.com/josephg/eg-walker-reference I've stated before that I think the main thing holding back collaborative text / sequence CRDTs is integration with a production database. Eg-walker looks interesting because it might lend itself to be integrated into a database because the operations are immutable and only appended. However, to demonstrate…
I use ShareDB every day, which originated from Seph's excellent work on OT algorithms. Good stuff!
Re: Collaborative text editing with Eg-Walker: Better, faster, smaller
#7It's great work, combining the best of OT and CRDTs.
Re: Collaborative text editing with Eg-Walker: Better, faster, smaller
#8s/e.g./EG/
Re: Collaborative text editing with Eg-Walker: Better, faster, smaller
#9Re: Collaborative text editing with Eg-Walker: Better, faster, smaller
#10Joseph explains the algorithm on YouTube too: https://www.youtube.com/watch?v=rjbEG7COj7o It's great work, combining the best of OT and CRDTs.