News for hackers. Stuff that matters.
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.)
Re:So We've Got a Memory Leak by samatman on Saturday May 11, 2024 @12:44PM (#40329188)
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.

Re:So We've Got a Memory Leak by loeg on Saturday May 11, 2024 @01:06PM (#40329328)
Manual memory management vs GC is orthogonal to memory safe vs unsafe.
Re:So We've Got a Memory Leak by AgentME on Saturday May 11, 2024 @03:56PM (#40330287)
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.
Re:So We've Got a Memory Leak by saagarjha on Sunday May 12, 2024 @05:43AM (#40333237)
Rust doesn’t use manual memory management?
Re:So We've Got a Memory Leak by maleldil on Sunday May 12, 2024 @06:05AM (#40333299)
It does because you're still responsible for managing the lifetimes, even if you don't explicitly call malloc/free. Automatic memory management is reference counting and GC.