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

Part of what is great about C++11/C++14 is constexpr's. It moves ll this "compute ahead of time" logic in to a simpler and more familiar structure.

There is actually a tremendous amount of value of precomputing a lot of work that is currently computed at runtime (the amount of wasted CPU in your typical C++ program, particularly at start time, is kind of crazy). It's just that the real hot spots in real world programs programs tend to revolve around runtime dynamic logic.



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

Search: