News for hackers. Stuff that matters.
Re:Depressing and faintly terrifying days for the C standard... by eddyb on Wednesday May 30, 2018 @07:06PM (#17192665)
You won't be able to entirely validate yourself most memory-related invariants in a language which can allow breaking memory safety, that's why I mentioned the hypothetical language which can encode proofs for invariants.

What you want is effectively automated proof-search (a hard problem) for an entirely-safe systems language (which doesn't even exist yet, AFAIK. at least not what I described).

Re:Depressing and faintly terrifying days for the C standard... by vyodaiken on Wednesday May 30, 2018 @09:26PM (#17193284)
Right. C is not designed to be memory safe. So certain invariants are harder to prove (or just not true). One problem with UB is that it allows compilers to assume false things.