News for hackers. Stuff that matters.
Re:CRDTs: The Hard Parts [video] by mike_red5hift on Saturday July 11, 2020 @12:34PM (#23803395)
Stuff like diffing multiple json documents and merging adds, updates and deletes where conflicts did not exist and overwriting conflicting attributes based on timestamps (latest wins). There's some reasonably good jsonpatch libraries out there that will do the heavy lifting.

Plenty of room for problems to arise, but it did not require keeping a log of updates. My use cases did not require real-time collaboration and the structure of the document was known beforehand, though.

Re:CRDTs: The Hard Parts [video] by appwiz on Saturday July 11, 2020 @09:07PM (#23807726)
Got it. I’ve typically seen Operational Transforms brought up as the alternative to CRDT for real-time collaboration. But, if you don’t need to solve for that use case and the format is JSON, it’s a different problem to solve and you don’t need that journal of changes.

If you have code available in the public domain, I’d love to see it.