|
|
|
|
|
by Animats
224 days ago
|
|
Herb Sutter's article on this.[1] For C/C++, memory safety is a retrofit to a language never designed for it.
Many people, including me, have tried to improve the safety of C/C++ without breaking existing code. It's a painful thing to attempt. It doesn't seem to be possible to do it perfectly. Sutter is taking yet another crack at that problem, hoping to save C/C++ from becoming obsolete, or at least disfavored. Read his own words to see where he's coming from and where he is trying to go. Any new language should be memory safe. Most of them since Java have been. The trouble with thinking about this in terms of "95% safe" is that attackers are not random. They can aim at the 5%. [1] https://herbsutter.com/2024/03/11/safety-in-context/ |
|
The most popular ones have not been necessarily. Notably Go, Zig, and Swift are not fully memory safe (I’ve heard this may have changed recently for swift).