logoalt Hacker News

rurbantoday at 10:09 AM2 repliesview on HN

Oh oh, who would have thought. A memory-safe rust at last. With no unsafe allowed, even type safe. Unless you forget about their type bugs: https://github.com/Speykious/cve-rs.

So maybe eliminate type and concurrency unsafeties also then in the next decades or so.


Replies

bayesnettoday at 10:42 AM

The existence of a soundness bug in the typechecker doesn’t refute the value of soundness as a language design contract.

If anything it’s the opposite: issues demonstrated by cve-rs are _language bugs_ and are _fixable_ in principle. “Safe Rust should be memory-safe” is a well-defined, falsifiable contract that the compiler can be measured against. Meanwhile memory unsafety is a feature of the semantics of C++ and so it would be absurd to file a bug against gcc complaining that it compiled your faulty code.

show 1 reply
pjmlptoday at 12:32 PM

It is called OCaml, for those that want it.