Re:“This change deletes the C implementations of the Go comp...
by cperciva on Monday February 23, 2015 @08:06PM
(#9098126)
So if you want to avoid trusting trust, you need to audit not only a C compiler and the source code for the Go compiler you plan on using, but also every past Go compiler as well?
[ Parent
| on HN ]
Re:“This change deletes the C implementations of the Go comp...
by sesutton on Monday February 23, 2015 @09:51PM
(#9098447)
You could audit the Go source and then use the diverse double compiling technique[0] to verify that the binary you're using corresponds to that source code.
[0] http://www.dwheeler.com/trusting-trust/dissertation/html/whe...
Re:“This change deletes the C implementations of the Go comp...
by cperciva on Monday February 23, 2015 @10:46PM
(#9098565)
You mean, audit a large number of independently-written Go compilers?
Re:“This change deletes the C implementations of the Go comp...
by indians_pro on Monday February 23, 2015 @11:00PM
(#9098602)
Nicely done. To be fair though, Go is just 6 years old and still evolving.
Re:“This change deletes the C implementations of the Go comp...
by cperciva on Monday February 23, 2015 @11:12PM
(#9098637)
Exactly. Which is why I think it's important to keep the option of compiling its compiler from a language which has a large diversity of compilers.
Re:“This change deletes the C implementations of the Go comp...
by crawshaw on Tuesday February 24, 2015 @04:33PM
(#9103679)
I don't believe it has been tried yet, but it seems entirely possible to use gccgo as the bootstrap compiler.
Re:“This change deletes the C implementations of the Go comp...
by f2f on Monday February 23, 2015 @08:26PM
(#9098199)
You can't avoid trusting trust. "Ken was here" :)
Re:“This change deletes the C implementations of the Go comp...
by sanxiyn on Monday February 23, 2015 @09:13PM
(#9098350)
You actually can. Proof here: http://www.dwheeler.com/trusting-trust/
Re:“This change deletes the C implementations of the Go comp...
by f2f on Monday February 23, 2015 @09:32PM
(#9098395)
I was alluding to Ken being the author of the old, as well as one of the authors of the new compiler. In jest :)
Re:“This change deletes the C implementations of the Go comp...
by cperciva on Monday February 23, 2015 @09:29PM
(#9098387)
You can. You just have to bootstrap all the way up.
Re:“This change deletes the C implementations of the Go comp...
by fugyk on Wednesday February 25, 2015 @05:27AM
(#9106120)
What if any intermediate version is found to contain the violation of trusting trust? Every go maintainer has to build every version sequentially from that version to current version.