是否有任何自我改进的编译器? [英] 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.
是否有任何自我改进的编译器?
请注意,我说的是自我改进的编译器,而不是改进它所编译的代码的编译器.
Please note that I am talking about a compiler that improves itself - not a compiler that improves the code it compiles.
任何指针表示赞赏!
旁注:如果您想知道我为什么要问,请查看 这篇文章.即使我同意大多数论点,我也不太确定以下几点:
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.
...所以我的问题.
推荐答案
虽然编译器确实可以在没有人为干预的情况下改进代码,但是,编译器是自我改进的"的说法是相当可疑的.编译器所做的这些改进"仅仅是基于一组人类编写的规则(有人说是电子人吗?).所以你的问题的答案是:没有.
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.
这篇关于是否有任何自我改进的编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!