Rough Book

random musings of just another computer nerd

Category: Poetry

Data and Code

Inspired by The Codeless Code:

A novice monk had just started learning assembly programming when he was troubled by doubt. He approached his master and asked:

“Master, how do I know which is code and which is data?”

The master who was meditating, opened his eyes, smiled, and said:

“Each is the other, yet neither is either.”

“Master, I do not understand.”, said the disciple.

The master then brought out two identical pots and said. “Take these. Fill one with the water from the lake, and fill the other with water from the stream that flows into the lake. Then bring them to me.”

The monk bowed and took the pots. He walked to the lake, which was some distance away and filled it with water from the lake. Then he walked around the side of the lake until he found the stream that fed water into the lake. He used this water to fill the second pot and then brought both pots back to his master and set them at his feet. The master looked at the pots, and then back to his disciple and said “Now go. You may come back tomorrow morning.”

The disciple came back the next morning to find his master standing with the two pots. He held up both the pots and then threw them to the opposite sides of the room. The pots smashed, and the water from both pots flowed towards the center of the room, forming a puddle.

The master then said, “Which pot contained water from the stream? Which pot contained water from the lake?” He then pointed to the growing puddle that was forming in the middle of the room. “Which part of the puddle contains water from the stream? Which part contains water from the lake?”

In that moment, the novice was enlightened.

CherryBlossom

I’ve created a project page for the CherryBlossom programming language. You can check it out here. The interpreter is written in perl.

Introducing CherryBlossom

Over the past month, I’ve been working on a new project. It’s called CherryBlossom, and it’s a way to write programs using haikus. Strictly speaking, CherryBlossom is a brainfuck analog. I actually spent more time writing the obligatory “Hello World” program in CherryBlossom than I did writing the interpreter for the language. The idea behind CherryBlossom is simple. Brainfuck instructions are mapped to words that convey the essence of the Brainfuck instruction. Of course, this is a little subjective and also a little abstract.

Ultimately, it serves as a way to make program code not just functional, but beautiful and artistic. Thus, we introduce a new criteria to programming. Your code must not only be elegant algorithmically, but must also be poetic and artistic (also, since program code consists of haikus, you need to represent your code in sets of 3 lines with the first and last lines having 5 syllables, and the second line 7. That is, conforming to haiku rules). CherryBlossom serves to blend the programmer and the poet into one entity (hopefully with amazing results).

Here is an example of “Hello World!” in CherryBlossom. I have opted to use a spruced up div tag instead of enclosing my beautiful poem in soulless sourcecode tags.
Read the rest of this entry »

More pretentious Haikus


balmy summer night
someone else, also alone
feelings shared

Listening
Song of an Ancient City
And it gives me Strength

Digital stream weaves
And you search for love
In its warp and weft

words that leave my hand
feelings on a screen
I lay my soul bare

looking back i see
new fall with new promises
one, never fulfilled

Weary, solitary, flight

Dreary dancing under the fire-born moods
Has fallen cold light footfall;
But the indolence of wine
The Incorruptible Rose of Houlihan.

With white birds on to be, and his animal blood astir
And glittered in dew,
The changing eyes blind
With lightning, but the bone.

The heavy flooded waters in a red wine
And a mind
That nobleness made my heart knows;
And one common level place for you night,
May know.

Beauty that you sigh with mingled sorrow before the fallen still;
He bade all the passing on a sudden flaming West;
Desolate winds are safer in the calling my beloved, I sing the sky,
No learning from the warring in half hidden
Under the flash of the wings
That the wind and moon overhead
Has taken a rocking cradle.

In all the reeds grew to and the Boar without sound;
He changed to shoot,
And all things came the blue depth of wine
The Incorruptible Rose.

And moth-like stars and kind one,
And what could find
Nothing to kiss
Weary and solitary and I fly

–Lightning and Lodestone

Pretentious Haikus

>em>I wish I
could say it easily but
I cannot

——————–

The very last Spring
in familiar settings
makes me very sad

——————–

The hardest thing is
to have it so close to me
but not with me

All original content on these pages is fingerprinted and certified by Digiprove
%d bloggers like this: