You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: clarify that Loro is inspired by Eg-Walker, not a strict implementation
Added important clarifications to the Event Graph Walker concept page:
- Note at the beginning explaining Loro is heavily inspired by but not strictly implementing Eg-Walker
- Updated Implementation section to clarify it's a hybrid approach with Eg-Walker-inspired optimizations
- Modified conclusion to emphasize the inspiration relationship
This ensures readers understand that Loro incorporates Eg-Walker's key insights and achieves similar properties through inspiration rather than being a pure Eg-Walker implementation.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: pages/docs/concepts/event_graph_walker.mdx
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ description: "Comprehensive guide to Event Graph Walker (Eg-Walker), a revolutio
7
7
8
8
Event Graph Walker (Eg-Walker) is a revolutionary CRDT algorithm that fundamentally changes how collaborative editing systems handle concurrent operations. Instead of storing complex CRDT metadata, Eg-Walker enables the use of simple indices by efficiently replaying relevant history when needed.
9
9
10
+
> **Important Note**: Loro is not a strict implementation of Event Graph Walker. Rather, Loro is heavily inspired by Eg-Walker's design philosophy and incorporates its key insights to achieve similar properties - particularly the ability to use simple indices instead of complex CRDT metadata, and the efficient replay mechanism for handling concurrent operations.
11
+
10
12
## The Problem: Complex CRDT Metadata
11
13
12
14
Traditional CRDTs require extensive metadata to maintain consistency across distributed systems:
@@ -136,11 +138,14 @@ Eg-Walker handles this by:
136
138
137
139
## Implementation in Loro
138
140
139
-
Loro implements Fugue (a modern CRDT algorithm) on top of Eg-Walker, combining:
141
+
While Loro is not a pure Eg-Walker implementation, it draws heavily from Eg-Walker's innovations to achieve similar benefits. Loro implements Fugue (a modern CRDT algorithm) with Eg-Walker-inspired optimizations:
142
+
140
143
-**Fugue's correctness guarantees** for text editing
141
-
-**Eg-Walker's efficiency** in storage and computation
144
+
-**Eg-Walker-inspired efficiency** in storage and computation
145
+
-**Simple index-based operations** at the API level
146
+
-**Smart replay mechanisms** for merging concurrent changes
142
147
143
-
This combination provides:
148
+
This hybrid approach provides:
144
149
```javascript
145
150
// Simple API with powerful internals
146
151
constdoc=newLoro();
@@ -188,7 +193,7 @@ The algorithm has been proven to:
188
193
4.**Performance**: Fast local operations, efficient synchronization
189
194
5.**Innovation**: Fundamental rethinking of CRDT implementation
190
195
191
-
Eg-Walker represents a breakthrough in collaborative editing technology, making CRDTs more practical and performant for real-world applications. By cleverly leveraging the causal history already present in collaborative systems, it achieves the seemingly impossible: simpler data structures with better performance.
196
+
Eg-Walker represents a breakthrough in collaborative editing technology, making CRDTs more practical and performant for real-world applications. While Loro is not a strict Eg-Walker implementation, it has been profoundly influenced by Eg-Walker's design philosophy and achieves many of the same benefits through this inspiration. By cleverly leveraging the causal history already present in collaborative systems, both Eg-Walker and Loro-inspired approaches achieve the seemingly impossible: simpler data structures with better performance.
0 commit comments