Quines
- What is a quine?
- isquine, a perl program to test a program for
quineness. Handles executable files (just runs them),
java source code (compiles and runs), C source code (compiles and runs),
haskell code (runs with
runhugs
) and perl code (runs with perl
).
Usage:
> isquine filename
-
q.hs, a Haskell quine in only 52 characters.
To run:
> runhugs q.hs
There is also a version, q_long, that can be run directly
since it has a runhugs shebang, but it is 96 characters.
-
q.java, a java quine in "only" 242 characters
(it used to be 228, but JDK1.4 requires
main
to be public
).
That's the best I could do...
All programs are distributed under the GPL unless otherwise
stated.
Copyright Björn Bringert 2004.
Chalmers disclaimer
Valid XHTML 1.0
Valid CSS