Re:CompCert – A formally verified C compiler
by marinintim on Tuesday January 22, 2019 @12:20PM
(#18970042)
Going to great lengths to avoid writing Rust.
[ Parent
| on HN ]
Re:CompCert – A formally verified C compiler
by wk_end on Tuesday January 22, 2019 @03:08PM
(#18971915)
This is about verifying the compiler, not proving any properties of the generated code. Totally orthogonal to Rust's aims, unless the Rust compiler has been formally verified (I don't believe it has).
Re:CompCert – A formally verified C compiler
by strangecasts on Tuesday January 22, 2019 @05:32PM
(#18973291)
There has been work to verify a subset of Rust's logic - https://plv.mpi-sws.org/rustbelt/popl18/ - but the compiler itself is not verified, no.
Re:CompCert – A formally verified C compiler
by steveklabnik on Tuesday January 22, 2019 @03:50PM
(#18972308)
It has not.
Re:CompCert – A formally verified C compiler
by stcredzero on Tuesday January 22, 2019 @12:26PM
(#18970123)
Would the world be a better place if Linux, the BSD kernel behind OS X, and the Windows kernel were all rewritten in Rust? (I don't think it would be dramatically better overnight.)
Re:CompCert – A formally verified C compiler
by sanxiyn on Tuesday January 22, 2019 @01:23PM
(#18970758)
If we could do this by waving a wand without downsides (e.g. all existing maintainers magically acquire Rust knowledge, etc.), yes it would be better. No question.
Seriously, people, you can find kernel bugs at will with kernel fuzzers like syzkaller from Google. Look at https://github.com/google/syzkaller/blob/master/docs/found_b... and weep.
Re:CompCert – A formally verified C compiler
by AnimalMuppet on Tuesday January 22, 2019 @05:44PM
(#18973403)
If the Linux kernel writers all instantly knew Rust as well as they know C, then in 10 years they might produce something that is as functional as the Linux kernel currently is. In the process, they would lose everything that they could do over the next ten years to improve the Linux kernel.
You could claim that eventually the payoff would pay back the lost 10 years. But "eventually" can be a very long time...
Re:CompCert – A formally verified C compiler
by c1yd3i on Tuesday January 22, 2019 @01:04PM
(#18970549)
It would be better overnight. But it would be even better if we had one NT like kernel and a new OS built from scratch with a browser (webkit) based ui.
Re:CompCert – A formally verified C compiler
by stcredzero on Tuesday January 22, 2019 @01:12PM
(#18970627)
a new OS built from scratch with a browser (webkit) based ui
So basically, ChromeOS rewritten in Rust? Why not a Servo based UI?