Open metasean opened 8 years ago
Here is a link to a proof of concept addition/subtraction CRDT extension, on which more complex mechanisms can be built. For non-commutative ops, a linked-list could be used. If there's more interest in this, I can post a gist with more robust examples. An npm module is in the works...
@PsychoLlama
An npm module is in the works
Did you get anywhere with this, would be interested to see where you got..
@des-des Nope 😞 IIRC I was pulled off the project shortly after the first proof of concept.
@PsychoLlama wasn't your link (now at https://gun.eco/docs/Counter ) it?
GUN itself is a CRDT, and like Jesse demonstrated, you can build other CRDT's on top of GUN in just 12 lines!
@des-des does the link he gave suffice?
@PsychoLlama @amark thanks both for the quick response. Yeah I have seen the counter example. I need some kind of crdt on a sorted set/list, I will post back here if I find time to build it.
We need to provide some mechanism to do distributed math. This will most likely be via a CRDT module or extension.