Exploration of CRDTs
I wanted to see if I can build an offline/online CRDT using RGA algorithm. How do you guarantee correctness across multiple pods, using any remote should be enough to store data and sever sync.
So i implemented the RGA in rust here. Which was not that hard, i did not use much AI for that part, want to see if i can reason with the different ops and ordering. The trick with that is you have to think about networking to the sync server and wether the networking... like disconnect and reconnecting for a random reason, so when to apply insert
You can test the experiment for yourself here, open two tabs and type away.
Why would anyone want CRDTs...
Well.. I want to build an agent I can collaborate with on the same document. I came across stacked PRs and i was really fascinated by the idea (what took Github so long... prolly trying to get that five nines), but why does agent collaboration have to be so linear.
Next step is to actually hookup and API to finetune gemma4, with one CRDT.. also have a working doc with an agent, long live markdown but this just an idea.