hubertf's NetBSD Blog
Send interesting links to hubert at feyrer dot de!
 
[20041217] An iterative quine
This one isn't NetBSD-related (other than it works on NetBSD ;), but I'm so impressed by it I'd still like to share it. A "quine" is a program which prints its source code as output. Now an iterative quine is one that prints a program too, but one that doesn't immediately print its source, but need several iterations. Now this one is a very nicely formatted one of its kind. Compile it, run it. The japanese (hiragana) chars printed are "a-ku". Compile and run it again, it will print "so-ku". The next iteration is "za-n", after that it will go back to "a-ku" and so on. I have no idea what "akusokuzan" means (a name?), but still find this very impressive.

[Tags: ]


Disclaimer: All opinion expressed here is purely my own. No responsibility is taken for anything.

Access count: 36038438
Copyright (c) Hubert Feyrer