dafny

Dafny is a verification-aware programming language (by dafny-lang)

Dafny Alternatives

Similar projects and alternatives to dafny

  1. rust

    2,958 dafny VS rust

    Empowering everyone to build reliable and efficient software.

  2. ReSharper

    ReSharper is now available in VS Code and Cursor. ReSharper brings a professional toolset for C# developers backed by over 20 years of experience, enterprise-grade security, SOC 2 compliance, and the trust of companies worldwide.

    ReSharper logo
  3. Django

    559 dafny VS Django

    The Web framework for perfectionists with deadlines.

  4. Pandas

    449 dafny VS Pandas

    Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more

  5. csharplang

    The official repo for the design of the C# programming language

  6. buttplug-rs

    Rust Implementation of the Buttplug Sex Toy Control Protocol

  7. rocq

    89 dafny VS rocq

    The Rocq Prover is an interactive theorem prover, or proof assistant. It provides a formal language to write mathematical definitions, executable algorithms and theorems together with an environment for semi-interactive development of machine-checked proofs.

  8. lean4

    69 dafny VS lean4

    Lean 4 programming language and theorem prover

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. WeasyPrint

    58 dafny VS WeasyPrint

    The awesome document factory

  11. FStar

    48 dafny VS FStar

    A Proof-oriented Programming Language

  12. tlaplus

    43 dafny VS tlaplus

    TLC is a model checker for specifications written in TLA+. The TLA+Toolbox is an IDE for TLA+.

  13. z3

    40 dafny VS z3

    The Z3 Theorem Prover

  14. Idris2

    41 dafny VS Idris2

    A purely functional programming language with first class types

  15. checkedc

    Checked C is an extension to C that lets programmers write C code with bounds checking and improved type-safety. The goal is to let people easily make their existing C code type-safe and eliminate entire classes of errors.

  16. prusti-dev

    23 dafny VS prusti-dev

    A static verifier for Rust, based on the Viper verification infrastructure.

  17. magmide

    A dependently-typed proof language intended to make provably correct bare metal code possible for working software engineers.

  18. zz

    10 dafny VS zz

    Discontinued πŸΊπŸ™ ZetZ a zymbolic verifier and tranzpiler to bare metal C

  19. mintable

    8 dafny VS mintable

    πŸƒ Automate your personal finances – for free, with no ads, and no data collection.

  20. koka

    33 dafny VS koka

    Koka language compiler and interpreter

  21. pasv

    7 dafny VS pasv

    The Pascal-F Verifier

  22. letlang

    12 dafny VS letlang

    Functional language with a powerful type system.

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better dafny alternative or higher similarity.

dafny discussion

Log in or Post with

dafny reviews and mentions

Posts with mentions or reviews of dafny. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2026-05-20.
  • There's Never Been a Better Time to Study Computer Science
    1 project | news.ycombinator.com | 25 May 2026
  • Learnings from 100K lines of Rust with AI (2025)
    2 projects | news.ycombinator.com | 20 May 2026
    It's a set of asserts that are a part of the type signature. Requires are asserts on the inputs, ensures are asserts on the outputs.

    Depending on your backend you either ignore them, check them all of the time, some of the time, or have SMT-solvers prove that if you uphold the first one all else must follow.

    If you're interested in the last one, have a look at Dafny[0]

    [0] https://dafny.org/

  • Vera: a programming language designed for machines to write
    5 projects | news.ycombinator.com | 29 Apr 2026
    > The signature declares types, preconditions, postconditions, and effects. The compiler verifies the contract via SMT solver.

    This reminds me of Dafny: https://dafny.org/

    Actually, that would be an interesting question: how good are LLMs at writing (correct) Dafny?

  • Dafny: Verification-Aware Programming Language
    1 project | news.ycombinator.com | 16 Dec 2025
  • Verified Ordered Set in Dafny
    1 project | dev.to | 14 Aug 2025
    In the world of software development, we spend countless hours writing tests to prevent bugs. But what if we could prove, with mathematical certainty, that our code is free of entire classes of errors? This is the promise of formal verification, and tools like Dafny are making it more accessible than ever.
  • Long division verified via Hoare logic
    1 project | news.ycombinator.com | 26 Feb 2025
    Automation of Hoare logic is quite good these days. Dafny, from MS Research (https://dafny.org), is probably the most friendly formal language. Dafny has been used to verify large systems, including many components of AWS. I am hoping that LLMs make more advanced languages, such as Liquid Haskell or Agda, much easier to write. Ideally, lots of code should be autocompleted once a human provides a type signature. The advantage of formal verification is that we are sure the generated code is correct.
  • Automated reasoning and generative AI: Harness creativity with formal verifications
    2 projects | dev.to | 28 Jan 2025
    Modern software verification employs various approaches, each offering different trade-offs between ease of use and strength of guarantees. AWS contributes to the open source program verification tools used in the previous examples. Dafny and Kani represent two powerful approaches to program verification. Let's see how they work in practice before connecting the dots between automated reasoning and generative AI.
  • Playing Chess with 84,688 Regular Expressions
    6 projects | news.ycombinator.com | 6 Jan 2025
    On that note, I discovered Dafny[1] recently, as a more accessible way to program with proofs. There's a companion book[2] that seems very accessible and down-to-earth (and, unfortunately, quite expensive). I didn't have the time to play with it yet, but it looks like it does what Ada/SPARK does (and more), but with less verbose syntax and more options for compilation targets. It seems to be actively developed, too. Personally, I had a very hard time getting into Coq, which is a proof assistant more than a programming environment - Dafny seems much more welcoming for a "working programmer" :)

    [1] https://dafny.org/

    [2] https://mitpress.mit.edu/9780262546232/program-proofs

  • F*: A proof oriented general purpose programming language
    5 projects | news.ycombinator.com | 25 Dec 2024
    https://dafny.org/ also allows proof checking and allows do write real programs with it. It has a java like syntax and is also from MS I believe
  • Safer with Google: Advancing Memory Safety
    2 projects | news.ycombinator.com | 16 Oct 2024
    > I do think there's a bit of the Ignaz Semmelweis[1] issue at hand here, where developers want to believe in their inherent quality and refuse processes that improve safety if it goes against their worldview

    I think the problem is that other variables (not only safety) must be assessed beyond the pure "better". Haskell is very good also. Very correct. Who uses that, and where? And why? Why not everyone uses https://dafny.org/ ?

  • A note from our sponsor - SaaSHub
    www.saashub.com | 15 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more β†’

Stats

Basic dafny repo stats
43
3,431
8.3
4 days ago

dafny-lang/dafny is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

The primary programming language of dafny is C#.


Sponsored
ReSharper is now available in VS Code and Cursor
ReSharper brings a professional toolset for C# developers backed by over 20 years of experience, enterprise-grade security, SOC 2 compliance, and the trust of companies worldwide.
www.jetbrains.com