News for hackers. Stuff that matters.
Re:C++17 constexpr Compile-time Ray Tracer (2017) by Arnt on Tuesday October 30, 2018 @09:17AM (#18336153)
4. Things you want to not run at runtime. If you can demand of the compiler that foo is run only at compile time, you can eliminate some performance outliers, with good protection against accidental later regressions. (I suppose this could apply to security too — anything run at compile time is definitely not vulnerable to crafty user input from a malicious user.)

5. My compiler is a rackmount somewhere; even if constexpr evaluation is somewhat slower than runtime code in a particular case, I may prefer to use the rackmount's plentiful power rather than the slim, light battery on the device where the final code will run.

Re:C++17 constexpr Compile-time Ray Tracer (2017) by tcbrindle on Tuesday October 30, 2018 @09:22AM (#18336187)
6. A constexpr function is guaranteed to have no undefined behaviour (when evaluated at compile time, anyway)