3 ms·
For me, the problem with formal methods is that a prerequisite is a (formal) specification, and I've never seen one of those in 20 years of software work.
by toast0 9y ago
For me, the problem with formal methods is that a prerequisite is a (formal) specification, and I've never seen one of those in 20 years of software work.
- Aardappel 9y agoYes. And the ones I did encounter had zero "testing" done to see if they corresponded to the real world. Hence why we need more incremental tools, that allow us to encode more rules into the (type) systems we already use.
- catnaroek 9y ago> And the ones I did encounter had zero "testing" done to see if they corresponded to the real world. You can excuse human beings for being unable to write the programs they want, but if they can't even specify the programs they want, they don't deserve the epithet Homo sapiens.
- tom_mellior 9y agoThat depends on what you want to use formal methods for. For full functional correctness, yes, you need a spec. But much can be gained by just proving the absence of runtime errors, i.e., for C, things like "all array accesses are in bounds", "every dereferenced pointer is valid", or "integer arithmetic never overflows". Formal methods tools for C have those baked in, so you can get going quickly without specifying these things yourself. It's still hard, though.