3 ms·
How is D's memory safety without the GC? How does it guarantee you don't use-after-free, de-ref nulls, buffer overflow, etc?
by dgfgfdagasdfgfa 9y ago
How is D's memory safety without the GC? How does it guarantee you don't use-after-free, de-ref nulls, buffer overflow, etc?
- WalterBright 9y agoGreat question! The answer is a bit more than a simple reply can do, so: Pointers Gone Wild: Memory Safety and D http://dconf.org/2017/talks/bright.html http://dconf.org/2017/talks/bright.html
- dgfgfdagasdfgfa 9y agoWalter, you're always so responsive in these threads! Cheers.
- hellcatv 9y agoIt seems like use-after-free is still a potential issue, even with those guard rails. Rust deals with those through named lifetimes --would those ideas be useful in D as well?
- mhh__ 9y agoThis is being worked on, but there is already memory safety checks implemented in the compiler (That one can use now) "-dip1000"