Hacker News new | past | comments | ask | show | jobs | submit login

Then look at Eigen vs alternative C libraries for example.

Constexpr allows for compile time code execution, introduced in C++11 and extended with each C++ revision, C++20 version even allows for partial STL use.

There is plenty of stuff one can do with it, when coupled with template metaprogramming, it is basically C++'s version of Lisp macros, although a bit clusmy.

Generating constants is just the tip of the iceberg.

Using shell scripts is language agnostic solution.

_Generic is very constrained, try to implement std::sort() for any kind of datastructure with it, not only basic numerical types.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: