Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think a punch card program that output to the console (or whatever punch card systems used for output, a teletype?) instructions for creating a new set of punch cards containing itself would meet the definition of a quine. The source code is the program itself, the “compilation” is the process of punching new cards, the execution is feeding the cards into the machine, and the output is the source code again.

What is described in the original article is more like feeding a program into the machine that does nothing and declares the fact that the original deck is now in the output bin to be a quine.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: