The Schwartzian Transform: A Programming Epic

2025-08-05
The Schwartzian Transform: A Programming Epic

This article recounts the fascinating history of the Schwartzian Transform. It began in 1994 with a concise piece of code by Randal Schwartz on Usenet, designed to optimize sorting algorithms. This code became legendary for its elegance and the impact it had on Perl programmers at the time, sparking debates about code readability, functional programming, and the nature of Perl itself. Though initially unnamed by Schwartz, the technique eventually bore his name, appearing in numerous Perl books and establishing itself as a classic algorithm. The article also explores variations, such as Joseph Hall's Orcish Maneuver, and its application across various programming languages.

Read more
Development

Supercharge Your MIDI Controllers with Perl

2025-04-10
Supercharge Your MIDI Controllers with Perl

This article demonstrates enhancing MIDI controllers using Perl modules to create real-time filters for MIDI events, achieving diverse sound effects. The author developed modules like MIDI::RtController, allowing for concise code to control MIDI devices. Several code examples showcase adding filters, delaying MIDI messages, and building custom filters (e.g., a stair-step filter), with audio examples illustrating the results. The article also explains how to list available MIDI devices and utilize existing tonal and drum filters. A fun project for any musician or programmer!

Read more
Development