by nwah1 · 3y ago · 0 comments
But it seems like one possible next step in programming language evolution. Security and correctness will likely matter more and more.
Productively producing incorrect and insecure code may be less valuable in an age where machine learning and botnets are constantly improving and trying to break into your systems, and where a greater and greater percentage of GDP is dependent upon systems not failing. Increasingly we are building systems where lives are on the line, and failure is not an option.
I would say that this does kind of end up as a bit of an aesthetic divide. Because this is kind of an old school view. There's whole aspects of computing right now that are very trendy which have thrown that old school approach out the window.
The field of machine learning is fine with having systems where they have no real idea of what a system will do, whether that result will for sure be correct, how it came up with a particular result, or reliably being able to reproduce the same result with the same inputs.
They may recognize that those are deficiencies, and be working to improve that, but ultimately their paradigm is inductive and statistical, and thus error-prone by its very nature. They recognize that this is a valuable tradeoff for many applications, and a way to build systems that do interesting things right now.
The "symbolic" AI approach would likely take decades to make visible progress.
The most trendy language on HN (Rust) has an initiative called Prusti, and a working group.
Most of the languages that are used for actual formal verification in industry settings are arcane. Like AdaSPARK.
And then there a lot of academic-focused languages meant mainly to experiment with dependent types or prove math theorems.
TLA+ also has some ability to support it, but not out of the box. DynamoDB at AWS was built with it.
The homepage for it has some approachable resources, but for the language itself. The formal verification systems are separate.
https://alloytools.org/citations/case-studies.html
Linked at the top of that page is a book about Alloy. There is also a book about TLA, mentioned in another comment here.