You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we use the go binary to compile and build our projects. Will introducing extensible APIs to perform customised checks on compile-time data structures (eg. AST, IR) be inline with what Go is design to be?
In Java/Kotlin, we are able to develop custom compiler plugins that can be autoserviced during compile time by javac or kotlinc. One use case of such a capability is to manipulate the IR (intermediate representation) before bytecode/machine code generation. Another use case is to perform custom checks on the program context during compile time (as compared to static code analysis).
Maybe another challenge for this, is the consideration of how such compiler plugins will function with Go's native binary and build tool process.
The text was updated successfully, but these errors were encountered:
I'm sorry, this is not a direction that we are going to follow. The compiler IR is unstable and we aren't going to commit to stability for the benefit of compiler plugins.
Currently, we use the
go
binary to compile and build our projects. Will introducing extensible APIs to perform customised checks on compile-time data structures (eg. AST, IR) be inline with what Go is design to be?In Java/Kotlin, we are able to develop custom compiler plugins that can be autoserviced during compile time by
javac
orkotlinc
. One use case of such a capability is to manipulate the IR (intermediate representation) before bytecode/machine code generation. Another use case is to perform custom checks on the program context during compile time (as compared to static code analysis).Maybe another challenge for this, is the consideration of how such compiler plugins will function with Go's native binary and build tool process.
The text was updated successfully, but these errors were encountered: