Compile-Time vs Runtime Reflection
The cluster centers on debates about whether language features like reflection, code generation, and optimizations occur at compile time (avoiding runtime costs) or runtime, referencing languages such as Python, Zig, Java, and others.
Activity Over Time
Top Contributors
Keywords
Sample Comments
It's being done at compile time.
It's not actually done at compile time. See my reply to messe for details.
We're talking about compile-time reflection here, not runtime reflection.
Compile time doesn't mean the compiler won't add more instructions where you might not expect them.
Indeed, albeit at compile time and not run time.
Any reason why they are compiled at runtime and not compile time? That might be preferable for large programs.
You’re talking about runtime, I’m talking about at compile time
I don't see an obvious reason - that's all information that's available on compile-time, there should be no additional run-time cost - or what are you implying?
Compile time reflection doesn't have runtime cost.
heh, I thought you meant compile time.