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

The inlining feature is great, if for no other reason than shooting down stuck-in-the-past devs that say "yeah but all those function calls are so expensive".


In my experience, at least for static languages, inline annotations are very useful in the hands of a skilled programmer; the compiler's inline heuristics are always static guesses at dynamic properties and as a result they fall down from time to time. (The JVM may be able to do better here though—it has the ability to inline functions at runtime via a recompile if they discover that they're being called a lot.)


Sadly, some devs are stuck with stuck-in-the-past compilers and still have to deal with this crap.

It reminds me a bit of new devs who end up on Sybase database project and expect that "modern optimizers" always pick the right indexes.




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

Search: