Hacker News new | past | comments | ask | show | jobs | submit login

> which had a miscompilation bug until 1.52.1,

All compilers have miscompilation bugs. Even ones that are proven correct.

> has no specifications or alternative implementations, right?

There is one alternative implementation that is good enough to bitwise reproduce rustc, there are a few other in-progress alternate implementations.

> I’m not aware of any progress in “sealed rust” or “rust belt”

That doesn't mean they haven't progressed. By the way, "Sealed Rust" is now called "Ferrocene" and is expected to GA in late 2022. https://ferrous-systems.com/ferrocene/

> There are other verified compilers that could be used now, though.

This is true, for sure. A compiler being verified is not a panacea.




A verified compiler is not panacea, but rust is because of unsubstantiated claims of its marketing professionals? This is total nonsense.


Where did I say Rust is a panacea? A verified Rust compiler is a verified compiler, and wouldn’t be one either.


The stated goal of the grant program is to rewrite stable software many people use in Rust with the implied context being that C can’t be trusted, but Rust can be. I’m surprised that a language with no specified guarantees is favored over well established methods of verification. When you poopoo formal methods and verified compilers, it’s very hard to find a coherent logic behind RIIR, which offers much less in terms of security.

Unless the exercise is a pretext to rationalize the grant money (which would be the real purpose).


The formal verification researchers I've worked with love Rust, because its type system nails the basics so they can focus on proving more interesting properties.

Rust and formal verification work really well together. You can formally verify properties in a small section of critical code, then use the type and lifetime systems to expand those properties to the whole codebase. It's not an either/or, it's a both/and.


That's fascinating. Can you direct me to any of their papers or public work formally verifying a rust codebase? I haven't seen that before.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: