Search code examples
language-agnosticcompiler-constructionartificial-intelligenceself-modifying

Is there any self-improving compiler around?


I am not aware of any self-improving compiler, but then again I am not much of a compiler-guy.

Is there ANY self-improving compiler out there?

Please note that I am talking about a compiler that improves itself - not a compiler that improves the code it compiles.

Any pointers appreciated!

Side-note: in case you're wondering why I am asking have a look at this post. Even if I agree with most of the arguments I am not too sure about the following:

We have programs that can improve their code without human input now — they’re called compilers.

... hence my question.


Solution

  • While it is true that compilers can improve code without human interference, however, the claim that "compilers are self-improving" is rather dubious. These "improvements" that compilers make are merely based on a set of rules that are written by humans (cyborgs anyone?). So the answer to your question is : No.

    On a side note, if there was anything like a self improving compiler, we'd know... first the thing would improve the language, then its own code and finally, it would modify its code to become a virus and make all developers use it... and then finally we'd have one of those classic computer-versus-humans-last-hope-for-humanity kind of things... so ... No.