• About TC
  • Affiliate Disclaimer
  • Privacy Policy
  • TOS
  • Contact
Friday, May 23, 2025
Techcratic
Click For A Secret Deal
  • TC
  • AI
    Artificial Intelligence

    Surprising Things You Can Do with Python’s csv Module

    Artificial Intelligence

    Set up a custom plugin on Amazon Q Business and authenticate with Amazon Cognito to interact with backend systems

    Artificial Intelligence

    StreamBridge: Turning Your Offline Video Large Language Model into a Proactive Streaming Assistant

    Artificial Intelligence

    3 Excellent Practical Generative AI Courses

    Artificial Intelligence

    Building End-to-End Data Pipelines with Dask

    Artificial Intelligence

    Automate document translation and standardization with Amazon Bedrock and Amazon Translate

    Artificial Intelligence

    InterVision accelerates AI development using AWS LLM League and Amazon SageMaker AI

    Artificial Intelligence

    FireDucks: An Accelerated Fully Compatible Pandas Library

    Artificial Intelligence

    Breaking Out of Beginner: Python Patterns for Intermediate Data Scientists

  • Crypto
    Hashdex Seeks SEC Approval to Add Litecoin to Crypto Index ETF

    FIFA Partners with Avalanche to Launch Dedicated Layer-1 ‘FIFA Blockchain’

    R3 and Solana Foundation Unite to Bridge TradFi and DeFi via Strategic Collaboration

    R3 and Solana Foundation Unite to Bridge TradFi and DeFi via Strategic Collaboration

    Kraken to Launch Tokenized US Stocks for Non-American Customers, Enabling 24/7 Trading

    Kraken to Launch Tokenized US Stocks for Non-American Customers, Enabling 24/7 Trading

    NYC Mayor Goes Full Crypto With Council Launch and Tax Plan

    NYC Mayor Goes Full Crypto With Council Launch and Tax Plan

    Hashdex Seeks SEC Approval to Add Litecoin to Crypto Index ETF

    XRP Ledger Adds MiCA EURØP and USDB Stablecoins

    XRP Futures Heat up as Nasdaq Welcomes XRPI and XRPT in Major ETF Debut

    XRP Futures Heat up as Nasdaq Welcomes XRPI and XRPT in Major ETF Debut

    Australian Regulator Appeals Ruling on Block Earner Crypto Offering

    Australian Regulator Appeals Ruling on Block Earner Crypto Offering

    Bitcoin Miner MARA Taps Two Prime to Unlock Value From 500-BTC Corporate Treasury

    Bitcoin Miner MARA Taps Two Prime to Unlock Value From 500-BTC Corporate Treasury

    Strategy Fires up $2.1B New Stock Offering to Accelerate Relentless Bitcoin Buying

    Strategy Fires up $2.1B New Stock Offering to Accelerate Relentless Bitcoin Buying

  • Cybersecurity
    Cybersecurity

    ViciousTrap Uses Cisco Flaw to Build Global Honeypot from 5,300 Compromised Devices

    Cybersecurity

    CISA Warns of Suspected Broader SaaS Attacks Exploiting App Secrets and Cloud Misconfigs

    Cybersecurity

    Chinese Hackers Exploit Trimble Cityworks Flaw to Infiltrate U.S. Government Networks

    Cybersecurity

    Critical Windows Server 2025 dMSA Vulnerability Enables Active Directory Compromise

    Cybersecurity

    Identity Security Has an Automation Problem—And It’s Bigger Than You Think

    Cybersecurity

    Unpatched Versa Concerto Flaws Let Attackers Escape Docker and Compromise Host

    Cybersecurity

    Learn How to Build a Reasonable and Legally Defensible Cybersecurity Program

    Cybersecurity

    Securing CI/CD workflows with Wazuh

    Cybersecurity

    PureRAT Malware Spikes 4x in 2025, Deploying PureLogs to Target Russian Firms

  • Deals
    Lexmark 14N1070 Laser Printer Toner Cartridge

    Lexmark 14N1070 Laser Printer Toner Cartridge

    JMT ADT-F9G F4C F4Q OcuLink SFF-8612 to M.2 NVMe/PCIe X16 Extension Card PCIe4.0 64Gbps…

    JMT ADT-F9G F4C F4Q OcuLink SFF-8612 to M.2 NVMe/PCIe X16 Extension Card PCIe4.0 64Gbps…

    WiFi 6 Adapter for Intel AX201 | Dual Band Up to 2.4 Gbps | CNVio2 M.2 | Bluetooth 5.2…

    WiFi 6 Adapter for Intel AX201 | Dual Band Up to 2.4 Gbps | CNVio2 M.2 | Bluetooth 5.2…

    MAONO Gaming USB Microphone, Noise Cancellation Condenser mic with Mute, Gain,…

    MAONO Gaming USB Microphone, Noise Cancellation Condenser mic with Mute, Gain,…

    HP – Pavilion x360 2-in-1 14″ Touch-Screen Laptop – Intel Core i5 – 8GB Memory – 256GB…

    HP – Pavilion x360 2-in-1 14″ Touch-Screen Laptop – Intel Core i5 – 8GB Memory – 256GB…

    CableCreation 2-in-1 iPhone and Android Charging Cable 4FT/1.2m, Lightning and Micro USB…

    CableCreation 2-in-1 iPhone and Android Charging Cable 4FT/1.2m, Lightning and Micro USB…

    ASUS ROG Zephyrus G16 Gaming Laptop 16″ FHD 165Hz Intel 10-core i7-13620H 16GB RAM 1TB…

    ASUS ROG Zephyrus G16 Gaming Laptop 16″ FHD 165Hz Intel 10-core i7-13620H 16GB RAM 1TB…

    Apple iPad Air Retina Display Tablet 128GB, Wi-Fi +4G Verizon, Space Gray (Renewed)

    Apple iPad Air Retina Display Tablet 128GB, Wi-Fi +4G Verizon, Space Gray (Renewed)

    STGAubron Gaming PC Computer Desktop, Intel i7 Xeon E5 2.8G, Radeon RX 580 8G, 16G DDR4,…

    STGAubron Gaming PC Computer Desktop, Intel i7 Xeon E5 2.8G, Radeon RX 580 8G, 16G DDR4,…

  • Gaming
    Minish Cap 100% Walkthrough – Part 5/61 – Deepwood Shrine Part 2

    Minish Cap 100% Walkthrough – Part 5/61 – Deepwood Shrine Part 2

    Anthropic says its Claude AI will resort to blackmail in ‘84% of rollouts’ while an independent AI safety researcher also notes it ‘engages in strategic deception more than any other frontier model that we have previously studied’

    Anthropic says its Claude AI will resort to blackmail in ‘84% of rollouts’ while an independent AI safety researcher also notes it ‘engages in strategic deception more than any other frontier model that we have previously studied’

    Majora's Mask Walkthrough – Mask Of Truth [Part 58]

    Majora's Mask Walkthrough – Mask Of Truth [Part 58]

    this creature attack us || part 14 || lost land 8

    this creature attack us || part 14 || lost land 8

    Angler's Tunnel | Zelda: Link's Awakening Remake 100% Walkthrough “9/22” (No Commentary)

    Angler's Tunnel | Zelda: Link's Awakening Remake 100% Walkthrough “9/22” (No Commentary)

    REDRAGON S101 GAMING KEYBOARD

    Akuma Joins Monster Hunter Wilds for a Street Fighter 6 Collaboration

    Breath of the Wild – Climbing Akkala Tower

    Zelda Ocarina Of Time Walkthrough Part 65 – The Final Showdown

    Zelda Ocarina Of Time Walkthrough Part 65 – The Final Showdown

    The Legend Of Zelda The Minish Cap Walkthrough Indonesia Part 7 – Mendapatkan Magical Boomerang

    The Legend Of Zelda The Minish Cap Walkthrough Indonesia Part 7 – Mendapatkan Magical Boomerang

  • Tesla
    100 PCS Car Quick Disconnect Connectors, Universal Vehicle Terminal Assortment Kit,…

    100 PCS Car Quick Disconnect Connectors, Universal Vehicle Terminal Assortment Kit,…

    10PCS Car Wash Kit, Auto Cleaning Tool Set with Brushes, Microfiber Mitts & Towels,…

    10PCS Car Wash Kit, Auto Cleaning Tool Set with Brushes, Microfiber Mitts & Towels,…

    Glove Box Organizer Tray Compatible with Cybertruck Accessories, Co-pilot Gloves Storage…

    Glove Box Organizer Tray Compatible with Cybertruck Accessories, Co-pilot Gloves Storage…

    4PCS Anti-Fingerprint Door Handles for Tesla Cybertruck 2024 2025, Soft Skin-Friendly…

    4PCS Anti-Fingerprint Door Handles for Tesla Cybertruck 2024 2025, Soft Skin-Friendly…

    DURATECH 3-Piece Level Tool Set, Magnetic Torpedo Level Included 2.5″, 6.25″, 8″ Leveler…

    DURATECH 3-Piece Level Tool Set, Magnetic Torpedo Level Included 2.5″, 6.25″, 8″ Leveler…

    CCS1 to Tesla Charger Adapter, Fast and Efficient Charging Adapter for Tesla Model 3 Y S…

    CCS1 to Tesla Charger Adapter, Fast and Efficient Charging Adapter for Tesla Model 3 Y S…

    Tesla (TSLA) is badly affected by Trump’s ‘Big Beautiful Bill’ the GOP just passed

    Tesla Model Y Sunshade Roof, Precision Fit – No Sagging | Sunroof Heat Shield, UV…

    Tesla Model Y Sunshade Roof, Precision Fit – No Sagging | Sunroof Heat Shield, UV…

    YITAMOTOR Floor Mats Compatible with Chevrolet Chevy Colorado Crew cab 2023 2024 2025 &…

    YITAMOTOR Floor Mats Compatible with Chevrolet Chevy Colorado Crew cab 2023 2024 2025 &…

  • UFO
    Humanoid Encounters 1930-1949: The Others amongst Us

    Humanoid Encounters 1930-1949: The Others amongst Us

    Chandrayaan 3 Landing | Vikram Lander | The Lunar Landing #shorts #space #chandrayaan3 #isro #earth

    Chandrayaan 3 Landing | Vikram Lander | The Lunar Landing #shorts #space #chandrayaan3 #isro #earth

    UFO sightings are “frequent and continuing.

    UFO sightings are “frequent and continuing.

    Alien Bigfoot Moon Sasquatch UFO Extraterrestrial Men women T-Shirt

    Alien Bigfoot Moon Sasquatch UFO Extraterrestrial Men women T-Shirt

    5 Bizarre Sky Phenomena You Won’t Believe Are Real!

    5 Bizarre Sky Phenomena You Won’t Believe Are Real!

    Quantum Armageddon, Demonic Doctrines, & UFO Prophecies

    Quantum Armageddon, Demonic Doctrines, & UFO Prophecies

    UFO Black Stopper Sleeve (35mm)

    UFO Black Stopper Sleeve (35mm)

    Is the ALIEN AUTHOR a HIGHLY-EVOLVED QU? (All Tomorrows Theory)

    Is the ALIEN AUTHOR a HIGHLY-EVOLVED QU? (All Tomorrows Theory)

    Home Prefer UPF 50+ Sun Hats for Men Women Wide Brim Fishing Hat with Neck Flap Summer Safari UV Protection Bucket Hat

    Home Prefer UPF 50+ Sun Hats for Men Women Wide Brim Fishing Hat with Neck Flap Summer Safari UV Protection Bucket Hat

No Result
View All Result
  • TC
  • AI
    Artificial Intelligence

    Surprising Things You Can Do with Python’s csv Module

    Artificial Intelligence

    Set up a custom plugin on Amazon Q Business and authenticate with Amazon Cognito to interact with backend systems

    Artificial Intelligence

    StreamBridge: Turning Your Offline Video Large Language Model into a Proactive Streaming Assistant

    Artificial Intelligence

    3 Excellent Practical Generative AI Courses

    Artificial Intelligence

    Building End-to-End Data Pipelines with Dask

    Artificial Intelligence

    Automate document translation and standardization with Amazon Bedrock and Amazon Translate

    Artificial Intelligence

    InterVision accelerates AI development using AWS LLM League and Amazon SageMaker AI

    Artificial Intelligence

    FireDucks: An Accelerated Fully Compatible Pandas Library

    Artificial Intelligence

    Breaking Out of Beginner: Python Patterns for Intermediate Data Scientists

  • Crypto
    Hashdex Seeks SEC Approval to Add Litecoin to Crypto Index ETF

    FIFA Partners with Avalanche to Launch Dedicated Layer-1 ‘FIFA Blockchain’

    R3 and Solana Foundation Unite to Bridge TradFi and DeFi via Strategic Collaboration

    R3 and Solana Foundation Unite to Bridge TradFi and DeFi via Strategic Collaboration

    Kraken to Launch Tokenized US Stocks for Non-American Customers, Enabling 24/7 Trading

    Kraken to Launch Tokenized US Stocks for Non-American Customers, Enabling 24/7 Trading

    NYC Mayor Goes Full Crypto With Council Launch and Tax Plan

    NYC Mayor Goes Full Crypto With Council Launch and Tax Plan

    Hashdex Seeks SEC Approval to Add Litecoin to Crypto Index ETF

    XRP Ledger Adds MiCA EURØP and USDB Stablecoins

    XRP Futures Heat up as Nasdaq Welcomes XRPI and XRPT in Major ETF Debut

    XRP Futures Heat up as Nasdaq Welcomes XRPI and XRPT in Major ETF Debut

    Australian Regulator Appeals Ruling on Block Earner Crypto Offering

    Australian Regulator Appeals Ruling on Block Earner Crypto Offering

    Bitcoin Miner MARA Taps Two Prime to Unlock Value From 500-BTC Corporate Treasury

    Bitcoin Miner MARA Taps Two Prime to Unlock Value From 500-BTC Corporate Treasury

    Strategy Fires up $2.1B New Stock Offering to Accelerate Relentless Bitcoin Buying

    Strategy Fires up $2.1B New Stock Offering to Accelerate Relentless Bitcoin Buying

  • Cybersecurity
    Cybersecurity

    ViciousTrap Uses Cisco Flaw to Build Global Honeypot from 5,300 Compromised Devices

    Cybersecurity

    CISA Warns of Suspected Broader SaaS Attacks Exploiting App Secrets and Cloud Misconfigs

    Cybersecurity

    Chinese Hackers Exploit Trimble Cityworks Flaw to Infiltrate U.S. Government Networks

    Cybersecurity

    Critical Windows Server 2025 dMSA Vulnerability Enables Active Directory Compromise

    Cybersecurity

    Identity Security Has an Automation Problem—And It’s Bigger Than You Think

    Cybersecurity

    Unpatched Versa Concerto Flaws Let Attackers Escape Docker and Compromise Host

    Cybersecurity

    Learn How to Build a Reasonable and Legally Defensible Cybersecurity Program

    Cybersecurity

    Securing CI/CD workflows with Wazuh

    Cybersecurity

    PureRAT Malware Spikes 4x in 2025, Deploying PureLogs to Target Russian Firms

  • Deals
    Lexmark 14N1070 Laser Printer Toner Cartridge

    Lexmark 14N1070 Laser Printer Toner Cartridge

    JMT ADT-F9G F4C F4Q OcuLink SFF-8612 to M.2 NVMe/PCIe X16 Extension Card PCIe4.0 64Gbps…

    JMT ADT-F9G F4C F4Q OcuLink SFF-8612 to M.2 NVMe/PCIe X16 Extension Card PCIe4.0 64Gbps…

    WiFi 6 Adapter for Intel AX201 | Dual Band Up to 2.4 Gbps | CNVio2 M.2 | Bluetooth 5.2…

    WiFi 6 Adapter for Intel AX201 | Dual Band Up to 2.4 Gbps | CNVio2 M.2 | Bluetooth 5.2…

    MAONO Gaming USB Microphone, Noise Cancellation Condenser mic with Mute, Gain,…

    MAONO Gaming USB Microphone, Noise Cancellation Condenser mic with Mute, Gain,…

    HP – Pavilion x360 2-in-1 14″ Touch-Screen Laptop – Intel Core i5 – 8GB Memory – 256GB…

    HP – Pavilion x360 2-in-1 14″ Touch-Screen Laptop – Intel Core i5 – 8GB Memory – 256GB…

    CableCreation 2-in-1 iPhone and Android Charging Cable 4FT/1.2m, Lightning and Micro USB…

    CableCreation 2-in-1 iPhone and Android Charging Cable 4FT/1.2m, Lightning and Micro USB…

    ASUS ROG Zephyrus G16 Gaming Laptop 16″ FHD 165Hz Intel 10-core i7-13620H 16GB RAM 1TB…

    ASUS ROG Zephyrus G16 Gaming Laptop 16″ FHD 165Hz Intel 10-core i7-13620H 16GB RAM 1TB…

    Apple iPad Air Retina Display Tablet 128GB, Wi-Fi +4G Verizon, Space Gray (Renewed)

    Apple iPad Air Retina Display Tablet 128GB, Wi-Fi +4G Verizon, Space Gray (Renewed)

    STGAubron Gaming PC Computer Desktop, Intel i7 Xeon E5 2.8G, Radeon RX 580 8G, 16G DDR4,…

    STGAubron Gaming PC Computer Desktop, Intel i7 Xeon E5 2.8G, Radeon RX 580 8G, 16G DDR4,…

  • Gaming
    Minish Cap 100% Walkthrough – Part 5/61 – Deepwood Shrine Part 2

    Minish Cap 100% Walkthrough – Part 5/61 – Deepwood Shrine Part 2

    Anthropic says its Claude AI will resort to blackmail in ‘84% of rollouts’ while an independent AI safety researcher also notes it ‘engages in strategic deception more than any other frontier model that we have previously studied’

    Anthropic says its Claude AI will resort to blackmail in ‘84% of rollouts’ while an independent AI safety researcher also notes it ‘engages in strategic deception more than any other frontier model that we have previously studied’

    Majora's Mask Walkthrough – Mask Of Truth [Part 58]

    Majora's Mask Walkthrough – Mask Of Truth [Part 58]

    this creature attack us || part 14 || lost land 8

    this creature attack us || part 14 || lost land 8

    Angler's Tunnel | Zelda: Link's Awakening Remake 100% Walkthrough “9/22” (No Commentary)

    Angler's Tunnel | Zelda: Link's Awakening Remake 100% Walkthrough “9/22” (No Commentary)

    REDRAGON S101 GAMING KEYBOARD

    Akuma Joins Monster Hunter Wilds for a Street Fighter 6 Collaboration

    Breath of the Wild – Climbing Akkala Tower

    Zelda Ocarina Of Time Walkthrough Part 65 – The Final Showdown

    Zelda Ocarina Of Time Walkthrough Part 65 – The Final Showdown

    The Legend Of Zelda The Minish Cap Walkthrough Indonesia Part 7 – Mendapatkan Magical Boomerang

    The Legend Of Zelda The Minish Cap Walkthrough Indonesia Part 7 – Mendapatkan Magical Boomerang

  • Tesla
    100 PCS Car Quick Disconnect Connectors, Universal Vehicle Terminal Assortment Kit,…

    100 PCS Car Quick Disconnect Connectors, Universal Vehicle Terminal Assortment Kit,…

    10PCS Car Wash Kit, Auto Cleaning Tool Set with Brushes, Microfiber Mitts & Towels,…

    10PCS Car Wash Kit, Auto Cleaning Tool Set with Brushes, Microfiber Mitts & Towels,…

    Glove Box Organizer Tray Compatible with Cybertruck Accessories, Co-pilot Gloves Storage…

    Glove Box Organizer Tray Compatible with Cybertruck Accessories, Co-pilot Gloves Storage…

    4PCS Anti-Fingerprint Door Handles for Tesla Cybertruck 2024 2025, Soft Skin-Friendly…

    4PCS Anti-Fingerprint Door Handles for Tesla Cybertruck 2024 2025, Soft Skin-Friendly…

    DURATECH 3-Piece Level Tool Set, Magnetic Torpedo Level Included 2.5″, 6.25″, 8″ Leveler…

    DURATECH 3-Piece Level Tool Set, Magnetic Torpedo Level Included 2.5″, 6.25″, 8″ Leveler…

    CCS1 to Tesla Charger Adapter, Fast and Efficient Charging Adapter for Tesla Model 3 Y S…

    CCS1 to Tesla Charger Adapter, Fast and Efficient Charging Adapter for Tesla Model 3 Y S…

    Tesla (TSLA) is badly affected by Trump’s ‘Big Beautiful Bill’ the GOP just passed

    Tesla Model Y Sunshade Roof, Precision Fit – No Sagging | Sunroof Heat Shield, UV…

    Tesla Model Y Sunshade Roof, Precision Fit – No Sagging | Sunroof Heat Shield, UV…

    YITAMOTOR Floor Mats Compatible with Chevrolet Chevy Colorado Crew cab 2023 2024 2025 &…

    YITAMOTOR Floor Mats Compatible with Chevrolet Chevy Colorado Crew cab 2023 2024 2025 &…

  • UFO
    Humanoid Encounters 1930-1949: The Others amongst Us

    Humanoid Encounters 1930-1949: The Others amongst Us

    Chandrayaan 3 Landing | Vikram Lander | The Lunar Landing #shorts #space #chandrayaan3 #isro #earth

    Chandrayaan 3 Landing | Vikram Lander | The Lunar Landing #shorts #space #chandrayaan3 #isro #earth

    UFO sightings are “frequent and continuing.

    UFO sightings are “frequent and continuing.

    Alien Bigfoot Moon Sasquatch UFO Extraterrestrial Men women T-Shirt

    Alien Bigfoot Moon Sasquatch UFO Extraterrestrial Men women T-Shirt

    5 Bizarre Sky Phenomena You Won’t Believe Are Real!

    5 Bizarre Sky Phenomena You Won’t Believe Are Real!

    Quantum Armageddon, Demonic Doctrines, & UFO Prophecies

    Quantum Armageddon, Demonic Doctrines, & UFO Prophecies

    UFO Black Stopper Sleeve (35mm)

    UFO Black Stopper Sleeve (35mm)

    Is the ALIEN AUTHOR a HIGHLY-EVOLVED QU? (All Tomorrows Theory)

    Is the ALIEN AUTHOR a HIGHLY-EVOLVED QU? (All Tomorrows Theory)

    Home Prefer UPF 50+ Sun Hats for Men Women Wide Brim Fishing Hat with Neck Flap Summer Safari UV Protection Bucket Hat

    Home Prefer UPF 50+ Sun Hats for Men Women Wide Brim Fishing Hat with Neck Flap Summer Safari UV Protection Bucket Hat

No Result
View All Result
Techcratic
No Result
View All Result

CRDTs #2: Turtles All the Way Down

Hacker News by Hacker News
May 23, 2025
in Hacker News
Reading Time: 29 mins read
122 8
A A
0
Home Hacker News
Share on FacebookShare on XShare on LinkedIn

2025-05-22 22:29:00
jhellerstein.github.io

After a lecture on cosmology, William James was challenged by a skeptic:

“Your theories are incorrect. The Earth rests on a turtle,”
“And what holds up the turtle?” James asked.
“Another turtle,” came the reply.
“And what holds that up?” pressed James.

The skeptic was undeterred:
“You can’t fool me, sir. It’s turtles all the way down.”

— Anecdote attributed to William James ([via J.R. Ross, 1967](https://en.wikipedia.org/wiki/Turtles_all_the_way_down))

This is the 2nd post in a series of 4 posts I’m doing on CRDTs. Please see the intro post for context.

Modern distributed systems often seem to rest on an stack of turtles.
For every guarantee we make, we seem to rely on a lower-layer assumption. Eventually we’re left wondering: what is at the bottom?

CRDTs — Conflict-Free Replicated Data Types — are often advertised as a foundation we can finally trust.
They promise convergence of state across machines without requiring perfect clocks, global operation ordering, or causal message delivery … and they do it with math.

But many CRDTs sneak in assumptions that don’t belong. That’s not solid ground. It’s not math. It’s turtles.

In this post, we’ll show how to design CRDT internals properly:

  • ✅ Always in terms of a semilattice structure.

  • ✅ Always with clean algebraic reasoning, without hidden dependencies.

  • ✅ With explicit causality lattices included whenever needed.

This will ensure we’re always using careful reasoning.

Correct CRDTs are semilattices at bottom. And that’s math you can count on.

🐢 A Principle for CRDTs: Semilattices All the Way Down

Every well-designed CRDT is a semilattice.

  • ✅ A semilattice defines how information grows and merges.
  • ✅ It provides convergence by construction, through clean algebra.

In case you’ve read about a split between so-called “state-based” vs “op-based” CRDTs, you can ignore that for now; it’s a turtlish distraction I will fill in below. Here’s what actually matters:

A semilattice is:

  • A set of states SSS
  • A join function ⊔:S×S→S\sqcup : S \times S \to S⊔:S×S→S that must satisfy commutativity, associativity, and idempotence.

The join function induces a partial order:
x≤y  ⟺  x⊔y=yx \leq y \iff x \sqcup y = yx≤y⟺x⊔y=y.

When discussing CRDTs, people often use the term merge instead of join.

CRDTs sometimes add additional “update” operators:

update:U→(S→S): U \to (S \to S):U→(S→S)

update takes an input value of type UUU and uses it to directly mutate the local CRDT’s state.

If all pairs of nodes eventually merge state in an associative, commutative and idempotent manner, then eventual convergence of a CRDT is guaranteed — no further assumptions required.

🔍 Common CRDT Mistake: Hiding Assumptions

Many CRDT descriptions assume causal message delivery, message uniqueness, or reliable clocks … but fail to encode these in their semilattices.

🚫 That’s like putting turtles back under the CRDT again!

✔️ Design Rule:

All required assumptions must be internalized in the semilattice structure.

  • If your algorithm needs causality, encode it.

  • If it expires or compresses away state, model that algebraically too, and make sure it respects the rules of a semilattice.

  • You can always optimize later (see below) … but the math must be sound on its own.

Case Study: Add/Remove Sets

Let’s walk through a concrete example. A 2-Phase (2P) Set is a simple CRDT that tracks a pair of set-based lattices (adds, removes) where merge is set-union for each:

  • adds: {(id, element)}
  • removes: {(id, timestamp)} (sometimes referred to as tombstones)

The 2P-Set is a free product of these two set lattices, which is to say that the 2P-Set merge operator is simply the independent merge of 2 adds sets, and 2 removes sets:

(a1,r1)⊔(a2,r2)=(a1⊔a2,b1⊔b2)(a_1, r_1) \sqcup (a_2, r_2) = (a_1 \sqcup a_2, b_1 \sqcup b_2)(a1​,r1​)⊔(a2​,r2​)=(a1​⊔a2​,b1​⊔b2​)

Updates are simple: add an item by inserting into adds, delete an item by placing its id and time of deletion into removes. All good.

Until… you try to expire tombstoned data to save space.

Observed-Remove (OR) Sets

The OR-Set CRDT extends 2P-Sets to allow tombstones to be expired, but … it’s tricky! Let’s walk through it.

A naive scheme for expiring tombstones might work as follows: look at a local wall-clock, and expire ids from adds and removes whose tombstone timestamps are “older” than a threshold. Turns out that this would be bad! Making this decision based on local time can cause non-convergent behavior.

This is not at all obvious (in fact, ChatGPT happily provided incorrect proofs in both directions!), so I constructed a proof by example. The basic idea is this: even after all updates have been issued, nodes can pass an item back and forth as a “hot potato” indefinitely, and never converge despite communicating infinitely often!

Click to see a non-convergent OR-Set cycle infinitely.


FSM Divergence Diagram

This diagram shows an oscillating state change cycle — a single item in an OR-set that uses naive local expiry and never converges, just keeps rotating from state to state forever. Each ‘pie’ represents a *global* state of the item, across each of three nodes, A, B and C. In each state, each of the machines either has the item only in the adds set (+), in the adds and removes sets (—) or in neither (?). Edges are labeled with state transitions: xp@A means that the item expired at node A; B means that node B received a copy of the item from node A.

Click on the image to zoom if needed.

🧯 Fix: Explicit Causality

This brings us back to the main point of this post: we need to explicitly include information in our OR-set semilattice … in this case, to support convergent expiry of state. Specifically we can use a nested semilattice to track a causal context—e.g. a version vector—and use that to determine when it’s safe to expire items:

  • ✅ Expire a tombstone only after every node is guaranteed to know about it.

Note that this constraint breaks the cycle in the diagram of non-convergence above! It forbids the edges S2 -> S3, S5 -> S6 and S8 -> S0: each of those edges represents a tombstone being expired when at least one node is in a green + state and doesn’t believe the tombstone exists!

We enforce the constraint by making the OR-Set semilattice a lexical product semilattice:

(causalContext, (adds, removes))

Unlike our previous free product, the merge operator for the lexical product only looks at its second field (adds, removes) when breaking ties on the first field causalContext:

(cC1,(a1,r1))⊔(cC2,(a2,r2))={(cC1,(a1,r1))if cC1>cC2 (cC2,(a2,r2))if cC2>CC1 (cC1⊔cC2,(a1⊔a2,b1⊔b2))otherwise(cC_1, (a_1, r_1)) \sqcup (cC_2, (a_2, r_2)) = \begin{cases} (cC_1, (a_1, r_1)) & \text{if } cC_1 > cC_2 \\\ (cC_2, (a_2, r_2)) & \text{if } cC_2 > CC_1 \\\ (cC_1 \sqcup cC_2, (a_1 \sqcup a_2, b_1 \sqcup b_2)) & otherwise \end{cases}(cC1​,(a1​,r1​))⊔(cC2​,(a2​,r2​))=⎩⎨⎧​(cC1​,(a1​,r1​)) (cC2​,(a2​,r2​)) (cC1​⊔cC2​,(a1​⊔a2​,b1​⊔b2​))​if cC1​>cC2​if cC2​>CC1​otherwise​

Note that the causalContext is itself another semilattice! It tracks which operations have been observed system-wide. This tracking can be stale, but it is always a conservative lower bound. We can safely expire data from our OR set if it is older than our causalContext.

There are different implementations for causalContext, including version vectors or causal graphs. We’ll work with version vectors since they’re the most common.

Click to learn about version vectors.

We begin by ensuring that each node maintains a local clock — a counter that increments by 1 each time the node applies an operation or sends a message. (Note that a counter is also a semilattice, where the domain S=NS = \mathbb{N}S=N is the natural numbers 0, 1, 2, …, and the merge function is max.)

A version vector is a map from nodeIds to values from a counter lattice: it records the highest clock value a node has heard of from each other node. This map is itself a composite semilattice! Specifically:

  • The domain SSS is a map from nodeId (the key) to a value from the lattice (N,(\mathbb{N},(N, max))) (the value)
  • The merge function is simply key-wise application of the value lattice merge function (i.e., max). If a key is missing from one input to merge, we simply take its value from the other input.

Notice what we did here: we formed a composite semilattice (causalContext, (adds, removes)) out of very simple semilattice building blocks.
The merge functions of these lattices effectively invoke the encapsulated sub-lattice merge functions recursively.

It really is lattices all the way down!

Using Version Vectors for Safe Expiration

To use our version vectors, we will make a few small changes to our OR-set design:

  1. Each node locally maintains an overall version vector containing the merge of all version vectors seen so far: this is typically called a vector clock. It represents a high-watermark of our local knowledge of global progress.
  2. When an item is deleted, its tombstone timestamp is set to the local vector clock.

We can now do expiration safely: tombstones are only expired if their timestamp is lower in the partial order than the local vector clock: if so, we can be sure that every other node also knows about this tombstone, and will eventually expire it as well.

A Note on Op-Based CRDTS

As mentioned above, many CRDT fans like to talk about two “different” kinds of CRDTs: normal (“state-based”) semilattice CRDTs, and something called “op-based” CRDTs. I’m here to tell you that correct op-based CRDTs are also semilattices; the distinction is not fundamental.

An “op-based” CRDT is just a particular class of semilattice. The state of an op-based CRDT represents a partially-ordered log of operations (opaque commands). The CRDT’s job is to ensure that the partially-ordered log is consistent across nodes.

The partial order among ops can be captured by each site tagging every new op it generates with a causalContext value. This ensures (1) that recipients of ops from node nnn will have them ordered in the same way as nnn did, and (2) operations across nodes are causally ordered, via the causalContext.

Specifically, the state SSS of an op-based CRDT can simply be a set of (causalContext, op) tuples, with simple set-union as the merge function. The causalContext is ignored by the lattice merge, but carried along to preserve a consistent partial order of the log. One typical causalContext implementation is to use vector clock timestamps, with each node incrementing its entry in the vector clock for every op and message.

That’s really all there is to an “op-based” CRDT: it’s a grow-only set of causally-stamped commands.

Typically, op-based CRDT designs assume that the log at each site is “played” (eagerly or lazily), by executing the ops in their causal partial order to materialize the local state. This is only required to support a “read” operation, and hence is effectively outside the scope of the CRDT math. Because causal order is only a partial order, different nodes could “play” some ops in different orders. As a result, op-based CRDT designs typically require the ops themselves to be mutually commutative.

If an op-based CRDT has quiesced and propagated to every node, and the ops themselves are mutually commutative, then every node can “play” the log in some total order that respects the partial order, and all nodes will end up with a convergent outcome.

To summarize: an op-based CRDT is still just a simple set semilattice! The only wrinkles are:

  1. The items in the op-based CRDT set are stamped with causalContext to enable causally-ordered replay
  2. For the ops to be meaningful at replay time, ops across sites should be commutative.

🪜 You Can Build on a Turtle — But Know What It Carries

Sometimes, a system’s lower layers provide additional guarantees that allow us to skip some details and rely on a turtle below us.

Example: If your network guarantees causal delivery, you can safely drop explicit causal tracking in your CRDT.

But beware: your CRDT is now resting on that turtle. If the network is not in fact behaving like a causal semilattice, your convergence proofs go out the window!

📌 Takeaways

  • ✅ Every CRDT must be a (correct) semilattice
  • ✅ Order comparisons must respect the partial order induced by merge.
  • ✅ Model all necessary assumptions inside the lattice.
  • ✅ Build on trusted turtles only when you know exactly what they can carry safely.

When you do all that?

It’s semilattices all the way down.

That’s math you can build on.

Source Link


Keep your files stored safely and securely with the SanDisk 2TB Extreme Portable SSD. With over 69,505 ratings and an impressive 4.6 out of 5 stars, this product has been purchased over 8K+ times in the past month. At only $129.99, this Amazon’s Choice product is a must-have for secure file storage.

Help keep private content private with the included password protection featuring 256-bit AES hardware encryption. Order now for just $129.99 on Amazon!


Start your free Amazon Prime trial
today and unlock unlimited streaming and more!

Help Power Techcratic’s Future – Scan To Support

If Techcratic’s content and insights have helped you, consider giving back by supporting the platform with crypto. Every contribution makes a difference, whether it’s for high-quality content, server maintenance, or future updates. Techcratic is constantly evolving, and your support helps drive that progress.

As a solo operator who wears all the hats, creating content, managing the tech, and running the site, your support allows me to stay focused on delivering valuable resources. Your support keeps everything running smoothly and enables me to continue creating the content you love. I’m deeply grateful for your support, it truly means the world to me! Thank you!

BITCOIN

Bitcoin Logo

Bitcoin QR Code

bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge

Scan the QR code with your crypto wallet app

DOGECOIN

Dogecoin Logo

Dogecoin QR Code

D64GwvvYQxFXYyan3oQCrmWfidf6T3JpBA

Scan the QR code with your crypto wallet app

ETHEREUM

Ethereum Logo

Ethereum QR Code

0xe9BC980DF3d985730dA827996B43E4A62CCBAA7a

Scan the QR code with your crypto wallet app

Please read the Privacy and Security Disclaimer on how Techcratic handles your support.

Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.

Tags: Hacker News
Share161Tweet101Share28
Previous Post

Apple’s smart glasses could come sooner than we thought

Next Post

Vintage Mixed Media Portrait Art with Sparkling Buttons & Jewelry

Hacker News

Hacker News

Stay updated with Hacker News, where technology meets entrepreneurial spirit. Get the latest on tech trends, startup news, and discussions from the tech community. Read the latest updates here at Techcratic.

Related Posts

OpenAI: Scaling PostgreSQL to the Next Level
Hacker News

OpenAI: Scaling PostgreSQL to the Next Level

May 23, 2025
1.3k
On 1,145 pull requests per day
Hacker News

On 1,145 pull requests per day

May 22, 2025
1.3k
xe-nvdk/rtcollector: A modular, RedisTimeSeries-native observability agent. Designed for developers, tinkerers, and infrastructure teams who want full control over metrics collection, without the bloat.
Hacker News

xe-nvdk/rtcollector: A modular, RedisTimeSeries-native observability agent. Designed for developers, tinkerers, and infrastructure teams who want full control over metrics collection, without the bloat.

May 22, 2025
1.3k
Ice Theft in Antarctica – Nautilus
Hacker News

Ice Theft in Antarctica – Nautilus

May 22, 2025
1.3k
Ancient law requires a bale of straw to hang from Charing Cross rail bridge
Hacker News

Ancient law requires a bale of straw to hang from Charing Cross rail bridge

May 22, 2025
1.3k
INE Security Partners with Abadnet Institute for Cybersecurity Training Programs in Saudi Arabia – Latest Hacking News
Hacker News

INE Security Partners with Abadnet Institute for Cybersecurity Training Programs in Saudi Arabia – Latest Hacking News

May 22, 2025
1.3k
Load More
Next Post
Vintage Mixed Media Portrait Art with Sparkling Buttons & Jewelry

Vintage Mixed Media Portrait Art with Sparkling Buttons & Jewelry

2 HOUR JOB SEARCH

Applied Scientist III, RBKS AI

Smartphone

Honor 400 in for review

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Your Tech Resources

  • 30 Second Tech ™
  • AI
  • App Zone ™
  • Apple
  • Ars Technica
  • CNET
  • ComputerWorld
  • Crypto News
  • Cybersecurity
  • Endgadget
  • Fossbytes
  • Gaming
  • GeekWire
  • Gizmodo
  • Google News
  • Hacker News
  • Harvard Tech
  • I Like Cats ™
  • I Like Dogs ™
  • LifeHacker
  • MacRumors
  • Macworld
  • Mashable
  • Microsoft
  • MIT Tech
  • PC World
  • Photofocus
  • Physics
  • Random Tech
  • Retro Rewind ™
  • Robot Report
  • SiliconANGLE
  • SlashGear
  • Smartphone
  • StackSocial
  • Tech Art
  • Tech Careers
  • Tech Deals
  • Techcratic ™
  • TechCrunch
  • Techdirt
  • TechRepublic
  • Techs Got To Eat ™
  • TechSpot
  • Tesla
  • The Verge
  • TNW
  • Trusted Reviews
  • UFO
  • VentureBeat
  • Visual Capitalist
  • Weird Stuff
  • Wired
  • ZDNet

Tech News

  • 30 Second Tech ™
  • AI
  • AnandTech
  • Apple Insider
  • Ars Technica
  • CNET
  • ComputerWorld
  • Crypto News
  • Cybersecurity
  • Endgadget
  • ExtremeTech
  • Fossbytes
  • Gaming
  • GeekWire
  • Gizmodo

Tech News

  • Harvard Tech
  • MacRumors
  • Macworld
  • Mashable
  • Microsoft
  • MIT Tech
  • Physics
  • PC World
  • Random Tech
  • Retro Rewind ™
  • SiliconANGLE
  • SlashGear
  • Smartphone
  • StackSocial
  • Tech Careers

Tech News​

  • Tech Art
  • TechCrunch
  • Techdirt
  • TechRepublic
  • Techs Got To Eat ™
  • TechSpot
  • Tesla
  • The Verge
  • TNW
  • Trusted Reviews
  • UFO
  • VentureBeat
  • Visual Capitalist
  • Weird Stuff
  • Wired
  • ZDNet

Site Links

  • About Techcratic
  • Affiliate Disclaimer
  • Affiliate Link Policy
  • Contact Techcratic
  • Dealors Discount Store
  • Privacy and Security Disclaimer
  • Privacy Policy
  • RSS Feed
  • Site Map
  • Support Techcratic
  • Techcratic
  • Tech Deals
  • TOS
  • 𝕏
Click For A Secret Deal

Techcratic – Your All In One Tech Hub © 2020 – 2025
All Rights Reserved
∞

No Result
View All Result
  • Home
  • Apple
  • Gaming
  • Microsoft
  • AnandTech