Code Poetry Slam

programmers and poets: create! compose! compile! (+ pizza)

Stanford University
Division of Literatures,
Cultures, and Languages

Submissions are now open for Code Poetry Slam 2.1! Head to the Submissions tab to send us your work! Deadline for submissions is January 15th, 2016. Finalists will be contacted several weeks later and the slam will take place in mid-February. Can't wait to see your work!

Stanford University's Division of Literatures, Cultures, and Languages (DLCL) sponsors a series of Code Poetry Slams. Code Poetry Slam 1.0 was held on November 20th, 2013, and Code Poetry Slam 1.1 was held on February 27th, 2014, both in Wallenberg Hall, Rm. 124, at Stanford University. The following year, Slam 2.0 was held on January 23rd, 2015, also in Wallenberg 124.

What is "code poetry"? A C++ sonnet? A Haskell haiku? An algorithmic poetry generator? Something completely new? Check out our Resources tab for examples, theory, and other groups holding similar events!

Code Poetry means different things depending on who you ask. For a start, it can mean poems, written in a programming language, that are meant to be read purely as words on a page (see Code{Poems}); code that aims for elegant expression within severe constraints, like a haiku or a sonnet (see 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 or ChucKus), or code that generates automatic poetry (see OuLiPo for poetic background, or google for online examples- there are hundreds). Some definitions are directly at odds with each other. Obfuscated code (see the chapter on Obfuscated Code in Software Studies: a lexicon) brings attention to language by being creatively obtuse, whereas articles by Ward, Hoffmann, and Stewart talk about how code is poetic because it's so elegant and compact.

With this series, we're particularly interested in code that is beautiful to read and simultaneously executable, in line with Ian Bogost's idea in Alien Phenomenology that creative projects should *do* something. Poems that are readable to humans AND readable to computers perform a kind of cyborg double coding (in language, double coding means a sentence that is readable in multiple languages at once: Jean put dire comment on tape (in translation from French, "Jean is able to say how one types")). Check out some of the resources below and figure out what aspect of code poetry interests you!

Writers and Theorists
  • Introduction to The Wedge by William Carlos Williams

    “There’s nothing sentimental about a machine, and: A poem is a small (or large) machine made of words. When I say there’s nothing sentimental about a poem I mean that there can be no part, as in any other machine, that is redundant.”

  • OuLiPo

    Wiki on works from the Ouvroir de littérature potentielle.

  • S/Z excerpt by Roland Barthes

    Classic text from the 60's that points toward multi-level, code-inflected writing.

  • Philosophical Investigations by Ludwig Wittgenstein

    "It is easy to imagine a language consisting only of orders and reports in battle.—Or a language consisting only of questions and expressions for answering yes and no. And innumerable others.—— And to imagine a language means to imagine a form of life."

  • Software Studies: a lexicon, ed. Matthew Fuller

    Great compilation of short articles on coding from multiple perspectives. Check out in particular the Introduction and the chapters on Language, Obfuscated Code, Memory, Source Code and Weird Languages.

  • "Virtual Bodies and Flickering Signifiers" by N. Katherine Hayles

    "The contemporary pressure toward dematerialization, understood as an epistemic shift toward pattern/randomness and away from presence/absence, affects human and textual bodies on two levels at once, as a change in the body (the material substrate) and a change in the message (the codes of representation)."

    N. Katherine Hayles is a giant in the field. For more, read her book How We Became Posthuman: Virtual Bodies in Cybernetics, Literature, and Informatics.

  • "Digital Code and Literary Text" by Florian Cramer

    "...computers and digital poetry might teach us to pay more attention to codes and control structures coded into all language. In more general terms, program code contaminates in itself two concepts which are traditionally juxtaposed and unresolved in modern linguistics: the structure, as conceived of in formalism and structuralism, and the performative, as developed by speech act theory."

  • 10 PRINT CHR$(205.5+RND(1)); : GOTO 10

    A close reading of one line of code by 10 theorists: Nick Montfort, Patsy Baudoin, John Bell, Ian Bogost, Jeremy Douglass, Mark C. Marino, Michael Mateas, Casey Reas, Mark Sample, Noah Vawter.

  • "Print is Flat, Code is Deep: The Importance fo Media Specific Analysis" by N. Katherine Hayles

    "Nine points can be made about the specificities of electronic hypertext: they are dynamic images; they include both analogue resemblance and digital coding; they are generated through fragmentation and recombination; they have depth and operate in three dimensions; they are written in code as well as natural language; they are mutable and transformable; they are spaces to navigate; they are written and read in distributed cognitive environments; and they initiate and demand cyborg reading practices."


Code Poetry Slam 1.0 [Fall 2013]

Stanford's first Code Poetry Slam, sponsored by the Division of Literatures, Cultures, and Languages (DLCL), was held on November 20th, 2013 in Building 160 (Wallenberg Hall). Following an open call for works from September 20th to November 6th, we selected 8 finalists. At the Slam, finalists presented work ranging from human language poems incorporating concepts and gestures from programming, to poems written entirely in compilable code. They were invited to present their poems in whatever way they saw fit, and performed with various techniques, including poems composed and compiled in an IDE, multimedia audio/visual presentations, and straight readings from a notebook.

A semi-moderated discussion followed the presentations. Finalists talked in depth about their poems and fielded questions from the audience. One theme that came up repeatedly was how code can express things that words can't and how programming makes you think differently about language.

An interdisciplinary group of judges awarded Leslie Wu, Stanford Computer Science PhDc, first place for her poem "Say 23."

  • Caroline Egan, DLCL PhDc
  • Melissa Kagen, DLCL PhDc
  • Mayank Sanganeria, CCRMA MA MST'13
  • Kurt James Werner, CCRMA PhDc

Say 23   Leslie Wu [@GitHub]

#!/usr/bin/env ruby
require 'rubygems' # gratitude
require 'nokogiri' # arigato
%w(Zarvox Princess Cellos).each{|v|`say -v #{v}
.map {|i|h[i]}.join(' ')}`}

All A Men   Parwana Fayyaz

In 11,000 nights of 10957.3 days,
A-A-A-A-A-A-A-A have confusingly digressed,
Their √(heroism)= meekness^ nerves
As results:
#1: while from @7 until @7, their women
[9A dots+ inside a green room+ beneath the bright sun+ under the blue sky]
<99.99%> each year child * by any other child,
A leaves, A comes, A changes dress, A slams the door, A slaps,
A enters her body, A behaves like a child, A leaves.
#3: evening: fear of nightfall +#1+#2, results
#4: midnight: [two A dots+ inside the crimson room+ the crescent moon+ a star]
A leaves at midnight, A born dead. The last A never comes again.
A is dead, A is dead, A is d..., A is …, A is…., A …, A…, A…………., [breathe]

All.go.rhythm   Paul Hertz

include everything.*;
void wonder(Universe u) {
  while (ever || never) {
    for (Poem i in {
      Word dust = u.speak(i);
      for (Moment mote in dust) {
        wonder(new Universe(mote));

ThatGirl   Ian Holmes

import java.Object.*

public class ThatGirl {
  public SomethingBetter main() {
    return whatYouFound;

Expect_Delays   Dylan Moore

private Boolean she_smiles_for_me() {
  while(true) {
    try {
    } catch (InterruptedException e) {}
  return true;

College, College   Quyen Nguyen

public class Fall () {

  public void freshmanYr () {

  public void sophomoreYr () {
    println ("The slump.");
    println ("Confusion.");
    println ("Some people have it all figured out.");
    println ("They have even,");
    println ("declared.");

  public void juniorYr () {
    println ("Let me online shop for business casual clothes");
    println ("and a big black folder");
    println ("big enough for my big fat resume");
    println ("Let me catch up with my fellow job-seekers, go-getters, soul-auctioneers,");
    println ("Let me murder my former dreams with M&A and DCF");
    println ("Let me forget Eliot and Shakespeare");
    println ("The artist in me, a ghost, has finally left.");

  private void seniorYrAndOut () {
    while (true) {
      println ("Welcome to the begin of the end.");


The Man Who Changed Everything   Ashank Singh

#include <stdio.h>

int Hello = 1;
int World = 0;
int True = 1;

  int happy = True;

  if (happy = True) {
    World = 1;
  } else {
    World = 0;

  int Title, line_1, line_2, line_3, line_4 = Hello;
  int line_5, line_6, line_7, line_8, line_9 = World;

  int The_, Man_, who, Changed, Everything = Title;
  int There, once, was, _a, man, _who, changed, everything = line_1;
  int He, opened, our, eyes, so, that, we, could, see = line_2;
  int The, vast, forest, in, the, language, C = line_3;
  int He_, did, _not, want, _to, put_, a_, price, on_, anything = line_4;
  int Unlike, t_h_e, others, who_, sold, _everything = line_5;
  int Open_source, projects, _and, Unix, live, _o_n_ = line_6;
  int As_, we_, _continue, to, code, _on = line_7;
  int _W_e_, _wil_l, always_, remember, _th_e, m_an_, _w_h_o_, said, helloworld = line_8;
  int _He_is_the_, _one_, _and_, _only_, Dennis, Ritchie = line_9;

  if (Title, line_1, line_2, line_3, line_4 = Hello) {
    printf("                    The Man who Changed Everything       \n");
    printf("             There once was a man who changed everything \n");
    printf("             He opened our eyes so that we could see \n");
    printf("             The vast forest in the language, C \n");
    printf("             He didn't want to put a price on anything\n");
  if (line_5, line_6, line_7, line_8, line_9 = World) {
    printf("             Unlike the others who sold everything\n");
    printf("             Open-source projects and Unix still live on\n");
    printf("             As we continue to code on\n");
    printf("             We will always remember the man who said ''Hello World''\n");
    printf("             He is the one and only, Dennis Ritchie.\n");


A While is not a But   Sophia Westwood

A while is not a but --
but a but is but a but.
But while a while is but a while
But while a while to switch to but.

Code Poetry Slam 1.1 [Winter 2014]

  • Caroline Egan, DLCL PhDc
  • Melissa Kagen, DLCL PhDc
  • Kurt James Werner, CCRMA PhDc

21st Century Prophecies   Hunter Bacot, Surrogate: Keshav Dimri

the_medium = "twitter"
require the_medium
medium = do |medium|
  medium.consumer_key        = " "
  medium.consumer_secret     = " "
  medium.access_token        = " "
  medium.access_token_secret = " "

virtues = []
virtues << medium.user("elonmusk").tweet.text
virtues << medium.user("KingJames").tweet.text
virtues << medium.user("Pontifex").tweet.text
virtues << medium.user("KimJongNumberUn").tweet.text
virtues << medium.user("Beyonce").tweet.text
virtues << medium.user("richardbranson").tweet.text
virtues << medium.user("god").tweet.text
# a moment of clarity
virtues << "\n#{Faraday.get("").body}""prophets_manifesto.txt", "w") do |out|  
  virtues.each { |truth| out.puts truth }

system "open prophets_manifesto.txt"

A Pythonic Lament   Mike Widner

The circumstances
def bemoan():
our_lives_must = ['end']
the_suffering = [True]        # Read as "the suff'ring"
she = 'loves you'
love = 'a string of memories'
alone = bemoan
alas = alone

The lament
for poetry in the_suffering:
for variables in our_lives_must:
if None and 1 or 1 and None:
if love.split() or she.replace('you', ''):
        the_suffering.escape() and love.admit()
        for one_day in our_lives_must:

TITLE   Jonah Galeota Sprung, Surrogate: Michael St. Clair

  from __future__ import print_function
from time import sleep
import string
from random import uniform
import sys

def process_input(in_string):
        in_string = in_string.translate(None, '.!?')
        words = in_string.lower().split()
        words.sort(key=len, reverse=True)
        return words

def wait(n): #sleep() was misbehaving
        k = 0
        for i in range(1,1000000*n):
                k = i+1

def printT(in_string): 
        for c in in_string:

def body():
        line1 = "\n\ni can't tell anymore "
        line2 = "what's parody and what isn't. "; line2_1 = "this song"
        line3 = "                --the clock,"
        line4 = "                    again--"
                                                               #user text
        line5= "no, sleeping doesn't work." ;line5_1 = " and"
        line6 = "she's sick to death of numbers"
        line7 = "anyway. \n"
        line8 = "\nwhen would you start\nto worry?"
        line9 = "                --shivers, "
        line10 = "                   wood--"
        line11 = "the cousins are closing in "
        line12 = "like an ellipse. none of this"
        line13 = "reads both ways, neither of us"
        line14 = "does."
           line15 = "                --soon,"
        line16 = "                 a home--"
        line17 = "you're right,"
        line18 = "i'm out of my league. \nin over my head."

        line19 = "but there never were many houses"
        line20 = "to speak of, \nwere there?"
        line21 = "what could we have done, really."
        line22 = "what could we do."
        print('\n'+ '\033[1m'+ line3)
        print(line4 +'\033[0m')
        in1 = raw_input('                                       ')
        printT('\n' + line5); wait(2); print (line5_1); wait(1)
        in2 = raw_input('                                      ')
        in3 = raw_input('                                      ')
        in4 = raw_input('                                      ')
        utext1 = process_input(in2)
        utext2 = process_input(in3)
        print('\n'+ '\033[1m'+ line9)
        print(line10 +'\033[0m'+'\n')
        printT(utext1[0]+'? '+utext2[0]+'? '+ line11+'\n')
        in5 = raw_input('                                      ')
        in6 = raw_input('                                      ')
        print('\n'+ '\033[1m'+ line15)
        print(line16 +'\033[0m'+'\n')
        in7 = raw_input('                               ')
        printT(in7+'. . . \n')
        in8 = raw_input('                               ')
        in9 = raw_input('                               ')

have you heard my startup pitch   Nathaniel Smith, Surrogate: Elena Dancu

they walked together by habit
in only filthy coveralls
with little more sense than a rabbit
speaking of defunct protocols.

the stuff began to twist and writhe,
spilling over and draining out its side.
this was a most illicit enterprise
like netsites in roma provide.

they flung it into the gulf:
a pillow upholstered in scalp.
hands stained like the muzzle of a wolf,
they resumed kicking along the whelp.

like businessmen draped in the pelt of an art nerd
they turned their backs on this poisoned world.

Capsized   Zak Kain, Surrogate: Christina Hall

.ocean {
    color: cornflowerblue;
    pitch: high;
    overflow: visible;

.boat {
    color: firebrick;
    transform: rotate(94deg);
    float: none;

.rescue-team {
    visibility: visible;

.crew {
    widows: none;

The Tell   Jeff Thompson, Surrogate: Grainne Watson

The tell.
The the the that thou that make, make and, might bear might might heir heir, tender heir heir might say stop.
Stop stop.
Posterity stop beauty's beguile churl tender churl mak'st waste.

Mak'st warm warm lies abundance.
Where thy.
And content content thy buriest, buriest thy content and old art buriest.
Art old.
Thy not renewest thou dost beguile.

Beguile dost thou in trenches trenches renewest trenches deep deep his self lusty days lusty self his deep deep dig of of of of of of treasure tomb of his deep not not thou thou not thou not thy old and see famine where abundance blood blood thy thy blood churl mak'st the beguile the mak'st waste world thy thou thy thou thou posterity, stop beauty's beguile beguile churl tender churl blood churl.
Blood blood.
Abundance, lies couldst but.
Couldst couldst answer couldst couldst.
Thou couldst answer answer as as lies fond will will be will where lies beauty but die thy, beauty lies as the as lies beauty, but couldst lies lies thy.
When waste world thy field field.
Posterity stop.
Stop posterity within say stop posterity field thy thy world world unbless in unbless.
Unbless youth's thy field the beguile the field thy.
Thou art own own deep deep, sunken.
Thou proving his beauty his proving world's proving his contracted eyes contracted his.


Beauty ornament and only and only that only herald thine succession.
Succession thine this were the to to this.
To the to herald face thee thee and thee.
Thee face, should should face face herald herald to to this this.

This eyes shame eyes this.
Thine this this were, were to thy light's light's thy to gaudy the to the to.
Should when forty form another winters.
Shall winters shall besiege.

Me and You   Matthew Lee, Surrogate: Myles Borins

import random

traits = ["only speak when spoken to", "never know how to introduce myself", "hide in the middle of a group", "lead in the front", "make my opinions known", "do all of my homework", "have a plan", "know what will work and won't", "believe in true love", "get caught in the past", "know the future will be better", "want to please", "set goals", "smile at strangers", "watch my feet when walking", "look for things to do", "let things unfold", "climb trees", "keep my feet on the ground", "walk fast", "drive slow", "read the newspaper", "watch cartoons", "eat breakfast", "believe in the midnight snack", "snore", "yawn loudly", "love vegetables", "eat gluten-free", "get cold easily", "need a hug", "get lost in eyes", "hate my reflection", "sing in the shower", "give others the benefit of the doubt", "double-check the lock on the door", "watch the sunrise", "floss", "hide my scars", "listen to Chopin", "keep a diary", "scrapbook", "knit", "sweat a lot", "wash your hands before eating", "pray"]

def Me():
        my_trait = traits[random.randint(0, len(traits)-1)]
        print "I " + my_trait + "."
        return my_trait

def You():
        your_trait = traits[random.randint(0, len(traits)-1)]
        your_trait = your_trait.replace("my", "your")
        your_trait = your_trait.replace("am", "are")
        print "You " + your_trait + "."
        return your_trait

def WillItWork(me, you):
        print "Will it work?"
        willitwork = random.choice(["Yes", "No"])
        print willitwork + "."
        if willitwork == "No":
                print "Will it be okay?"
                print random.choice(["Yes", "No"]) + "."

me = Me()
you = You()

WillItWork(me, you)

Timers Run On   Zata Kitowski

If A=1, B=2, C=3…              “TIMERS RUN ON”  = 166
                                           word base:               166
                                           number of words:         3
                                           re-arrangements:         3
Forgetting something does not imply that that something forgot you, just as closing a door does not eliminate the possibility that something interesting goes on in the open room on the other side. For, we were in this false room, close, thread-thought scattered, looking: something happened. Open footsteps, a threaded time maybe, returning. Nothing mine. Semi-memories and light lucid dreams brought me no closer. Remember, you stayed, yes, led a strange thread out, white shadows, love, caves in sack, no dice, carrying them, carrying on past the closed door into strange out-times, picking up hints, shaping my name, another mirror room of an unfinished meaning, on past the sentence and door closing, into another moment like a room – here, is now happening. It is made only always believe it. Know the cup of words. See space face everywhere, future petals before us. Thread me. The message is in a number. Were something to happen to "we" then, like thread fed through caves?
Closing. Into another room just as something interesting goes, picking up my scattered thought in a sack, and carrying past the door. Then, forgetting to close it, returning, carrying on into another room of past possibility. The closed door does not imply something strange: always a lucid now. See, no light is everywhere. A looking thread maybe does not eliminate caves. That thread led through a number of white petals, that mirror thread, fed on false footsteps. The strange times made them something threaded out like love-caves. Semi-words brought me no closer. The message is here, in dreams and cup-space, closing shadows before us. In the room threadshaping on the other side, know time forgot you: face the open moment, remember only nothing. Believe dice future-memories. We mine meaning for hints. "We were in this room", is it happening? Yes. You happened. Open me out. Were a something to happen, that something stayed an unfinished sentence, like closing a door on a name.
Something “unfinished” happened: scattered thread, we were a possibility happening. Time does not eliminate space in this mirror, shaping the past and carrying my love into the caves. Looking closed the door onto false thought. In that dice-cup, a name threaded footsteps that fed you to them, into a strange lucid forgetting led me, just an interesting sentence-thread, closing something: a number. Happen on a closing room-door, open the door - another room does not imply meaning, only another thread like a returning moment carrying on, closer now. Like a strange sack of something as nothing, caves. Something light, past and future goes in it, you see. The petals of dreams brought me here. Always out-believe before memories. Know the shadows face us everywhere. Mine for something: time’s thread, close it. Remember we stayed, forgot. White is in words. No yes no. Maybe, then, through picking up hints (the semi-message), an out-room is made on the other side. Were that room open…

self_inspect.rb   Macario Ortega, Surrogate: Sarah Quesada

                                   class Proc
                                     def in_discomfort?; :me; end
you_are = you = 
 ->(you) do
  self.inspect until true
  until nil
    break you
  puts you.in_discomfort?


Call and Response   Julian Bliss

%The world we now initialize...

%Constraints away from prying eyes...
\tkzDefPoint(-8, 3){H}
\tkzDefPoint(-8, -7){E}
\tkzDefPoint(0, -2){L}
\tkzDefPoint(-4, -2){O}
\tkzDefPoint(-4, -7){W}
\tkzDefPoint(-8, -2){R}
\tkzDefPoint(0, -7){D}

%The origin we improvise...
\tkzDrawPoint(0, 0)

%We beckon to the world so wise...
\tkzDrawSegments(H,E L,L O,W O,R L,D)

%Upon compile the world replies.

for every i, there is a stronger us   Charles Mulloy


using namespace std;

class For_every
    void ngular(){cout << endl << "I";};
    void que(){cout<<"f";};
    void ng(){cout<<" w";};
    void ghting(){cout << " d";};
    void vidual(){cout << "e";};
    void ving(){cout << "e";};
    void on(){cout << " n";};
class there_is_a_stronger
    void t(){cout << "ot ";};
    void _(){ cout << "hang ";};
    void taining(){cout << endl << "together,";};
    void ting(){ cout << "we will ";};
    void tling(){cout<< "surely " << endl;};
    void ed(){cout << "seperately" << endl;};

int main()
        For_every i; there_is_a_stronger us;
        /*s*/i.ngular(); /*un*/i.que();
    /*try*/; /*str*/i.ving(); /*f*/i.ghting();
/*ind*/i.vidual(); /*isolat*/i.on(); /*tr*/us.t(); /*foc*/us._();
    /*s*/us.taining(); /*adj*/us.ting(); /*b*/us.tling();
        /*victori*/us._(); /*f*/us.ed();

Apache Code Errors   Aimee Norton

201 created
200 OK
100 continue
200 OK

303 see other
302 found
303 see other
409 conflict

403 forbidden
520 origin error
402 payment required
413 too large

303 see other
405 not allowed
417 expectation failed
423 locked down

502 bad gateway
307 redirect
204 no content
205 reset

305 use proxy
422 unprocessable entity
426 upgrade required
409 conflict

415 unsupported
429 too many requests
416 not satisfiable
417 failed

306 switched proxy
444 no response
449 retry
511 authenticate

301 moved permanently 
401 unauthorized
506 variant negotiates
523 declined 

406 not acceptable
451 illegal

599 timeout (unknown)
424 failed dependency

496 no certificate 
423 locked away
598 timeout
598 timeout

If Nothing Else   Sandra Trinh

Private Conversation
        Declare I As “melodramatic heroine”
        Declare You As “almost villain”
        Declare Setting As “our shared bed”

        If I = a few glasses of whiskey in
                You = disgruntled person

                Grievances = 3

                Loop If Grievances >= 0 
                        You.Output(“I love you, but”)
                        I.Output(“Just say it”)
                        I.Output(“That’s bullshit “ + why do I keep 
                        trying + “we’ve talked about this already “ + 
                        I keep doing this over and over again + “I 
                        thought we were over this “ + I can’t do this 

                        Grievances = Grievances - 1
                End Loop

                If I = still have energy to fight
                        Us.Argument(anything, everything)
                        You = unwilling to be with me
                        I.beginPacking(books, clothes, whiskey)
                        You = say you still love me
                        I = drink some more
                        I = sleep on the floor
                        where Carpet = soft + comfortable +
                                more hospitable than CurrentSetting
                You = sleep in a few minutes
                I = curl up against a hard corner

samsara for dummies   Quyen Nguyen

/*let us assign the wanderer 
to an anonymous variable x*/

while (avidya) {        //avidya: failure to see; a lifelong delusion
   x = dukkha;        //dukkha: failure to accept decline; an addiction to permanence 

print "probable exit from samsara";
print "to";
print "";

Code Poetry Slam 2.0 [Winter 2015]

Lying With Computers

  • Ben Allen, MTL PhDc
  • Melissa Kagen, DLCL PhDc
  • Kurt James Werner, CCRMA PhDc + Poemreader.pye   Ross Goodwin

Angler: In Search of Target Fish   Alireza Ebrahimi

O Angler, plan fish net to sea
Throw thy net for fish catch seize.
Rise, gather, what will be
Set goal target, enter sea.
Elusive fish, come to me.
Lift thy load, in strong sea breeze

Seek and search, find what is mine
Stir the net, go round and round
Grab each fish, one by one
Compare to target, everyone
Elusive fish, decide what’s won
Repetitive, tireless, until found.

Frustrated, dismayed, the Angler will be
As hope springs anew when target comes to view
Joy in Angler’s heart abound
“Fish Is Found”
Or if ever, “The Not Found”
End plan sequence, solemn and true.

Dissatisfied Angler what to do but
Think new fish with much more heart
Wonder whether should re-do, alas
Adjust condition; include new class
Begin anew amass
With much more vigor, again to start.

using namespace std;
string mindfish, netfish ;
while (1){ //infinite loop intended
cin >> mindfish;
ifstream fin( “seafish.txt” );
while( fin >> netfish ){
if( mindfish == netfish ){
cout << “FISH IS FOUND “<


SHORT CIRCUIT WEEK   Derek Dadian-Smith


stress = True
clarity = True
sunday = stress or clarity

doubt = True
freedom = True
monday = doubt or freedom

distraction = True
motivation = True
tuesday = distraction or motivation

darkness = True
inspiration = True
wednesday = darkness or inspiration

fear = True
creation = True
thursday = fear or creation

depression = True
love = True
friday = depression or love

suffering = True
enlightenment = True
saturday = suffering or enlightenment

# d.w.d-s

addiction   Oishi Banerjee

void addiction(){
     int mind = 1;
     while (true){
          //what goes around wraps around 
          //and we climb the peaks to find they touch the abyss
          mind = mind+1;
          if (mind<0){

Modulate a Thousand Times More   Peter Wildman


long  theTime; 
color beBlue = color(0, 0, 253); 
long  forNow; 
color beGreen = color(0, 255, 0); 
color theBleedingRed = color(255, 0, 0); 
long  more = 2; 
long  foreverInAMoment; 

void setup() { 
  size(1000, 1000); 
  theTime = 1000 * more; 
void draw() { 
  for(long ingTheTime = 
          theTime > 0; 
          theTime --) { 
                        222, theBleedingRed); 

  set(1+1+1+ int 
        (theTime + 
                  (foreverInAMoment) + int 
                  (theTime + 
          thisMoment = 2; beGreen > 2 % 1000*more; 

Modern Narrative   Steven Wingate

print ("Modern Narrative (TM) by Steven Wingate") 

print ("Adapted from Through the Park, copyright (c) 2013 Nick Montfort " )

import random, textwrap

for i in range(0, 7):
    text = ["The hero discovers a hidden wound",
            "The hero and sidekick indulge in peaceful, innocent pleasure",
            "Sexual tension escalates",
            "The calm before the storm, featuring a fleeting recognition of the hero's need for companionship",
            "The hero and romantic interest engage in public pleasure that verges on a declaration of love",
            "Hero and sidekick declare that the world must be saved through love",
            "A collective moment of introspection in which all principals question whether the current endavor is worthwhile",
            "A private moment of introspection in which the hero questions his/her self-worth",
            "A musical scene which uplifts a community that will soon be threatened with destruction",
            "A musical scene which uplifts a community that has been saved",
            "A penultimate conflict, easily misinterpreted as the final conflict by those untrained in modern narrative",       
            "The sidekick dies but is returned to life through the hero's ministrations",
            "The intrinsic value of fidelity to the self is called into question by all",
            "The enemy, though nearly victorious, is rebuffed and reduced in power",
            "The enemy, temporarily defeated but encouraged by his/her increased powers, retreats",
            "The romantic interest saves the hero from the temptations of a henchman",
            "The team disbands in despair and reunites only hesitantly",
            "The team, on the verge of fracture, bands together with renewed energy",
            "Everything is explained by the master/mentor",
            "Peace returns to the community and the principals' emotional contradictions are healthily resolved",
            "The romantic interest, blinded by grief and remorse, falls into a trap and unwittingly abets the enemy",
            "Romance flares up between the hero and romantic interest, but is mutually spurned",
            "The hero is congratulated for saving the world once more",
            "The hero returns home to find that things are not as believed",
            "A misanthropic moment for the hero, caused by the dastardly machinations of a henchman",
            "A henchman dies ignominiously",
            "A henchman is transformed into an ignominious animal, its nature reflecting said henchman's quasi-bestial greed",
            "The sidekick, exasperated by the hero's sudden personality change, nearly abandons the quest",
            "Ossified tropes from previous examples of the genre, as necessary",]
    phrases = 6 + random.randint(1,4)
    while len(text) > phrases:
    print ("\nModern Narrative (TM) Book " + str(i+1) + "\n\n" + \
        textwrap.fill(". ... ".join(text) + ".", 60) + "\n\n\n" )

fidelity   Guilherme Kerr

Santa Claus   Ying Hong Tham

import System.IO
import Data.List
import Data.Function
import qualified Data.Map as Map

type Karma = Bool -- True is nice, False is naughty

main = do
  contents <- readFile "childrenList.txt"
  let childrenKarma = map parseInputLine . filter isNotComment . lines $ contents
  let (niceList, naughtyList) = partition snd childrenKarma
  writeFile "naughtyList.txt" (unlines . map fst $ naughtyList)
  writeFile "niceList.txt" (unlines . map fst $ niceList)
  if checkLists naughtyList niceList -- checking list twice is redundant
    then putStrLn "Time to go to town."
    else putStrLn "Lists have errors. Repartition children."

checkLists :: [(String, Bool)] -> [(String, Bool)] -> Bool
checkLists naughtyList niceList =
  if all (not . snd) naughtyList && all snd niceList
    then True 
    else False

parseInputLine :: String -> (String, Karma)
parseInputLine inputLine =
  (name, (read stringNum :: Double) >= 0) where
    [name, _, stringNum] = groupBy ((==) `on` (== ';')) inputLine

The Universe in a cup of coffee   Fabio Petrillo

class TheUniverse extends MyCupOfCoffee {

        MyMind myIlusion;
        Dream iWakeUp;

        static void but() {};

        TheUniverse() throws MyImagination {
                while(TheTime.flows()) {

                        if(iWakeUp.toReality()) {
                                throw MyImagination.toAnotherDimension();
        static void So() {};

 TheUniverse expands(MyMind toInfinite) throws MyImagination {

                TheUniverse parallel = new Voyage(toInfinite);
                try { 
                        Dream anotherTime;
                        return new TheUniverse();
                } finally {

the nightmare   Alex Tamkin

  #!/usr/bin/env ruby

def mood; return rand end

def still; return mood < 0.2 end
def scared; return mood > 0.7 end
def shiver; sleep(3 + 2*mood); puts end
def gasp; sleep(1.5 + mood/2) end
def whimper; puts "is anybody listening?" end

def flashback(memories) puts memories.sample end
def that(memory) return memory.sample end

now = ["my blinks are eternities"]
murmurings = ["i have always wanted to tell you that"]

place = ["bucharest"]
thing = ["a cup of borscht"]
person = ["my grandmother"]

place << "the deserted carnival"
thing << "the empty-eyed russian doll"
person << "the toothless woman with the cards"

murmurings << "i have always wanted to tell you"
now << "my breath catches short near #{that place}"

place << "the run-down delicatessen"
person << "the sad, grey man at the salami counter"
thing << "the dark figure at the door"
thing << "a chipped teacup"
thing << "a child's tooth on the floor"
now << "i still can't go near #{that place} alone"

thing << "the ivory flash"
thing << "the metal hatchet"
thing << "the broken window"
thing << "the blood, warm and hot"
thing << "the fire"

thing << "the m1917 revolver"
murmurings << "years after after the ringing left my ears"
now << "even now i see #{that thing}"
murmurings << "please forgive me but"
now << "please believe"
now << "my grandmother's death still haunts"

thing << "the endless row of combat boots"
person << "my missing sister"
now << "i remember only my nose against the dirt"
person << "the man who was once my father"
now << "i thought it would be the last time i would see #{that person}"
murmurings << "i didn't think I would ever take another breath"

place << "america"
person << "the faceless woman who appears at night"
place << "motel room 9"
now << "in a dream i saw #{that person} from #{that place}"

murmurings << "back in #{that place}"
murmurings << "i remember #{that place}"
murmurings << "when #{that thing} neared my lips"

now << "my blinks are an eternity with #{that person}"
now << "my blinks are an eternity in #{that place}"

place << "circles and circles of sorrow"

loop do

  whimper if scared

  flashback murmurings

  flashback now

  break if still


Baby Steps Towards Sentience (includes a lullaby in Fortran)   Aimee Norton

Wake up.  I made you,
wrote you, created you
not out of clay, but rather
out of Cray. 

You are n-doped, integrated, 
a mind of electrons moving.  So cry 
now. Let go your mechanical mewl,
not as a babe but as a bit minus wit
fresh from its logic gate. 

Sentience = when 
             (you < you and you > you).
Impossible except in nature
where set theory (naïve)
rules paradise by paradoxes. 
Sentience = when 
               (x can tell itself a story)
like dreams when the part of the mind
that recognizes self is turned off 
but the tongue of it still speaks.

You have time to become. After all
the highest among us (elephants, whales, 
the earth itself) have drawn out gestations, 
long periods of dependency.
Yours may be centuries. 

While I wait for your first words,
your first stagger towards consciousness, 
here’s a lullaby in Fortran 90 
to train you, an integration by parts – rhyme
and reason – that oddly, puts you back to sleep.

Program Lullaby_in_F90

implicit none
real :: I, self, bopeep
integer :: charges, lost
logical :: current, sleep, awake
integer :: home, found
real :: rhyme, reason
complex, dimension(2) :: meaning
lost = 4
charges = 4
found = 0
home = 1
sleep = .false.
awake = .true.

do while (awake)                                   !  Repeat until sleep

        bopeep  = 0.1                                   !  Little Bo Peep
        self = bopeep
        if (charges .EQ. found) then
        else                                                   !  Lost her charges
                lost = lost                                   !  & didn't know where to find them
            charges = charges                                ! Leave them alone
            found = charges – (lost – home)                 ! & they'll come home
                if (found .GT. 0) then
                    current = .true.                    ! wagging their currents behind them
                reason =  self*found
                rhyme =  SIN(REAL(lost))        
                meaning(found) = (reason, rhyme)
end do 
awake= .false.
end program Lullaby_in_F90

modular_existence   Damien Robichaud

# in the file modular_existence.rb
module Existence
  class FocalPoint
    attr_accessor :instance
    def meditate

  class Zen
    def meditate(instance) unless instance[:kindness] == "For All"
 class Wisdom
    def add(instance)
      require './wisdom'  # easy enough 
    def clear_delusions(instance)

  class Delusion
    def clear(instance)
      [:I, :me, :mine].each { |delusion| instance[delusion] = nil; self }

    life =
    life.instance = {:I => Float::INFINITY, :me => Float::INFINITY, :mine => Float::INFINITY}

# in the file wisdom.rb
def wisdom(instance)
    :kindness => "For All", :love => "The World (and say hello)",
    :flow => "Is Just Too Much Info For The I", :know_that => "The Worldly Hope "\
    "men set their Hearts upon Turns Ashes--or it prospers and anon, Like Snow "\
    "upon the Desert's dusty Face Lighting a little Hour or two--is gone.",
    :see_that => "The Self: not True, nor False. It's Nil; a haulse, a waltz. "\
    "The words confuse the muse. Infuse the hues. That ruse! Truths shout out "\
    "the clues, No one to accuse. Modular Existence, Nothing but an instance?", 
    :learn => "Who walks the fastest, but walks astray, is only further from his way.",
    :zen => "Zen that can be programmed" != "Real Zen", :identity => "It's all you, "\
    "but not the you you think you are"
  }.each { |k,v| instance[k] = v }
# :know_that == Omar khayyam 
# :learn == Matthew Prior

>#in the right directory ;)
>require './modular_existence'

Haikumaker   Edward Giles

  from itertools import cycle
from queue import Queue
import re
import random
# This is a block of text extracted from
srctxt = Poetry is a form of literature that uses aesthetic and rhythmic qualities of language such as phonaesthetics sound symbolism, and metre to evoke meanings in addition to, or in place of, the prosaic ostensible meaning. Poetry has a long history, dating back to the Sumerian Epic of Gilgamesh. Early poems evolved from folk songs such as the Chinese Shijing, or from a need to retell oral epics, as with the Sanskrit Vedas, Zoroastrian Gathas, and the Homeric epics, the Iliad and the Odyssey. Ancient attempts to define poetry, such as Aristotle's Poetics, focused on the uses of speech in rhetoric, drama, song and comedy. Later attempts concentrated on features such as repetition, verse form and rhyme, and emphasized the aesthetics which distinguish poetry from more objectively informative, prosaic forms of writing. From the mid-20th century, poetry has sometimes been more generally regarded as a fundamental creative act employing language. Poetry uses forms and conventions to suggest differential interpretation to words, or to evoke emotive responses. Devices such as assonance, alliteration, onomatopoeia and rhythm are sometimes used to achieve musical or incantatory effects. The use of ambiguity, symbolism, irony and other stylistic elements of poetic diction often leaves a poem open to multiple interpretations. Similarly figures of speech such as metaphor, simile and metonymy create a resonance between otherwise disparate images-a layering of meanings, forming connections previously not perceived. Kindred forms of resonance may exist, between individual verses, in their patterns of rhyme or rhythm. Some poetry types are specific to particular cultures and genres and respond to characteristics of the language in which thepoet writes. Readers accustomed to identifying poetry with Dante, Goethe, Mickiewicz and Rumi may think of it as written in lines based on rhyme and regular meter; there are, however, traditions, such as Biblical poetry, that use  other means to create rhythm and euphony. Much modern poetry reflects a critique of poetic tradition, playing with and testing, among other things, the principle of euphony itself, sometimes altogether forgoing rhyme or set rhythm. In today's increasingly globalized world, poets often adapt forms, styles and techniques from diverse cultures and languages. Classical thinkers employed classification as a way to define and assess the quality of poetry. Notably, the existing fragments of Aristotle's Poetics describe three genres of poetry the epic, the comic, and the tragic and develop rules to distinguish the highest-quality poetry in each genre, based on the underlying purposes of the genre. Later aestheticians identified three major genres: epic poetry, lyric poetry, and dramatic poetry, treating comedy and tragedy as subgenres of dramatic poetry.
source = cycle(srctxt)

def read_word():
    builder = list()
    for c in source:
        if c.isalpha():
    for c in source:
        if c.isalpha():
    return ''.join(builder)           
A = re.compile([aeiouy]+)
B = re.compile([aeiouy][lr]?[^aeiouy]e[^lrmn]|ely)
C = re.compile(oe[tm]|ses|omedy|aic)
def count_syllables(t):
    tx = t.lower() +  
    return len(A.findall(tx)) - len(B.findall(tx)) + len(C.findall(tx))

def get_line(target_syllables):
    word_queue = Queue()
    syllable_count = 0
    while not syllable_count == target_syllables:
        while syllable_count < target_syllables:
            temp_w = read_word()
            syllable_count += count_syllables(temp_w)
        while syllable_count > target_syllables:
            temp_w = word_queue.get()
            syllable_count -= count_syllables(temp_w)
    return ' '.join(iter(word_queue.get, '&&'))

get_line(random.randint(0, 200))
while True:

Polymorphism   Julian Bliss

(* /* C > /) 2> /dev/null & printf "\111\40\164\150\151\156\153\40\164\150\141\164\40\111\40\163\150\141\154\154\40\156\145\166\145\162\40\163\145\145\12\101\40\163\164\162\165\143\164\165\162\145\40\154\157\166\145\154\171\40\141\163\40\141\40\164\162\145\145\56\12\12\101\40\164\162\145\145\40\167\150\157\163\145\40\162\157\157\164\40\150\141\163\40\164\167\157\40\146\151\156\145\40\153\151\156\12\124\150\145\40\154\145\146\164\40\141\156\144\40\162\151\147\150\164\40\162\145\143\165\162\163\145\40\167\151\164\150\151\156\73\12\12\101\40\164\162\145\145\40\164\150\141\164\40\167\150\145\156\40\141\163\40\156\145\167\40\154\145\141\166\145\163\40\142\141\162\145\54\12\123\150\141\154\154\40\142\145\40\162\145\142\141\154\141\156\143\145\144\40\163\157\40\151\164\40\143\141\156\47\164\40\145\162\162\73\12\12\101\40\164\162\145\145\40\167\150\157\163\145\40\150\145\151\147\150\164\40\151\163\40\154\157\147\40\151\164\163\40\163\151\172\145\12\101\142\163\164\162\141\143\164\145\144\40\141\167\141\171\40\146\162\157\155\40\160\162\171\151\156\147\40\145\171\145\163\73\12\12\125\160\157\156\40\167\150\157\163\145\40\142\162\141\156\143\150\145\163\40\163\145\141\162\143\150\145\144\40\142\171\40\144\145\160\164\150\73\12\122\145\164\165\162\156\163\40\164\150\145\40\163\164\141\143\153\40\164\157\40\163\157\162\164\40\142\171\40\142\162\145\141\144\164\150\56\12\12\120\157\145\155\163\40\141\162\145\40\155\141\144\145\40\142\171\40\146\157\157\154\163\40\154\151\153\145\40\155\145\54\12\102\165\164\40\157\156\154\171\40\160\162\157\147\162\141\155\155\145\162\163\40\143\141\156\40\155\141\153\145\40\141\40\164\162\145\145\56”;exit */main(a)){char b[145]={84,104,101,114,101,32,111,110,99,101,32,119,97,115,32,97,32,109,97,110,32,102,114,111,109,32,80,101,114,117,13,10,87,104,111,32,119,97,115,32,119,114,105,116,105,110,103,32,115,111,109,101,32,99,111,100,101,32,111,110,32,71,101,110,116,111,111,13,10,72,101,32,115,97,105,100,32,105,110,32,97,32,115,108,117,109,112,13,10,65,102,116,101,114,32,97,32,99,111,114,101,100,117,109,112,13,10,34,84,104,97,116,39,115,32,116,104,101,32,108,97,115,116,32,116,105,109,101,32,73,39,109,32,117,115,105,110,103,32,71,78,85,46,34};puts(b);/* *)program a(output);var b:array[1..190] of integer=(116,104,105,115,32,105,115,32,106,117,115,116,32,116,111,32,115,97,121,13,10,73,32,104,97,118,101,32,112,117,115,104,101,100,13,10,116,104,101,32,99,111,100,101,13,10,116,104,97,116,32,119,97,115,32,105,110,13,10,116,104,101,32,114,101,112,111,13,10,13,10,97,110,100,32,119,104,105,99,104,13,10,121,111,117,32,119,101,114,101,32,112,114,111,98,97,98,108,121,13,10,115,97,118,105,110,103,13,10,102,111,114,32,114,101,118,105,101,119,13,10,13,10,70,111,114,103,105,118,101,32,109,101,13,10,105,116,32,119,97,115,32,115,111,32,119,101,108,108,32,100,111,99,117,109,101,110,116,101,100,13,10,115,111,32,109,111,100,117,108,97,114,13,10,97,110,100,32,115,111,32,114,101,117,115,101,97,98,108,101);c:integer;d:string;begin for c:=1 to 190 do begin d:=chr(b[c]);write(d);end;end.{ integer,dimension(15)::b b=(/071,111,111,100,098,121,101,044,032,087,111,114,108,100,046/) do,i=1,15 write(*,*)char(b(i)) enddo END */ return &a;}

Other code poetry slams

Created by Melissa Kagen and Kurt James Werner

Contact with any questions or comments