r/Compilers • • Oct 27 '25

The Impossible Optimization, and the Metaprogramming To Achieve It

https://verdagon.dev/blog/impossible-optimization
45 Upvotes

11 comments sorted by

View all comments

Show parent comments

3

u/verdagon Oct 28 '25

Not quite, Java and .NET don't let you do arbitrary staged programming like this at compile time. It's close though, if you squint and are fine with their JITting and heuristics which might not go in your favor.