Hi, i have been wondering if a compiler written in it’s own language ever be better than the parent language compiler written in a particular language? Like in this case, can a Go-based Go compiler generate outcome better than that of the parent C-based Go compiler? I guess performance wise it will be either equivalent or lower in performance (as size of generated assembly code increases with new complex features). Had published a small article on the subject here.
Wouldn’t maintaining & improving a C-based Go Compiler be a better option from performance and optimization point of view? I do understand that having a higher level language for the compiler code enables the community to contribute more, and makes writing newer features easier, but doesn’t comfort & ease of writing also lead to loss of performance / optimizations? I am just a little worried if Go based programs may end up being slower in future (losing it’s USP), like the way Java has been.
These are just my raw thoughts, looking forward to thoughts & views of the community & core contributors.