Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> that your programmer always calls free at the exact moment that the memory is no longer needed

I think this is not so unrealistic if you use RAII.



Herb Sutter has a nice talk about how RAII can cause stack overflows or stop-the-world pauses if used badly.

https://www.youtube.com/watch?v=JfmTagWcqoE


Even then. There's nothing stopping you from placing a loop in the same scope as an object that's not used in or after the loop.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: