8 ms·
> What happens if this catches on I don't understand your comment, because we already live in your nightmare scenario: http://en.wikipedia.org/wiki/Bootstrappi
by nosefrog 12y ago
> What happens if this catches on
I don't understand your comment, because we already live in your nightmare scenario: http://en.wikipedia.org/wiki/Bootstrapping_%28compilers%29#List_of_languages_having_self-hosting_compilers http://en.wikipedia.org/wiki/Bootstrapping_%28compilers%29#L...
In practice, it isn't a big deal. When was the last time you worried about the language your compiler was written in?
> potentially a lot of duplication of effort writing compiler backends in every language.
That's also the state of things for every compiler that doesn't use LLVM or compiles to another language.
- leereeves 12y agoI agree the installation issues are fairly trivial; they were just a response to the original comment. But the duplication of effort (which won't end when the "GoGo" compiler is ready to replace cgo), and a potential freeze in Go while "GoGo" catches up, are more serious drawbacks. Yes, that is a trade-off other compiler teams have made, and it may be the right choice for Go as well, but it should be (and no doubt has been) considered.