NaNoGenMo / 2019

National Novel Generation Month, 2019 edition.
97 stars 5 forks source link

Pager #94

Open nickmontfort opened 4 years ago

nickmontfort commented 4 years ago

This is another entry not just in National Novel Generation Month, but in #NNNGM, Nano-NaNoGenMo, Nano-National Novel Generation Month.

I have generated a more than 50,000 word “novel” (loosely defined, as NaNoGenMo loosely defines it) using no more than 256 characters of code.

In this case, I have written a small and simple Perl program that combinatorially produces bars of rap lyrics, in the form of the hook of Busta Rhymes’s "Gimme Some More.” I’ll mention that a pager is not only an obsolete device that one can wirelessly call and to which one can send a phone number; it is also a command-line computer program, such as “less” or “more,” that lets someone read a long text file — such as this novel — one page, or one terminal window, at a time.

I've explained more about Nano-NaNoGenMo on my blog, Post Position. The basic idea is that you can write very, very short novel-generating programs and have fun. You can do it in a few hours or even a few minutes. You will amuse someone — if no one else, at least yourself! Why not give it a try?

By the way, I am an MC and Doc Mofo is my stage name. I also code up more complex computer-generated verses.

perl -e 'print "Pager, for Busta Rhymes\nDoc Mofo\n\n";sub p{(split/-/,"y’all siblins read enough?-somebody wanna novel?-I got combinatorics-puttin’ text out now-my pager ain’t less now")[rand 5]}for(;$i<9999;$i++){print p."—gimme some more\n"}' #NNNGM

Code as a bash script.

Example generated novel.

MP3 of an excerpt of Pager.