3 ms·
From my point of view the main point of memory safety is not to avoid bugs (although it helps with that) is that when you do have a memory management bug you do
by DanielHB 2y ago
From my point of view the main point of memory safety is not to avoid bugs (although it helps with that) is that when you do have a memory management bug you don't risk remote code executions or leaking sections of memory to attackers (private keys and such).
- aragilar 2y agoThat's assuming a certain type of program is the one you're writing (naturally everyone wants a browser that is bug free and un-exploitable). Not every program talks to the network, not every program handles untrusted data, and not every program has the same risk profile as a browser. Every program has the problem of bugs though, so focusing on making it easy to avoid and fix bugs is more valuable to a wider audience.
- DanielHB 2y agoNot saying that full memory safety is bad, but like the original post said: > I haven't yet seen a language where full memory safety didn't come at an extraordinary cost But like you said yourself there are many types of applications where full memory safety is very important.