Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
whyever
on Jan 24, 2019
|
parent
|
context
|
favorite
| on:
Fearless Security: Memory Safety
> 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.
pjmlp
on Jan 24, 2019
|
next
[–]
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
naasking
on Jan 24, 2019
|
prev
[–]
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:
I think this is not so unrealistic if you use RAII.