3 ms·
Go will never be "free from C code" it will always use C code as the bootstrapping compiler will be C. All their doing is making the new compiler in Go and usin
by dubcanada 13y ago
Go will never be "free from C code" it will always use C code as the bootstrapping compiler will be C. All their doing is making the new compiler in Go and using the old C one to compile the new Go one.
And I'm not sure Go qualifies as a "general purpose language".
- pjmlp 13y agoI guess you haven't read the document properly. They plan to keep around the C based compiler for the time being until the whole process is finished. Afterwards there is the option to have a backed that generates C code as target, although other approaches can be taken as well. They just need to replace that backend by other one that cross compiles. C is nothing special, I already wrote a few compilers without a single line of C.
- enneff 13y ago> And I'm not sure Go qualifies as a "general purpose language". I feel somewhat foolish for asking, but how do you define a "general purpose language"? I've seen Go used for building internet servers, command-line tools, games, scientific computing, mass data processing, and more. Sure, there are some things Go is not well-suited to, but I think it does enough (and well) to qualify as "general purpose".