内容简介:Dafny is a programming language with a program verifier. As you type in your program, the verifier constantly looks over your shoulders and flags any errors. This github site contains these materials:
Dafny is a programming language with a program verifier. As you type in your program, the verifier constantly looks over your shoulders and flags any errors. This github site contains these materials:
- sources
- binary downloads for Windows, Mac, GNU/Linux, and FreeBSD
- the issue tracker
- the wiki, including frequently asked questions
Documentation about the dafny language and tools is located here . A reference manual is available both online and as pdf . (A LaTeX version can be produced if needed.)
Community
You can ask questions about Dafny on Stack Overflow or participate in general discussion on Dafny's.
Try Dafny
The easiest way to get started with Dafny is to use rise4fun , where you can write and verify Dafny programs without having install anything. On rise4fun , you will also find the online Dafny tutorial. It is also easy to install Dafny on your own machine in VS Code, which gives you a much better user experience than in the web browser.
Setup
See installation instructions on the wiki and instructions for installing the Dafny mode for Emacs .
Read more
Here are some ways to get started with Dafny:
- 4-part course on the Basics of specification and verification of code :
- Lecture 0: Pre- and postconditions (19:08)
- Lecture 1: Invariants (20:56)
- Lecture 2: Binary search (21:14)
- Lecture 3: Dutch National Flag algorithm (20:33)
- New overview article: Accessible Software Verification with Dafny , IEEE Software, Nov/Dec 2017
- Online tutorial , focusing mostly on simple imperative programs
- 3-page tutorial notes with examples (ICSE 2013)
- Dafny Quick Reference
- Language reference for the Dafny type system , which also describes available expressions for each type
- Cheatsheet : basic Dafny syntax on two pages
- Dafny Reference Manual [ html ] [ pdf ]
- Dafny Power User
- Videos at Verification Corner
The language itself draws pieces of influence from:
- Euclid (from the mindset of a designing a language whose programs are to be verified),
- Eiffel (like the built-in contract features),
- CLU (like its iterators, and inspiration for the out-parameter syntax),
- Java, C#, and Scala (like the classes and traits, and syntax for functions),
- ML (like the module system, and its functions and inductive datatypes), and
- Coq and VeriFast (like the ability to include co-inductive datatypes and being able to write inductive and co-inductive proofs).
External contributions
- Haskell-to-Dafny translator , by Duncan White
- Vim-loves-Dafny mode for vim, by Michael Lowell Roberts
- Boogie-Friends Emacs mode
Contributors
To enforce some basic style conventions, we've adopted pre-commit . We're using their default hooks . When you clone Dafny, install pre-commit as per the instructions . For example, on OSX you do
$ brew install pre-commit
Then run
$ pre-commit install
This will install pre-commit hooks in your .git/hooks directory.
Code of Conduct
This project has adopted the Microsoft Open Source Code of Conduct . For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
License
Dafny itself is licensed under the MIT license. (See LICENSE.txt in the root directory for details.) The subdirectory third_party contains third party material; see NOTICES.txt for more details.
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
重新定义团队:谷歌如何工作
拉兹洛·博克 / 宋伟 / 中信出版集团 / 2015-12-1 / CNY 56.00
谷歌首席人才官拉斯洛•博克权威力作,谷歌公开认可的谷歌高层作品,首度揭秘谷歌颠覆工业时代模式的人才和团队管理的核心法则,《纽约时报》畅销榜第一名,Business Insider 2015最佳商业书籍,谷歌的创造力就在于此! 编辑推荐! 1、 谷歌人才官首次公开谷歌人才和团队管理的核心秘籍 在谷歌执掌人事多年的拉斯洛•博克是人才和团队管理的顶级专家。他加入谷歌后,谷歌的员工数从六......一起来看看 《重新定义团队:谷歌如何工作》 这本书的介绍吧!