Lying in bed with fever, I have a sudden realisation: the sync engine I wrote last year is actually a combination of two CRDTs — a last write wins map and a two phase set.
Whether this turns out to be true in the morning remains to be seen!
Conversation
I am awake! And I checked — this turns out to be accurate.
Thanks to for his approachable explanation of CRDTs in production:
2
7
The other thing I learnt was that I was cheating by using naive timestamps (mostly because I didn't like the extra work of using vector clocks). But Long says there's now a good alternative: Hybrid Logical Clocks!
Given that this was invented in '14, wow: cse.buffalo.edu/tech-reports/2
1
3
Simpler explanation: jaredforsyth.com/posts/hybrid-l
I'm still a little mindblown that CRDTs were only invented in 2011, and HLCs in 2014, and now we're talking about them like they're Known, Old Things.
Was this how it felt like to be doing Physics in the time of Newton?
