|
|
|
|
|
by jstimpfle
2117 days ago
|
|
It wasn't me who said "templates" first. (I don't think of them as a practical way to do compile time computation). I was mostly looking at constexpr and whatever similar things have appeared in C++ lately. And I wanted to know about actual applications of them in the wild that make a difference. Because, yeah I can precompute a 100K hash table or whatever at compile time, but I can also just do it at program startup (would anyone notice?) which is by far the simplest thing to do. Or I could just generate the data in a separate build step which is probably more hassle compared to constexpr but also probably friendlier in terms of build times in practice. |
|