News for hackers. Stuff that matters.
Re:Braid: Synchronization for HTTP by toomim on Monday November 25, 2019 @08:03PM (#21634742)
The trick is that they only need to agree on how multiple simultaneous edits merge.

Each URL specifies a Merge-Type. If the algorithms implement it, they can merge conistently.

Re:Braid: Synchronization for HTTP by skybrian on Tuesday November 26, 2019 @01:17PM (#21641019)
It seems like that's saying each client has to implement all the algorithms in use? So, no magic here, but a choice among standardized algorithms?
Re:Braid: Synchronization for HTTP by toomim on Tuesday November 26, 2019 @02:53PM (#21641998)
Almost -- you can actually have different algorithms that still merge the same way. See our interoperability demo here:

https://braid.news/demo/interoperate

This demo shows a CRDT and OT system interoperating. They use different algorithms, but merge (almost) the same way!

(I say "almost" because we aren't using the same sorting function to break ties when two people edit in the same location. But this could be fixed.)

In practice, you can certainly specify a merge-type in terms of an algorithm, by saying "this resource merges in the way that the Automerge algorithm merges." But you can also state it abstractly -- for instance, as we do here: https://braid.news/demo/interact#a-merge-type-defines-how-to...