Re:Dafny is a verification-aware programming language
by junon on Wednesday April 24, 2024 @04:12AM
(#40141867)
Very neat. Needs Rust compilation support!
[ Parent
| on HN ]
Re:Dafny is a verification-aware programming language
by r9295 on Wednesday April 24, 2024 @05:16AM
(#40142214)
Probably never gonna happen due to how unstable rustc is and due to the fact that a lot of projects require nightly.
Re:Dafny is a verification-aware programming language
by junon on Wednesday April 24, 2024 @05:27AM
(#40142270)
It actually appears they have a rust backend, it just isn't listed in the readme.
It's also a myth that you can't generate stable rust.
Re:Dafny is a verification-aware programming language
by _flux on Wednesday April 24, 2024 @06:09AM
(#40142542)
Surely generating Rust is not a moving target, if you choose to target stable?
Re:Dafny is a verification-aware programming language
by r9295 on Wednesday April 24, 2024 @06:13AM
(#40142573)
It depends on how feasible stable Rust is for popular projects. Many projects mandate nightly. Even if it is a fixed nightly version, the discrepancies across nightly versions add up since they don't just add APIs, they remove them too.
Re:Dafny is a verification-aware programming language
by junon on Wednesday April 24, 2024 @10:59AM
(#40145167)
Stable rust is inherently compatible with nightly. Especially if they're in their own crate.
Re:Dafny is a verification-aware programming language
by _flux on Wednesday April 24, 2024 @12:37PM
(#40146563)
Unstable rustc can compile stable code. For code you'd write with Dafny I highly doubt it would be an issue. Perhaps you have a proof of the opposite?
I've only ever needed nightly when doing something a bit off the beaten path, like targeting microcontrollers. The Linux kernel is another big project that needs unstable. It's much more rare a need than you make it out to be.
Re:Dafny is a verification-aware programming language
by syrak on Wednesday April 24, 2024 @08:14AM
(#40143446)
For verified Rust there is also https://github.com/creusot-rs/creusot
Re:Dafny is a verification-aware programming language
by junon on Wednesday April 24, 2024 @11:00AM
(#40145177)
Cool, thanks! Will have to look into this
Re:Dafny is a verification-aware programming language
by MikaelMayer on Wednesday April 24, 2024 @01:08PM
(#40147022)
I'm working on it! Feel free to launch a discussion in the GitHub project if you are interested, with examples in mind, if have any questions.