Musical Random Walks Over Weighted Graphs

tl;dr: In this post, I illustrate a simple technique in Perl 5 to perform random walks over (node-edge) graphs, adding the named, “semantic” vertices to a MIDI score. The image on the left is not generated by the random-walk program, but is just a related illustration. :-) OK – on with the code! First, there […]

Plotting Successive Primes Modulo A Number

        tl;dr: File this under Recreational mathematics… I have this passionate curiosity for seeing the primes “folded in on themselves” – constrained to a phase space.  I also have a burning desire to visualize successive events.  I suppose that I am searching for “strange attractors”, as with the famous water drip […]

Visualize Move, Protection and Threat Status in Chess

tl;dr: When I was a kid, my younger brother became a chess master and would regularly thrash me in the game.  Invariably this seemed to be because I would do something dumb like leaving my queen threatened and unattended. As with many budding CS students, I devised my own chess playing program, but in […]

Visualizing Chatter on a Polar Plot

What does IRC chatter look like on a polar plot, with lines linking the conversations?

Time-Successive Old Faithful Eruption Durations

Because of the observed data, a four group clustering emerges when you plot successive eruption durations, of the famous geyser.  That is, the x axis is the first eruption and y is the next.

Fibonacci v Primes: Cage Match!

Today I decided to more deeply investigate this curious math thing I discovered (for myself) – Plotting the Fibonacci numbers by Prime numbers each by a given modulo.  “Fibo-what? Mod-what? So what!”, you say. :p tldr code: slice-seq and slice-seq.R For the mechanics, I use Perl to produce the data and R to visualize it.

Growing Melodies

Ever since I heard about evolutionary programming, I’ve wanted to try it with music.  On a recent weekend, I finally did just that! Some generated melodies are lovely in spurts but betray their purposlessness.  …Some just sound like Metroid on drugs. The code is here: Update with less dependencies:

Word Parsing, Part 2

In the previous episode, I rambled about the history and completion of my mechanical word parser.  This time, we go section by section through the deceptively short synopsis. As before, the code lives at and also at UPDATE: A Web GUI can now be found at  

This is the standard preamble […]

Word Parsing

It was in my Grandfather’s breakfast area, in my teens, that I realized that I even though I knew about overlapping word-parts, I didn’t know how to handle “word part under-lapping” or “unknowns.”  I became determined to study computer programming. I’ve been working on the problem of how to best break a word into parts […]

Re-learning Prolog

Frankly, I think Prolog is the sexiest computer language ever. Programming with a free-form propositional logic? How cool is that? tl;dr: