Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: Warpspec – TLA+ model checking on a GPU, 4,600× faster than TLC (opens external site)

107 points by praveenperera 2 days ago praveenperera.com 19 comments (opens Hacker News) Vote (opens Hacker News)

Comments (19)

  1. Bastard stole my idea!

    In all seriousness, this seems unbelievably neat. I have a pretty fancy gaming PC that doesn't get utilized nearly enough; being able to brute force my TLA+ seems like a responsible way to use it.

    Replies (1)
    1. Not only yours :)
      Replies (1)
      1. Yeah, but did yours have an FPGA in it?
        Replies (1)
        1. "PaxosCommit RM = 3 uses about 26.4 GB of the RTX 5090’s 32 GB this way" How practical would this be on an FPGA, given its even more limited with memory?

          I've tried verifying some simple vibe-coded TLA+ models based on linux mm/ locks using this project, and it seems the bottleneck isn't the GPU workload itself, but rather the Rust-to-PTX compiler. So I think the idea of TLA+ on GPUs is still waiting for a good engineer to implement it properly, rather than just blindly vibe-coding it.

          Replies (1)
          1. Nvm on my last comment tomorrow’s release will be faster than TLC on small models too
  2. Very cool idea, but maybe don't outsource both the implementation and the blog post to Claude?
  3. 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.

    Replies (1)
    1. I've got local ... mostly AI created... work that does routing and placement to FPGA from a yosys synthesized ... thing. And I have it sped up to several multiples faster than the equivalent run in Vivado by using CUDA & the integrated GPU of my DGX Spark to optimize The Algorithms(tm).

      Routing/placement/timing analysis, it's all very multithreaded and parts getting CUDA acceleration, and it's way faster than using Xilinx's painful stuff.

      Not really wanting to publish it for the world to tear apart, but it works for me to flash the hardware I'm flashing and I'm doing some rather crazy stuff... All born from getting sick of the iteration times and wanting a much faster development cycle.

      Replies (3)
      1. Vivado is a very low bar. I'd expect you to also be faster than nextpnr or whatever it's called these days if you're using GPU acceleration, though.
        Replies (1)
        1. Vivado literally pinned all the cores of my CPU to 100% while downloading an add-on. Busy looping in a progress bar or something. Just an insanely low bar in terms of software quality.

          But $4000 for a single host license.

      2. > Not really wanting to publish it for the world to tear apart

        I guess it's a good thing someone did this a long time ago and it didn't tear the world apart

        https://github.com/limbo018/DREAMPlace

        https://github.com/rachelselinar/DREAMPlaceFPGA

        Replies (1)
        1. I don't recall claiming novelty. Nor did I say anything about "tearing the world apart" -- you turned the sentence inside out.
          Replies (1)
          1. I hastily read your sentence that's true but my point stands: the world isn't going to suddenly take notice because it's already been done many times.
            Replies (1)
            1. What is the purpose of your comment? What is it adding to the conversation?

              Continue this thread (1 replies) →

      3. > Routing/placement/timing analysis, it's all very multithreaded

        this isn't true in the slightest - each of these is a global optimization problem. parallelized approaches solve approximations (whereas vivado actually embeds a SAT solver).

  4. Quite cool!
  5. This looks great. I had to move away from TLA due to speed so I’ll give it a go for sure.
  6. Does it do concurrent or MT scc detection? Stock tla does not which is part of why it's slow.