News for hackers. Stuff that matters.
Re:C for All by xamuel on Friday March 23, 2018 @12:29PM (#16659764)
The only way to make C safe without losing performance would be to accompany your C code with a formal proof that it avoids undefined behavior, and use a compiler which refuses to compile the code if the formal proof doesn't validate.
Re:C for All by saagarjha on Friday March 23, 2018 @03:44PM (#16661941)
Which would be essentially impossible for any language like C.
Re:C for All by nickpsecurity on Saturday March 24, 2018 @12:49AM (#16664933)
KCC is an executable, formal semantics for C that does something like that. Runtime Verification Inc uses it for their bug-hunting tools.

https://github.com/kframework/c-semantics

http://fsl.cs.illinois.edu/pubs/ellison-rosu-2012-popl.pdf