News for hackers. Stuff that matters.
Re:C++17 constexpr everything, or as much as the compiler can by dkrikun on Thursday December 28, 2017 @12:38PM (#16023459)
I personally do not understand the buzz around constexpr etc. All the real buziness is happening at runtime anyway and compilers already optimize code quite decently. The extra maintenance burden just doesn't pays off.
Re:C++17 constexpr everything, or as much as the compiler can by failrate on Thursday December 28, 2017 @12:44PM (#16023504)
I think you should review his premise: he is using constexpr to eliminate a separate exe, a data file, and code that loads and reads the data file at runtime. His maintenance burden goes down.
Re:C++17 constexpr everything, or as much as the compiler can by mwkaufma on Thursday December 28, 2017 @06:29PM (#16026044)
It's like 'const' itself -- it's a tool for producing better error messages, not better final executables.