News for hackers. Stuff that matters.
Re:Automerge: JSON-like data structure for building collabor... by joshribakoff on Monday February 05, 2018 @01:37PM (#16310856)
If you model all state changes as a serializable list of actions, like with Redux or Vuex, this is a non issue. You'd simply get the same two commands and your reducers would compute the same state for all clients, thanks to immutable data structures we don't need to mutate the state & do not have the issue you described.
Re:Automerge: JSON-like data structure for building collabor... by paulhodge on Monday February 05, 2018 @04:54PM (#16312593)
The challenge is when there are multiple observers that have a different opinion on what order the commands happened in. Redux and Vuex don't have that problem, that's why it's a nonissue there.
Re:Automerge: JSON-like data structure for building collabor... by grrowl on Tuesday February 06, 2018 @07:26AM (#16315810)
Using lamport/logical timestamps you can ensure a distributed and totally consistent ordering of actions.

I wrote a middleware for Redux which propagates actions peer-to-peer in a consistent order using these timestamps and the scuttlebutt gossip protocol, you might find it interesting. https://github.com/grrowl/redux-scuttlebutt