Hacker News new | ask | show | jobs
by gpderetta 277 days ago
it is "simply" a DSL implementing a full custom language that is run at compile time. As far as I can tell the DSL is implemented with the tried-and-true technique of expression templates[1] combined with constant evaluation and unrestricted template value parameters (although these days there are multiple options to implement compile time DSLs, up to compile time parsing of strings).

As to why, I can't pretend to know the author mind, but I suspect they did it because they could, the project itself is the objective.

[1] https://en.wikipedia.org/wiki/Expression_templates