Does Your Debugger Sing to You?
ZahrGnosis writes "TRN Mag Online is carrying an article titled Programming tool makes bugs sing. '[The researchers] set up software that mapped pitch and melodic contour information to structural elements in the programming language Pascal. "[We] aimed to see if information about the structure of Pascal programs could be communicated using such musical phrases".' They even found a practical application for software debugging."
The UPS Debugger Song: "Just One More Hack (and then I'll put it on the 'net)
(Ah, thank you Google, for the historical reference to first puclication!) UPS - The Song!"
Back when I first started experimenting with full-screen graphics programming, I went through a phase where I could switch screen modes, but not get anything to show up. This meant that I had no way to print diagnostic messages to the screen to figure out when something went wrong. The solution was to play sounds to track the progress of the program and report error conditions.
"Oh, the program went Boink-Ding and Bloop, but not Clunk... that must mean that palette creation failed!"
I don't have a reference to it, but I thought that Admiral Grace Hopper and her crowd had done something just like this generations ago simply by hooking up the accumulator of a Univac to a D/A converter, which in those days resulted in audible frequencies! A quick search on Google found something similar was done on a CDC 3300 (search for CDC 3300 in this page).
Cheers,Richard
Programming by sound was something I always used to do on my Tandy 1000 8086 machine, running at a whopping "turbo" speed of 7.16 MHz.
I'd crank up my AM radio next to the machine, run my program, and I could hear each iteration of the loop, I/O requests, screen prints, BIOS calls, DOS calls -- they all had different rhythms and pitches.
I've noticed several folks who seem to think this is silly, dumb, etc. I don't think it is. Think back to the days (if you're old enough) of monochrome displays. Even the addition of a few colors made it easier to process information by taking advantage of human sensitivity to color in our environment. To say that music, or at least sound, could be incorporated makes sense to me.
.0001 share of Berkshire Hathaway's Class B worth...
Particularly in applications where you're trying to track status over time, having some background that varies with changes can be very helpful (I seem to recall the game Populous using this to good effect to help you get a quick idea of how you were doing overall). In the context of a debugger, having clashing noises that become more melodious as the program gets closer to completion and perhaps also asit comes closer to defined standards seems to bea good motivator.
Just my
Hmmm...
Well the first computer I ever had free reign of was one of those Commodore Pet computers with the little tiny calculator keyboard. Little memory, little keyboard, no disk, and I still managed to learn a little assembler to pep up my BASIC programs.
When I came out to the Silicon Valley to go to college in 1978, I left the PET behind, but still checked out the computer shops when I had free time (anybody remember The Byte Shop in Palo Alto? Computerland in Los Altos?). One of the things that I found pretty entertaining at a Commodore shop was a guy that was debugging by putting a little AM radio next to the computer. If you tuned to the right frequency (and I'm embarassed that I don't remember it), you'd hear the sound of your code executing as static. If you had the right loop coded, you would hear a burst of static when it executed, and this guy would drop in the little flag routine as a debugging aid. By putting in a marker like that in the different long-running repetious sections,you could actually tell where your code was running, or if you were stuck in an infinite loop.
Kind of cool back then, although I have to admit that I don't remember writing anything that ever took 2 minutes to execute. Well, intentionally anyway...
David Fung
There were also programs designed just to place music on the radio with their EMI.