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

Reminds me of a quine - a non-empty computer program which takes no input and produces a copy of its own source code as its only output

https://en.m.wikipedia.org/wiki/Quine_(computing)



It is literally a quine, viewed as a program in a language where (for example) the code consists of a regular expression and the output is the sequence of all strings matching that regular expression.


In the esolang community, the name for this variation of Quine is a Narcissist or Narcissus program. You can see a bunch of examples in a number of different languages on the Rosetta Code website.

https://rosettacode.org/wiki/Narcissist


It also reminded me about quines, I especially like the Quine Relay project which uses 100 different programming languages (each producing an input for the next one) to finally produce its own code https://github.com/mame/quine-relay


Stubbornness and vanity. Except in code form.




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

Search: