News for hackers. Stuff that matters.
Re:C++17 constexpr everything, or as much as the compiler can by JdeBP on Thursday December 28, 2017 @10:20AM (#16022402)
The secret there, of course, is not to write the table generation program in C++. (-:

In such circumstances, I find myself writing the table generator in shell script, REXX, or some such convenient language on the host system.

Re:C++17 constexpr everything, or as much as the compiler can by minipci1321 on Thursday December 28, 2017 @03:54PM (#16024800)
Sounds like opening a can of worms ... some developers will definitely opt for using a language which has "convenient" properties -- since the generator code is not running on the target platform, it has different constraints. And then one day, another dev team will face the task of porting rexx/perl/python/ocaml/you-name-it on a platform which has no capacities for that, or has no required depenedencies available, or neither.
Re:C++17 constexpr everything, or as much as the compiler can by JdeBP on Friday December 29, 2017 @11:21AM (#16030192)
You are making the error of thinking that one can only use one language, or that using the right language for a job is a bad thing; and you are making the error of thinking that build platforms did or do lack the capacity for generating source like this. These are platforms that have the capacity to run a C++ compiler; they have more than enough capacity to run tools like (say) od and sed.