logoalt Hacker News

josemanuel • today at 1:10 PM • 2 replies • view on HN

A few observations: - I always get the sense we all live in our own little bubbles.

- It's clearly not economically viable to manually transition all codebases to rust or any other mem-safe lang.

- How cute that the paper points out that any mem-safe language is fine, though rust is always the prime example. Almost as if this is a rust marketing piece, but the author wants to move away from the controversy.

- Is mem-safety even that important when hardware has mitigations like MTE (or capabilities in the future)?

- Is mem-safety even important when we're going through the tectonic shift of AI developing code and AI reviewing it! Where limitations of human perception/attention are no longer that relevant?


Replies

rbanffy • today at 1:39 PM

> - Is mem-safety even that important when hardware has mitigations like MTE (or capabilities in the future)?

What memory-safe languages do is to make it nearly impossible to express a class of bugs. If the CPU has CHERI or memory tagging support, the compiler can turn an unsafe language into code that relies on those and render even the bugs unexploitable (but won't make the program correct - it will still have a bug).

AI can find and fix the bugs that already exist in lots of C code out there, and this is being done, so, at some point, even the chronically unsafe code will be free of bugs and, therefore, safe.

RunSet • today at 1:41 PM

> the paper points out that any mem-safe language is fine, though rust is always the prime example. Almost as if this is a rust marketing piece

I regard Rust itself as a marketing piece and exhibit A is the world's largest advertising corporation being one of the founding members of the "Rust Foundation" with other scumbuckets rounding out the rogues' gallery.

https://en.wikipedia.org/wiki/Rust_(programming_language)#Ru...