logoalt Hacker News

pixl97 • yesterday at 4:39 PM • 1 reply • view on HN

>But they where harder to implement and very complex

This is the general trade off for being correct. Being mostly right is easy, but leads to complex security issues later. Being correct is very hard, but should reduce the number of flaws to a manageable level.

I think Lean or Ada would be examples of different types of correctness contracts.


Replies

jeanpah • yesterday at 6:49 PM

I remember those languages were used to verify an implementation, in space rockets code (uni teacher said). But maybe there is a way to build something perfect instead of veryfying the correct implentation?

➕ show 1 reply