NHacker Next on Rails
  • top
  • new
  • best
  • ask
  • show
  • jobs
login
GuidelinesFAQListsAPISecurityLegalApply to YCContact

Hacker News on Rails, powered by React on Rails Pro. Open the source on GitHub by ShakaCode.

Commit 06fc0df

Rendered at 09:05:07 GMT+0000 (Coordinated Universal Time) with Rails + React on Rails RSC.

Show HN: Warpspec – TLA+ model checking on a GPU, 4,600× faster than TLC (praveenperera.com)

109 points by praveenperera 2d ago | 19 comments

0xcafefood 2d ago
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.

cmrdporcupine 2d ago
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.

mathisfun123 2d ago
> 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).

codebje 2d ago
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.
cmrdporcupine 2d ago
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.

mathisfun123 2d ago
> 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

cmrdporcupine 2d ago
I don't recall claiming novelty. Nor did I say anything about "tearing the world apart" -- you turned the sentence inside out.
mathisfun123 2d ago
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.
cmrdporcupine 2d ago
What is the purpose of your comment? What is it adding to the conversation?
seddonm1 2d ago
This looks great. I had to move away from TLA due to speed so I’ll give it a go for sure.
scrubs 2d ago
Does it do concurrent or MT scc detection? Stock tla does not which is part of why it's slow.
oulipo 2d ago
Quite cool!
senderista 2d ago
Very cool idea, but maybe don't outsource both the implementation and the blog post to Claude?
tombert 2d ago
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.

snizovtsev 2d ago
Not only yours :)
genxy 2d ago
Yeah, but did yours have an FPGA in it?
snizovtsev 2d ago
"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.

praveenperera 2d ago
Nvm on my last comment tomorrow’s release will be faster than TLC on small models too