A collection of delightful algorithms and dark implementations
(reminiscent, to this author, of Edward Gorey's illustrations).
Fibonacci: a wtfjs implementation based on
js> +[]
0
Sequitur: an implementation in about 300 characters of Perl, found in a footnote of Surreptitious Software.
perl sequitur.pl abcdbc
perl sequitur.pl aabaaab
MinRay: a ray tracer the size of a business card in 1337 bytes
s.a. Fabien Sanglard's analysis
and Paul Heckbert's minimal ray tracer.
c++ -O3 -o minray minray.cpp
./minray > aek.ppm
HelloWorld: a Hello world program twining round invisible unicode characters.
ruby hello-world.rb
Lovebible: Charlie Stross' Markov chain generator, originally seeded with the King James Bible and the complete works of H. P. Lovecraft. ( The King James corpus was copied from here and Lovecraft from here. )
cpan Algorithm::MarkovChain
perl lovebible.pl 2> /dev/null