by Yoric · 3y ago · 0 comments
- programming languages with semantics that are better adapted to specific problems (e.g. Rust's ownership);
- better compilers (see e.g. Haskell's supercompiler, which puts to shame `constexpr`-style features);
- better static analyzers (e.g. better type systems, abstract interpretation, model checkers).
In the case of Machine Learning, it might some day help us create Machine Learning that we can understand and trust better. Or it might fail. Or it might help us invent something different entirely, in 30 years.
But it is my understanding that Rust's ownership traces its roots back to both linear logic (well, affine logic) and region-based resource management, both of which have formal semantics.
I haven't followed what got merged into GHC, but I remember seeing demos (and a paper) of a Haskell supercompiler during a conference many years ago, so it is something.
In my sleep-deprived brain, supercompilation is directly related to algebraic effects (although probably not in Haskell itself), which are themselves related to category theory. I could be wrong.
I suspect that Apple is also using model-checking at various layers, but I have no proof :)