3 ms·
> when someone talks about codegen, it usually means AOP, bytecode manipulation, compiler plugins and the sorts This feels like a JVM-land interpretation? I th
by robertlagrant 3y ago
> when someone talks about codegen, it usually means AOP, bytecode manipulation, compiler plugins and the sorts
This feels like a JVM-land interpretation? I think it's quite domain-specific.
- Pannoniae 3y agoYeah, sorry about that. If I was more familiar with native codegen tools I would have brought examples from them as well. Hopefully I still got my point across.
- robertlagrant 3y agoNo worries - all I mean is that you, from Java domain, interpret the word one way. Different domains interpret it very differently.
- nightpool 3y agoThe examples GP gave were java-specific, but the concept of codegen meaning "deterministic generation of code in a 'compile' phase" is universal—think of OpenAPI libraries, Go pre-generics, Babel, etc.
- ReactiveJelly 3y agoNot just JVM. Rust also has a codegen step in its compiler pipeline https://doc.rust-lang.org/rustc/codegen-options/index.html https://doc.rust-lang.org/rustc/codegen-options/index.html