Hacker News new | ask | show | jobs
by hyperbrainer 619 days ago
What is "more memory-safe than rust" supposed to mean? Rust is completely memory-safe.
1 comments

Only safe Rust can guarantee this, and only as a consequence of any unsafe Rust being correct.

Most of the popular Garbage Collected languages of course also have a way to escape, in some cases via an "unsafe" keyword or magic unsafe package to a language where the same safety rules do not exist, in this sense the difference in Rust is that it's the same language.

I'd actually say the more memory safe option would be a language like WUFFS where it pays a high price (generality) to deliver categorically better safety and performance. Most software could not be written in WUFFS but also most of the software which could be written in WUFFS isn't.