frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Cuq – Formal Verification of Rust GPU Kernels

https://github.com/neelsomani/cuq
25•nsomani•3h ago

Comments

nsomani•3h ago
Hi all, this is a small research prototype I built that connects Rust's MIR (Mid-level IR) to Coq, the proof assistant used for formal verification.

cuq takes the MIR dump of a Rust CUDA kernel and translates it into a minimal Coq semantics that emits memory events, which are then lined up with the PTX memory model formalized by Lustig et al., ASPLOS 2019.

Right now it supports:

* a simple saxpy kernel (no atomics)

* an atomic flag kernel using acquire/release semantics

* a "negative" kernel that fails type/order checking

The goal isn't a full verified compiler yet. It's a first step toward formally checking the safety of GPU kernels written in Rust (e.g. correct use of atomics, barriers, and memory scopes).

Happy to hear thoughts from folks working in Rust verification, GPU compilers, or Coq tooling.

gaogao•1h ago
Do you think it might be easier to target cuTile instead of PTX? (Probably not, since it has a less formalized model?)
nsomani•1h ago
That instinct is right. cuTile would be easier to parse but harder to reason about formally.
Hexigonz•2h ago
This is pretty cool! Are you sure about the name...
NitpickLawyer•2h ago
It's a system where a 3rd party library (aptly named Coq) gets to throughly verify your kernel, and you get to watch it do its thing? I think the name is fitting.
bitwize•1h ago
It's called Rocq now—for this reason.
sayrer•49m ago
Yeah, "coq" is a grade school joke in French class. It just means "rooster" or something in French, but it sounds ridiculous in English. This one has the same problem.

A company with that in the name made the French national team jersey for a while.

https://en.wikipedia.org/wiki/Le_Coq_Sportif

It's Nike now, but it still has a rooster on it.

CaptainOfCoit•2h ago
I'm getting a ԃҽʝα ʋυ
hnuser123456•1h ago
Bonus points if it runs on UNIX
skrrtww•1h ago
This might be the worst named project of all time. Not funny and demonstrates an absolutely terrible impulse on the part of the author. Probably the worst way possible to advertise your project.

edit: According to the author in a reply, the double entendre was in fact not intentional.

Dilettante_•1h ago
Maybe this surprises you, but some people have different sensibilities than you do.
webdevver•1h ago
not at all - its perfectly logical

you are cucking the betabuxxed bugs in your kernels with your BFV (Big Formal Verifier)

nsomani•1h ago
Oh wow, honestly this caught me off guard - I've been pronouncing it "kook" in my head the whole time.
skrrtww•50m ago
If this was genuinely unintentional on your part, then bless your heart and I'm sorry for assuming the worst. You might be the least morally corrupted internet user alive today.
nsomani•42m ago
I think I've just spent too much time reading the word "CUDA" that I read "cu" as "koo", lol.
OneDeuxTriSeiGo•1h ago
That's not what the name is based on. The name is cu- (as in CUDA kernels) -q (as in coq/rocq). Pronounced Cuke like cucumber.
webdevver•52m ago
cuke - it's heaven in a can!
lacker•54m ago
They're renaming Coq, too, for the obvious reason.

Just go ahead and rename this project to "Rocuda", save everyone a lot of time arguing about what names are appropriate or not.

thrownawaysz•1h ago
'Yer a cuq, Harry

Ovi: Twin backbone cross-modal fusion for audio-video generation

https://github.com/character-ai/Ovi
203•montyanderson•3h ago•60 comments

Willow quantum chip demonstrates verifiable quantum advantage on hardware

https://blog.google/technology/research/quantum-echoes-willow-verifiable-quantum-advantage/
344•AbhishekParmar•7h ago•159 comments

JMAP for Calendars, Contacts and Files Now in Stalwart

https://stalw.art/blog/jmap-collaboration/
207•StalwartLabs•5h ago•82 comments

Mass Assignment Vulnerability Exposes Max Verstappen Passport and F1 Drivers PII

https://ian.sh/fia
175•galnagli•4h ago•42 comments

Why SSA Compilers?

https://mcyoung.xyz/2025/10/21/ssa-1/
61•transpute•2h ago•21 comments

Scripts I wrote that I use all the time

https://evanhahn.com/scripts-i-wrote-that-i-use-all-the-time/
371•speckx•8h ago•130 comments

Element: setHTML() method

https://developer.mozilla.org/en-US/docs/Web/API/Element/setHTML
82•todsacerdoti•13h ago•34 comments

Officials scrub data showing US citizens swept up in immigration arrests

https://www.thedailybeast.com/officials-scrub-data-showing-us-citizens-swept-up-in-immigration-ar...
26•heavyset_go•28m ago•0 comments

Rivian's TM-B electric bike

https://www.theverge.com/news/804157/rivian-tm-b-electric-bike-price-specs-helmet-quad
99•hasheddan•5h ago•165 comments

InpharmD (YC W21) Is Hiring – NLP Engineer

https://inpharmd.com/jobs/inpharmd-is-hiring-ai-ml-engineer
1•tulasichintha•1h ago

VortexNet: Neural network based on fluid dynamics

https://github.com/samim23/vortexnet
3•vegax87•8m ago•0 comments

Common yeast can survive Martian conditions

https://phys.org/news/2025-10-common-yeast-survive-martian-conditions.html
30•geox•1w ago•11 comments

Karpathy on DeepSeek-OCR paper: Are pixels better inputs to LLMs than text?

https://twitter.com/karpathy/status/1980397031542989305
59•JnBrymn•1d ago•12 comments

Show HN: Cuq – Formal Verification of Rust GPU Kernels

https://github.com/neelsomani/cuq
25•nsomani•3h ago•19 comments

HP SitePrint

https://www.hp.com/us-en/printers/site-print/layout-robot.html
137•gjvc•5h ago•99 comments

MinIO stops distributing free Docker images

https://github.com/minio/minio/issues/21647#issuecomment-3418675115
635•LexSiga•16h ago•374 comments

Rethinking CQRS: An Interview on OpenCQRS

https://docs.eventsourcingdb.io/blog/2025/10/23/rethinking-cqrs-an-interview-on-opencqrs/
13•goloroden•2h ago•0 comments

The Tonnetz

https://thetonnetz.com/
38•mci•4d ago•6 comments

I, Sharpie

https://www.commonplace.org/p/chris-griswold-i-sharpie
8•delichon•6d ago•3 comments

I see a future in jj

https://steveklabnik.com/writing/i-see-a-future-in-jj/
172•steveklabnik•5h ago•103 comments

Cryptographic Issues in Cloudflare's Circl FourQ Implementation (CVE-2025-8556)

https://www.botanica.software/blog/cryptographic-issues-in-cloudflares-circl-fourq-implementation
137•botanica_labs•8h ago•66 comments

YASA beats own power density record pushing electric motor to 59kW/kg benchmark

https://yasa.com/news/yasa-smashes-own-unofficial-power-density-world-record-pushing-state-of-the...
8•breve•2h ago•0 comments

Iceland reports the presence of mosquitoes as climate warms

https://www.npr.org/2025/10/22/nx-s1-5582748/iceland-mosquitoes-first-time
17•sans_souse•44m ago•1 comments

André Gorz predicted the revolt against meaningless work (2023)

https://znetwork.org/znetarticle/andre-gorz-was-the-theorist-who-predicted-the-revolt-against-mea...
74•robtherobber•6d ago•18 comments

Galaxy XR: The first Android XR headset

https://blog.google/products/android/samsung-galaxy-xr/
141•thelastgallon•6h ago•161 comments

Meta is axing 600 roles across its AI division

https://www.theverge.com/news/804253/meta-ai-research-layoffs-fair-superintelligence
422•Lionga•6h ago•339 comments

Linux Capabilities Revisited

https://dfir.ch/posts/linux_capabilities/
160•Harvesterify•9h ago•32 comments

Django 6.0 beta 1 released

https://www.djangoproject.com/weblog/2025/oct/22/django-60-beta-released/
71•webology•3h ago•29 comments

Greg Newby, CEO of Project Gutenberg Literary Archive Foundation, has died

https://www.pgdp.net/wiki/In_Memoriam/gbnewby
492•ron_k•13h ago•68 comments

SourceFS: A 2h+ Android build becomes a 15m task with a virtual filesystem

https://www.source.dev/journal/sourcefs
113•cdesai•10h ago•51 comments