周围有没有自我改进的编译器? [英] 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屋!