News for hackers. Stuff that matters.
Re:Why Don't People Use Formal Methods? by mpweiher on Tuesday January 22, 2019 @04:46AM (#18967180)
I had exactly the same experience. We did specification in Z, but the code that was supposed to be "proved" correct was a clearer reflection of what we wanted to do than the "spec".

So I actually had more confidence in the code than I did in the spec.

And I think this answers the question of the OP: people don't use formal methods because

(a) the vast majority of problems don't start out with a formal spec

(b) the gap between informal and formal is vastly more relevant than the one between different formalisms

(c) formal methods are significantly worse at bridging the formal/informal gap than most programming languages

And yes, when you have a sub-problem that is mostly formal, then it can make sense, particularly if there's a lot riding on it.

Re:Why Don't People Use Formal Methods? by brazzy on Tuesday January 22, 2019 @05:37AM (#18967341)
> And I think this answers the question of the OP

Do you realize that the OP is actually linking to an article explaining this (and a bunch of other aspects) in great detail?

Re:Why Don't People Use Formal Methods? by mpweiher on Tuesday January 22, 2019 @07:07AM (#18967672)
While it's a good article, I didn't see it covering this aspect, particularly (c).