3 ms·
I don’t think it’s that clear-cut. Most abstractions come with a runtime cost. Code generation is a buildtime tool that can be deployed judiciously, and with mo
by pavlov 9y ago
I don’t think it’s that clear-cut. Most abstractions come with a runtime cost. Code generation is a buildtime tool that can be deployed judiciously, and with modern version control it’s much easier to understand which sections of the codebase are dependent on compiled models elsewhere.
Ultimately it’s a cycle. Runtime abstractions tend to pile up until they hinder performance and debugging, and then code generation becomes interesting. Over time those patterns become incorporated into languages, at which point code generation seems pointless again (think Qt’s code generation tools in 1996 vs. C++14). And when the language has new interesting features, it seems to translate into people creating runtime abstractions, thus setting off another iteration of the cycle.