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

I think the author is strictly talking about C and C++. Python is famously pessimal in all possible ways.


Digging around, OK that makes sense. But even in the context of C and C++, there are often more ways the compiler can't help you than ways it can.

The most common are on function calls involving array operations and pointers, but a lot of it has to do with the C/C++ header and linker setup as well. C and C++ authors should not blithely assume the compiler is doing an awesome job, and in my experience, they don't.


> C and C++ authors should not blithely assume the compiler is doing an awesome job

Agree. And I'm sure the author agrees as well. That's why compiler-explorer exists in the first place.




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

Search: