Eips

Sequence CRDT in Rust with worst-case logarithmic operations and moves

A sequence CRDT with constant per-item memory, no interleaving of concurrent insertions and no duplicated moves. It stores no items itself: it translates between local integer indices and stable remote IDs, so any list-like structure can hold the data.

  • 23.5 s vs 279 sAgainst Diamond Types
  • 255 MB vs 608 MBMemory vs Diamond Types
  • 0.506 s vs 36.5 days10 concurrent clients

Trade-offs

  • The CRDT holds IDs, not items. Tombstones do not slow local operations like search, but the app stores the values and applies each translated change itself.
  • Causal delivery is assumed, and clients must generate unique IDs, so both jobs fall to the layer around the CRDT.
  • Worst-case O(log h), where h counts every item ever inserted, deleted ones included. Time never spikes, and cost follows document history, not visible length.

Q&A2

No. An item is not duplicated when several users move it at once.

Reviews

Loading reviews

    More in Local-first

    See all 45 →
    • HashCortxLocal-first desktop workspace for chat, coding agents and agent teams
    • Desktop-2FAOffline TOTP manager for the terminal with an encrypted local vault
    • ResonanceA local-first API client with no account, collections kept as YAML files
    • DettoOn-device meeting capture and dictation for macOS, written to a vault
    • OpenSubsSubtitle generator that transcribes and burns captions with no video upload
    • GNOLocal knowledge engine with hybrid search, cited answers and agent memory

    More in Rust

    See all 146 →
    • PaganelData migration engine that verifies the destination down to the row
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • AudioRouterVisual audio router for Windows 11: route, process and record on a canvas
    • ai-memoryPersistent memory for MCP clients in one Rust binary over SQLite
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • jc-rsjc rewritten as one static binary that turns command output into JSON