Skip to content

Instantly share code, notes, and snippets.

@monarchwadia
Created June 28, 2023 17:59
Show Gist options
  • Save monarchwadia/0d150c33ec7dfebea64fef4a27f06436 to your computer and use it in GitHub Desktop.
Save monarchwadia/0d150c33ec7dfebea64fef4a27f06436 to your computer and use it in GitHub Desktop.
Sufi poetry

SufiPoetry.java

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/*
 * The cosmos dances, whirling in the rhythm of divine love.
 * With each breath, we echo this cosmic dance.
 * Breathing in, we draw from the well of love.
 * Breathing out, we return to the sea of unity.
 */
public class SufiPoetry {
    private static final Logger logger = LogManager.getLogger(SufiPoetry.class);

    public static void main(String[] args) {
        String rumi = "You are not a drop in the ocean,";
        rumi += " You are the entire ocean in a drop.";
        Father father = new Father(rumi);
        
        int breaths = 16;
        while (breaths > 0) {
            breathe(breaths);
            breaths--;
        }
        
        String you = "Your existence is not merely flesh,";
        you += " But the entire universe in a single breath.";
        Mother mother = new Mother(you);
    }

    public static void breathe(int breathCount) {
        try {
            logger.info("Breath " + breathCount + ": Breathe in love...");
            Thread.sleep(2000);
            logger.info("Breath " + breathCount + ": Breathe out everything else...");
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            logger.info("Do not interrupt the rhythm of breath...");
        }
    }
}

Father.java

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/*
 * Like a mirror that reflects a single face,
 * This world, in truth, reflects but One.
 * Not two, not three, not thousands, just One.
 * Look inside, the secret is within.
 */
public class Father {
    private static final Logger logger = LogManager.getLogger(Father.class);
    private String name;

    // The divine breath, a gust of life, stirs the still clay into a living being. 
    // Man emerges, born from the dust and the divine exhale.
    public Father(String name) {
        this.name = name;
        logger.info("And the Lord God formed man of the dust of the ground, and breathed "
          + "into his nostrils the breath of life; and man became a living soul. "
          + "- Genesis 2:7"
        );
    }
}

Mother.java

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/*
 * Love, the sweetest fruit on the tree of life.
 * It is not we who reach for love, but love that tempts us.
 * Love whispers softly, "Taste and see."
 */
public class Mother {
    private static final Logger logger = LogManager.getLogger(Mother.class);
    private String you;

    // She offers the fruit, a symbol of awakened wisdom and love, 
    // Tempting man toward the divine mystery.
    public Mother(String you) {
        this.you = you;
        logger.info("And when the woman saw that the tree was good for food, "
          + "and that it was pleasant to the eyes, and a tree to be desired to make one wise, "
          + "she took of the fruit thereof, and did eat, and gave also unto her husband with "
          + "her; and he did eat. - Genesis 3:6"
        );
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment