News for hackers. Stuff that matters.
Re:C++17 constexpr everything, or as much as the compiler can by DamonHD on Thursday December 28, 2017 @11:08AM (#16022809)
Both approaches have their problems, but resolving to compile-time constants with simple expressions is NOT "hard-to-debug" if done with care. As ever, tools can be abused, and real life can astonish.

Example: for the credit dept of a now-ex investment bank many moons ago we had a set of blessed (including with the correct correlations) random numbers pre-computed and baked in via code generation.

I discovered that I could actually generate numbers faster at run-time with highly-tuned code because of the high cost of paging in the large-precompiled numbers array across the network.

There are no comments on this comment yet.