Hacker News new | ask | show | jobs
by seiferteric 274 days ago
The whole thing is a joke but presented in a serious manner. The idea is that if you know your program input at compile time you can turn everything into a constexpr which gets evaluated at compile time so your program is "ran" by the compiler instead of at run time. So he built a "runtime" that is actually ran by the compiler around this idea for fun.
1 comments

> So he built a "runtime" that is actually ran by the compiler around this idea for fun.

Funnily enough, sufficiently enough of C++ is constexpr-able that it was the driving force for compile-time reflection in C++[1], which is not unlike what the author has done.

Although the new syntax is much more readable than what the author chose to do with expression templates, it's still annoying, as is much of C++. But I still like it, so I am decidedly Stockholmed.

[1]: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p29...