News for hackers. Stuff that matters.
Re:Automerge: A JSON-like data structure (a CRDT) that can b... by noduerme on Monday February 21, 2022 @07:42AM (#30415246)
Oh. This is just a local storage thing? Well what's the point of worrying about concurrency at all then?

Just FWIW; I'm hostile to this notion because it breaks decades of best practice about data integrity and claims to solve issues that aren't actually issues in real databases; plus the people boosting it seem to not understand anything about concurrency. If it's just a replacement for indexedDB or sqlite or something, well, who cares...

Re:Automerge: A JSON-like data structure (a CRDT) that can b... by samwillis on Monday February 21, 2022 @08:03AM (#30415445)
It's not a replacement for indexedDB or sqlite, and it's not about concurency. It's about merging conflicting changes.

This is a good article explaining the concept and implementation of a CRDT: https://www.inkandswitch.com/peritext/

Re:Automerge: A JSON-like data structure (a CRDT) that can b... by neoberg on Monday February 21, 2022 @09:01AM (#30415955)
Let's say you are developing a design application (think figma) which works in the browser. You don't want to lock the whole project just because someone needs to change a label somewhere. With CRDTs n people can open and edit the project at the same time and then push their changes and have them merged.

Very similar to git. When working with git, you don't lock the file or line you are working on.