3 ms·
This may be true for human programmers, but compilers also must compile machine generated code, which often looks very different. As an example, I can't remembe
by tbirdz 11y ago
This may be true for human programmers, but compilers also must compile machine generated code, which often looks very different. As an example, I can't remember the source on this, but I have read somewhere that the original C++ compiler (cfront) compiled C++ into C code, and this generated code exposed many bugs in the C compilers of the time, as it was very different than how a human would have written that code.
- jonsen 11y agoRunning out of stack space compiling a machine generated program would be a bug in the automatic source code generator then.
- jonsen 11y agoIn the same sense that running out of stack space compiling a human generated program is a bug in the programmer.
- kazinator 11y agoIf human-generated programs compete head-to-head with robot-generated programs for blowing up the implementation, that human has a worse bug than the robot.
- steveklabnik 11y agoI just watched a talk where Kernighan brought up this exact anecdote.