News for hackers. Stuff that matters.
Re:Automerge: a new foundation for collaboration software [v... by aogaili on Friday December 10, 2021 @06:27AM (#29508668)
MeteorJS solved this 12 years ago...but good to see more thoughts being put into this.
Re:Automerge: a new foundation for collaboration software [v... by jpgvm on Friday December 10, 2021 @08:24AM (#29509519)
It did not at all. It solved the problem of how to reflect a source of truth (the server) in somewhat real-time on the client through subscriptions. Also made some attempt to have edits that were persisted to client-side mini-mongo pushed to the server but this was best effort at most.

CRDTs are on a completely different level. They provide deterministic conflict resolution strategies through either/or causal and physical timestamps to ensure it's always safe to persist a write locally and later sync it with the server or not even have a server and sync directly which other peers.

Re:Automerge: a new foundation for collaboration software [v... by aogaili on Saturday December 11, 2021 @10:22AM (#29521446)
I understand the difference.

However, the local mini-mongo is acting a local-state and the JSON/JS all the way is solving the marshalling/ORM issue. I understand it is a centralized way of dealing with this, however, it was operating on the same problem space. Furthermore, automerge can be used as the server, which bring it closer to what Meteor did. I was hinting at the overlap in the problem space, but I should have phrased it better. Anyway, I'm keep to try automerge.

Re:Automerge: a new foundation for collaboration software [v... by jpgvm on Saturday December 11, 2021 @03:16PM (#29523892)
You can't just use automerge on the server, it must be used on the client and additionally on the server (or a more cut down version that just replicates deltas between peers).

If you are going to try out automerge you should also take a look at y.js and diamond-types.

Re:Automerge: a new foundation for collaboration software [v... by aogaili on Saturday December 11, 2021 @09:23PM (#29526535)
Yes, I get that part. I'll take a look at y.js and diamond-types, thank you!
Re:Automerge: a new foundation for collaboration software [v... by ImprobableTruth on Friday December 10, 2021 @06:42AM (#29508754)
The key feature of automerge is that it's decentralized like git. Two people could work asynchronously and only occasionally merge their results.
Re:Automerge: a new foundation for collaboration software [v... by aogaili on Saturday December 11, 2021 @10:18AM (#29521416)
I get it, it is different Thanks for correction.