[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Apr 19 16:23:47 1993 
Subject:Self-printing program [quiz] 
From:Steve Knight 
Volume-ID:930419.01 

Here's another vile challenge, this time from Adrian Howard .... I thought
readers may enjoy this one:

Adrian writes:
> PS For another little Pop-11 puzzle, try the smallest self-printing
> Pop-11 program. In some moments of idleness I got one that printed
> itself in 65 characters. Not the most transparent code in the world I
> admit. Assumptions:
>       i) ASCII
>      ii) class_print routines havn't been mucked with
>     iii) You can skip the trailing ";" & newline character

Naturally enough, the empty program is disallowed.  We are interested
in the smallest program whose length is at least one byte.

Steve