In my experience over 90% of C/C++ developers are basically unaware of alternatives to fine grained allocation with malloc()/free() or new/delete. Many have heard of pool allocators, but they almost invariably see it as something even more complicated or tricky, applicable only in high performance code (meaning, not theirs). Very few have heard of arena allocation as a way to massively simplify lifetime management.
Now OK, temporal memory safety isn't the only problem. But it is the costliest and most difficult to solve at the language level. So imagine a langage that only helps with spatial memory safety (systematic bounds checks in debug or release-safe modes), and their programmers stick to the simpler allocation schemes like arenas.
It won't get rid of all the memory vulnerabilities. But it may very well get rid of enough of them that they cease to be a priority. It might even be a better tradeoff overall than a borrow checker or even a better security tradeoff, depending how much friction the borrow checker adds.
On the other hand, we should not underestimate the productivity boosts of strict static analysis, most notably type systems: I have experienced first hand the advantages of being told with ruthless precision why my pathetic attempt at a program didn't deserve to be even started. It's a tighter feedback loop than even a REPL (though I like it best when I have both), and speeds us up in many cases, including exploratory programming.
In my experience over 90% of C/C++ developers are basically unaware of alternatives to fine grained allocation with malloc()/free() or new/delete. Many have heard of pool allocators, but they almost invariably see it as something even more complicated or tricky, applicable only in high performance code (meaning, not theirs). Very few have heard of arena allocation as a way to massively simplify lifetime management.
Now OK, temporal memory safety isn't the only problem. But it is the costliest and most difficult to solve at the language level. So imagine a langage that only helps with spatial memory safety (systematic bounds checks in debug or release-safe modes), and their programmers stick to the simpler allocation schemes like arenas.
It won't get rid of all the memory vulnerabilities. But it may very well get rid of enough of them that they cease to be a priority. It might even be a better tradeoff overall than a borrow checker or even a better security tradeoff, depending how much friction the borrow checker adds.
On the other hand, we should not underestimate the productivity boosts of strict static analysis, most notably type systems: I have experienced first hand the advantages of being told with ruthless precision why my pathetic attempt at a program didn't deserve to be even started. It's a tighter feedback loop than even a REPL (though I like it best when I have both), and speeds us up in many cases, including exploratory programming.