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

Not always. In C++ and Rust, in many cases the abstraction penalty is completely eliminated by inlining or by making an efficient concrete specialization. If this can be achieved the abstraction penalty is paid only in compile time.



That is just the compiler optimizing out the runtime indirection. The effect on you as a programmer is unchanged: you have to look through the same number of source files either way.




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

Search: