Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement built-in CRDTs: infinite-phase set #80

Closed
guiltygyoza opened this issue Jul 30, 2024 · 1 comment · Fixed by #89
Closed

Implement built-in CRDTs: infinite-phase set #80

guiltygyoza opened this issue Jul 30, 2024 · 1 comment · Fixed by #89
Assignees
Labels
feature New feature or request

Comments

@guiltygyoza
Copy link
Contributor

guiltygyoza commented Jul 30, 2024

Background

We already have 2PSet. Infinite-phase set is a generalization of it, allowing elements to be removed and re-added ad infinitum. This should be useful as a built-in CRDT for constructing CROs.

The idea is pretty simple. Use a GCounter to represent the presence of an element. The counter value being odd means the element is present. The counter value being even means the element is not present.

Task

  • implement it
  • test it
  • document how this type works and its usage

Resources

@guiltygyoza guiltygyoza added the feature New feature or request label Jul 30, 2024
@ghost ghost added this to DRP Jul 30, 2024
@github-project-automation github-project-automation bot moved this to Triage in DRP Jul 30, 2024
@JanLewDev
Copy link
Contributor

I'm starting to work on the implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants