Hacker News new | past | comments | ask | show | jobs | submit login

"I am curious why you say cost-free."

What's the cost? It's an optional feature.

"Using std::vector/array/string::at would literally eliminate buffer overflows and yet programmers aren't generally using this style."

C programmers don't use that because it doesn't exist in C.

"I would love it if I could prove to my colleagues that mandatory bounds-checking would not result in a noticeable performance loss"

Did you read his article? There's nothing in it about mandatory bounds-checking.




If the feature is not used in production, it's not exactly improving safety any more than ASan, which is already available for C. So it has to be mandatory (e.g. by team/company decision) and then one has to look at the costs of enabling it.


No, that's completely wrong.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: