SongSim
SongSim is a project by Colin Morris that visualises word repetition in song lyrics as a self-similarity matrix. Each word is assigned an index; a dot is placed at (x, y) whenever word x and word y are the same. Repeated phrases appear as diagonal runs; choruses show up as repeated off-diagonal clusters.
I use this algorithm as a small, well-defined exercise when learning a new programming language - it requires string processing, a map data structure, and image output, which is enough to get a feel for a language's idioms and ecosystem.
Here, the same algorithm is implemented in four languages - Nim, Rust, C, and Python - served by a single Nim binary. Rust is compiled to a static library and linked in via FFI; C is compiled directly by Nim.