Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Dafny

dafny.org

  • Free plan
  • Windows
  • macOS
  • Linux
  • Self-hosted
7.6 Club score Visit dafny.org

What the maker publishes

Audience
Dafny is used in academia for teaching and research and in industry, including by teams at Amazon. source
Compilation targets
Dafny can compile programs to C#, Java, JavaScript, Go, and Python. source
Compilation targets
Dafny compiles code to C#, Java, JavaScript, Go, and Python, with more targets in development. source
Dependencies
The Dafny tool is a .NET 8.0 artifact, and the Z3 tool is required to use Dafny for verification. source
Desktop support
The installation guide lists Windows, Linux, and macOS binary builds and tests Dafny on supported operating system versions. source
IDE integrations
The Dafny ecosystem includes a Visual Studio Code extension powered by a Language Server Protocol implementation, plus a code formatter. source
Intended users
The project describes Dafny as used in academia for teaching and research and in industry, including by teams at Amazon. source
Known target limits
The installation guide describes Rust support as partial and growing and C++ support as rudimentary and special-purpose. source
Language features
The language supports classes, iterators, arrays, tuples, generic and subset types, inductive datatypes, lambdas, and mutable and immutable data structures. source
Learning resources
The Dafny documentation links to a getting-started tutorial, reference manual, FAQs, error explanations, verification optimization guide, style guide, and examples. source
License
The Dafny software is licensed under the MIT License. source
Other editor integration
The installation guide describes using Dafny with Emacs as well as Visual Studio Code. source
Platforms
Installation instructions cover Windows, Linux, and macOS; the project repository also lists binary downloads for FreeBSD. source
Product
Dafny is a verification-aware programming language with native specification support and a static program verifier. source
Proof features
Its proof toolbox includes quantifiers, calculational proofs, lemmas, preconditions, postconditions, termination conditions, loop invariants, and read/write specifications. source
Purpose
It helps developers write code that can be verified against specifications to reduce the risk of late-stage bugs. source
Requirements
The Dafny tool is a .NET 8.0 artifact, and Dafny plus its bundled Z3 tool are sufficient for verification; compiling and running generated programs may require additional tools. source
Security reporting
The project asks people who discover a potential security issue to notify its security contact instead of creating a public GitHub issue. source
Support
The project directs users to its Zulip channel for questions and GitHub for issue reports. source
Support
The project homepage directs users to a Zulip channel to ask questions about Dafny. source
Target requirements
Compiling generated code requires tools for the selected target language, such as .NET for C#, Node.js for JavaScript, and Go tools for Go. source
Tooling
The Dafny ecosystem includes compilers, IDE plugins, a language server, a code formatter, a reference manual, and tutorials. source
VS Code
The VS Code extension supports compiling and running .dfy files, verification while typing, syntax highlighting, verification traces, IntelliSense, go to definition, and hover information. source
VS Code features
The VS Code extension supports verification while typing, compiling and running .dfy files, syntax highlighting, verification traces, IntelliSense, go to definition, and hover information. source

Checked against the maker's pages on 5 Oct 2026.