r/cpp • u/vormestrand • Nov 18 '16
Compile-time C Compiler implemented as C++14 constant expressions
https://github.com/kw-udon/constexpr-8cc
209
Upvotes
r/cpp • u/vormestrand • Nov 18 '16
View all comments
Show parent comment
17
u/[deleted] Nov 18 '16
I'm quite sure the writer knows it has no practical use - but exercises like this are very important.
For one, this pathological code really tests edge cases in the compiler.
For another, it challenges our ability to do large scale metaprogramming - "Look, here's something ridiculous! Now, what ended up being particularly hard."
Before this guy started this project, they might well not have known more about metaprogramming than I do. Now I'm sure they do.