by TheEzEzz · 16y ago · 0 comments
Of course not. Likewise, if all you had was the binary of a Linux distro, and you didn't have a computer or any other associated hardware, it would be very hard to get that code running.
On the other hand, if you were trying to recode the distribution from scratch, without trying to decompile anything, a good ball park estimate for the size of your source code would be the size of the original distribution.
That's Kurzweil's point: he's simply trying to measure the complexity of the system, to get a rough estimate for how complex the model will need to be.
The easiest way to bootstrap a self-compiling compiler from bare metal is probably by writing a Forth inner interpreter in machine code, which is a few hundred bytes; a Forth outer interpreter in threaded code, which is a few hundred cells; and then an interpreter for the language of your compiler in Forth, which is likely to be a few dozen to a few thousand lines of code, depending on the language. (I don't know if Forth is good for anything else, but it's optimal for this.)
I don't know how to estimate this task properly, but I doubt it's more than a few weeks of work for a skilled person.