-
Notifications
You must be signed in to change notification settings - Fork 1
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
Negentropy sync #20
Comments
Yea multiple database types are on the to-do. I need to make some sort of adapter and LMDB is the first on the list since it's the most popular. Can you link me to more docs on negentropy? |
Never mind. I think I found it again. https://github.com/hoytech/negentropy Any tips for where to begin? I might have to read this several dozen times before it sinks in 😅 |
How's this look? Now, where to begin with the implementation...
|
I haven't implemented negentropy personally, I just use the javascript version of the code in the repository. Maybe you could use the c version he provides through FFI, or you could use one of the go implementations out there:
One wrinkle is that Doug has recently released v1 of the protocol, which isn't backwards compatible. So you'd have to choose which versions to support, and there may not be any existing go implementations (if it helps, Coracle/Flotilla only support v1). |
Also, supporting negentropy doesn't rely on using LMDB, it can be done on top of any database backend I believe. |
I was realizing this as I dug into it further, but more databases are still a huge priority. Just a few small things left and I'd like to implement WOT first. But I'm close. |
It would be awesome if grain supported syncing with negentropy.
The text was updated successfully, but these errors were encountered: