← Wed, Dec 2 digest

Show HN: Warpspec – TLA+ model checking on a GPU, 4,600× faster than TLC

read article ↗ hn thread ↗

Warpspec compiles TLA+ specifications into bit-packed Rust state machines that run on an NVIDIA GPU, achieving up to 4,600x faster model checking than TLC.

read it It provides a deep technical breakdown of how eliminating dynamic typing and leveraging GPU bitwise operations radically accelerates distributed protocol verification.

summary

Warpspec is a new open-source TLA+ model checker that compiles specifications into fixed-size, bit-packed no_std Rust state machines to run searches on an NVIDIA GPU or multi-core CPU. By stripping away Java's dynamic typing and fitting entire states into flat bit arrays, it avoids heavy memory allocations and drastically reduces instruction cache stalls. In benchmarks, it matches standard TLC outputs while achieving speedups ranging from tens to over 4,000 times faster. While currently limited to safety properties on the GPU and models that fit entirely within VRAM, it successfully compiles and verifies the majority of standard TLA+ example suites.

key points

  1. Warpspec maps TLA+ states into bit-packed arrays, enabling bitwise operations instead of dynamic value tree evaluations.
  2. On an NVIDIA RTX 5090, it verified PaxosCommit in 3.65 seconds, representing a 4,600x speedup over 24-worker TLC.
  3. The architecture uses a single Rust codebase compiling to CPU threads or GPU kernels via cuda-oxide, separating heavy safety checks from trace reconstruction.

who should read it

Distributed systems engineers and formal verification practitioners looking to speed up heavy TLA+ model checking workloads.

discussion warm

consensus

Commenters find the project remarkably cool and practical for utilizing high-end desktop GPUs for brute-force model checking.

pushback

One commenter questions whether the implementation and blog post were outsourced to AI tools like Claude.

best comment by 0xcafefood ↗

This is very cool.

I've wondered if something similar could be done to perform model checking on an FPGA. It would probably be easier to start with Spin, where the Promela spec and logic to check it are used to produce C code. That could then be translated to Verilog.

It broadens the discussion by exploring whether a similar approach could be implemented on FPGAs using Spin and Promela.

Generated by an LLM from the article and thread. Check the sources before relying on it.