Specifying Paxos for System Builders: Pseudocode Made Executable
Abstract
This paper presents a precise executable specification---as a faithful mapping from the pseudocode---of Paxos for System Builders, a practical protocol for replication and consensus in distributed systems. Paxos for System Builders has both a robust implementation in C and a clean pseudocode for critical protocol details. This paper shows how the protocol pseudocode can be expressed easily, essentially line-by-line, in a precise high-level language, DistAlgo, for direct execution in distributed systems. Precise specification and direct execution help significantly in understanding the protocol logic and in automatically checking, tracing, and visualizing protocol runs. They also led to discoveries and fixes of small, difficult-to-catch omissions and liveness bugs in the pseudocode though not the C code. The resulting program also has acceptable performance while having similar size as the pseudocode.
Create a lesson
Metadata
- Comments
- 41 pages. Extended version of invited paper at the 28th International Symposium on Stabilization, Safety, and Security of Distributed Systems. 2026
Related papers
AI-Driven Scientific Computing Workflows: A Systems Review of Orchestration, Execution, Reproducibility and Provenance
Shared title terminologycs.DCJamie J. Alnasir
ECAS: An Edge-Controlled Agentic System for Validation-Gated Scientific Application Execution
Shared title terminologycs.DCBaixi Sun, Mingze Xia, Huihuo Zheng
Copula: Sound Sharing of Stochastic Nodes Across Runs of Agentic Systems
Shared title terminologycs.DCBowen Sun, Haizhong Zheng, Beidi Chen et al.
Dependency-Aware Task Decomposition and Parallel Multi-LLM Execution on Serverless Workflows
Shared title terminologycs.DCJackson Beem, Amine Barrak
Optimal Signature-Free Consensus Made Simple
Shared title terminologycs.DCAntonio J. Fernández-Pinto, Manuel Bravo, Gregory Chockler et al.
Activation-Aware Balancing of Fused CPU and GPU Expert Execution for Offline MoE Inference
Shared title terminologycs.DCBorui Xu, Weihao Cui, Yao Chen et al.