3 ms·
So you think all compilers should be written in C exclusively?
by EugeneOZ 12y ago
So you think all compilers should be written in C exclusively?
- leereeves 12y agoNo, I was just pointing out a drawback. Of course there are advantages too. In this particular case, though, I wonder why the Go team is planning to spend a lot of effort rewriting an already existing compiler. Rewriting a popular project from scratch can be a dangerous temptation.
- pkroll 12y agoThey explain why in detail here: https://docs.google.com/document/d/1P3BLR31VA8cvLJLfMibSuTdwTuF7WWLux71CYD0eeD8/edit https://docs.google.com/document/d/1P3BLR31VA8cvLJLfMibSuTdw... Also, you don't have to download a binary of Go to compile the latest Go. You can download the Go source back when it was compiled by C, compile it, and then compile the later, Go-sourced versions, if for any reason you need to go that far.
- 4ad 12y agoThe compiler is not rewritten, it is automatically translated from C, to Go: http://golang.org/s/go13compiler http://golang.org/s/go13compiler http://talks.golang.org/2014/c2go.slide#1 http://talks.golang.org/2014/c2go.slide#1 https://www.youtube.com/watch?v=QIE5nV5fDwA https://www.youtube.com/watch?v=QIE5nV5fDwA