3 ms·
Code as poetry. Are there any other examples of this?
by sethbannon 14y ago
Code as poetry. Are there any other examples of this?
- reaclmbs 14y agoBlack perl - originally by Larry Wall & updated for Perl 5 by Ovid (http://www.perlmonks.org/?node_id=17000 http://www.perlmonks.org/?node_id=17000) BEFOREHAND: close door, each window & exit; wait until time. open spellbook, study, select it, confess, tell, deny; write it, print the hex while each watches, reverse "its length", write again; kill spiders, pop them, chop, split, kill them. unlink arms, shift, wait & listen (listening, wait), sort the flock (then, warn "the goats". kill "the sheep"); kill them, dump qualms, shift moralities, values aside, each one; die sheep, die, reverse system you accept (reject, respect); next step, kill next sacrifice, each sacrifice, wait, redo ritual until "all the spirits are pleased"; do it ("as they say"). do it(*everyone***must***participate***in***forbidden**s*e*x*). return last victim; package body; exit crypt (time, times & "half a time") & close it, select (quickly) & warn next victim; AFTERWORDS: tell nobody. wait, wait until time; wait until next year, next decade; sleep, sleep, die yourself and rest at last
- draegtun 14y agoSome extra references: - Black Perl updated for Perl 5 - http://www.perlmonks.org/?node_id=237465 http://www.perlmonks.org/?node_id=237465 - Black Perl Revisited - http://www.perlmonks.org/?node_id=578707 http://www.perlmonks.org/?node_id=578707 - http://en.wikipedia.org/wiki/Black_Perl http://en.wikipedia.org/wiki/Black_Perl
- gummydude 14y agoBlack perl is a real art, without hidden setup&definitions. Perlay?
- jpfuentes2 14y agoI must confess I have not seen many. I drew inspiration from Marc-André Cournoyer and his post "how to apply to a job" http://macournoyer.com/blog/2010/02/23/how-to-apply-to-a-job/ http://macournoyer.com/blog/2010/02/23/how-to-apply-to-a-job.... However, I've entertained the idea of writing code as prose for quite some time.
- draegtun 14y agoSee the Perl Poetry page on Perlmonks for regular contributions: http://www.perlmonks.org/?node=Perl%20Poetry http://www.perlmonks.org/?node=Perl%20Poetry