What?

This is a python 2 program that receives no input and outputs its source code. In addition, the source code contains only 7 distinct ascii characters.

How?

In an effort to preserve my sanity, I wrote a program to generate this quine. It is written in Ruby so that I would not confuse it with the generated program.

The quine bootstraps itself starting with a severely restricted set of features (no numbers, arithmetic, functions etc) until it acquires the ability to construct any string. Then, it does a backflip and executes the core program using the exec keyword. Along the way, it also manages to avoid the paradox of self reference.

What's next?

The quine can be shorter. I might improve the generator program in the future.

Built With

Share this project:
×

Updates