Re:So We've Got a Memory Leak
by yosefk on Saturday May 11, 2024 @09:11AM
(#40327831)
35% of vulnerabilities in the biggest tech companies being due to use after free bugs are a part of the answer. (More than 90% of severe vulnerabilities are due to memory bugs impossible in memory-safe languages.)
[ Parent
| on HN ]
Every memory-safe language has a runtime written in a memory-managed language. Yes, even Rust: Rust is implemented using many (well-vetted) unsafe blocks.
So projects to improve the quality, and lower the defect rate, in memory-managed programming, are far from wasted. Even if they only get used to write fast garbage collectors so that line coders can get on with the work of delivering value to customers.
Manual memory management vs GC is orthogonal to memory safe vs unsafe.
In practice the lines of each issue are placed very close together. Other than Rust, there are no popular memory safe languages that use manual memory management.
Rust doesn’t use manual memory management?