The finest meta-program in the history of anything:
Cellular Automaton Knitting with Perl.
Thank you, wikipedia.
ADDENDUM:
So that I also have something to contribute, here is rule 30 used as a random number generator, written by yours truly. (Though the idea of doing so certainly isn't mine.) Anyone care to suggest an optimization?
( C source code for pseudo random number generation from a elementary cellular automaton. )
For anyone who was every curious how computers generate random numbers, I will say that this is a slow and very complicated way of doing so; it isn't a good learning tool on the topic.
|