Hacker News new | ask | show | jobs
by richardw 169 days ago
Not terribly niche. All config that isn’t environment-specific and is used in inner loops or at startup. It’s even got a test for serialised values so can be used to speed your case up:

https://github.com/sebastienros/comptime/blob/main/test/Comp...

But you need to be sure you won’t want to change without compiling.

1 comments

Well it also needs to be something that you need to generate/calculate, otherwise you would just write by hand the code that comptime outputs.