News for hackers. Stuff that matters.
Re:Trying out C++20's modules with Clang and Make by rsaxvc on Sunday October 15, 2023 @01:14PM (#37891533)
That's the best(weirdest?) part! I used to have a job porting LabView and matlab to C/C++, since headers don't even have to include full statements, so share our test data and coefficients like so:

static const float FIR_FILTER={ #include "fir_coefs.csv" };

Re:Trying out C++20's modules with Clang and Make by mathstuf on Sunday October 15, 2023 @05:36PM (#37893605)
FWIW, the `#embed`/`std::embed` proposal is the preferable solution here. There's a lot of time spent in the compiler parsing those ASCII floats into bytes (and I've seen `clang-format` take ages to format a block of `0xXX` bytes in an array).