Teaching Program Verification in Dafny at Amazon (2023)

26 Jtsummers 4 6/2/2025, 10:03:50 PM dafny.org ↗

Comments (4)

trashchomper · 4h ago
Having played with Dafny only in a university course, I really enjoyed it as a way of implementing algorithms and being certain they work with much less cruft than unit tests.

I haven't gone looking but verifier tools compatible with languages people already use (typescript/rust/go/whatever is the flavour of the month) feel like the way to go

Jtsummers · 4h ago
I agree, using tools more in line with your language is better but I believe the knowledge from learning Dafny ought to transfer well to other systems. And Dafny seems better as a pedagogical system than what I've seen and used for other languages.

I'm exploring it now as a way to ease colleagues into SPARK. A lot of the material appears to transfer over and the book Program Proofs seems better to me than what I found for SPARK. I probably wouldn't have colleagues work through the book themselves so much as run a series of tutorials. We've done this often in the past when trying to bring everyone up to speed on some new skillset or tooling, if someone already knows it (or has the initiative to learn ahead of time) then they run tutorial sessions every week or so for the team.

mmoskal · 3h ago
https://github.com/verus-lang/verus is similar tool for Rust (developed by previous heavy users of Dafny).
Jtsummers · 6h ago
https://news.ycombinator.com/item?id=38691437 - Dec 2023, 1 comment

This only had the one previous submission but I found it interesting. The mentioned book, Program Proofs, is worth checking out if the topic and language interests you.