gundb / feature-requests

What extra features do you want for gun? Discuss here!
10 stars 0 forks source link

CRDT #2

Open metasean opened 8 years ago

metasean commented 8 years ago

We need to provide some mechanism to do distributed math. This will most likely be via a CRDT module or extension.

PsychoLlama commented 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...

des-des commented 5 years ago

@PsychoLlama

An npm module is in the works

Did you get anywhere with this, would be interested to see where you got..

PsychoLlama commented 5 years ago

@des-des Nope 😞 IIRC I was pulled off the project shortly after the first proof of concept.

amark commented 5 years ago

@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?

des-des commented 5 years ago

@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.