4 ms·
But metadata is needed for proper formal reasoning, and C has barely any additional information content over some very vague “typing” hints, everything else bei
by kaba0 5y ago
But metadata is needed for proper formal reasoning, and C has barely any additional information content over some very vague “typing” hints, everything else being only conventions enforced more or less by the linux community.
So Rust’s lifecycle annotations are what makes proper proofs possible in the first place.
(As for proofs though, they are no silver bullets either — a program of linux’s complexity is unlikely to be ever completely verified, but rust may indeed give valuable guarantees for most of the program)
- pjmlp 5y agoOn Windows we have SAL for that metadata. https://docs.microsoft.com/en-us/cpp/c-runtime-library/sal-annotations?view=msvc-160 https://docs.microsoft.com/en-us/cpp/c-runtime-library/sal-a... Naturally it doesn't help for portable code, nor if the people don't make use of it, or the static analysers on the code.