Bugs blare in software set to music. (Loony Tunes).Imagine a band playing "Here Comes the Bride" in the middle of a funeral dirge dirge n. 1. Music a. A funeral hymn or lament. b. A slow, mournful musical composition. 2. A mournful or elegiac poem or other literary work. 3. . It would be jarring, to say the least. Now, British researchers are exploiting the attention-getting effect of musical flubs to highlight errors, or bugs, in computer programs. In a test of a new software-to-music scheme, student programmers found bugs more easily when they listened to melodies representing computer programs than when they used only conventional debugging (programming) debugging - The process of attempting to determine the cause of the symptoms of malfunctions in a program or other system. These symptoms may be detected during testing or use by real users. techniques. Software bugs A problem that causes a program to produce invalid output or to crash (lock up). The problem is either insufficient logic or erroneous logic. For example, a program can crash if there are not enough validity checks performed on the input or on the calculations themselves, and the computer cost some $60 billion annually in the United States United States, officially United States of America, republic (2005 est. pop. 295,734,000), 3,539,227 sq mi (9,166,598 sq km), North America. The United States is the world's third largest country in population and the fourth largest country in area. alone (SN: 7/20/02, p. 45). One way to reduce that impact is to convert computer programs into music, propose James L. Alty of Loughborough University Loughborough University is located in the market town of Loughborough, Leicestershire in the East Midlands of England. The University offers degree programmes and research. in Leicestershire and Paul Vickers of Northumbria University Northumbria University is a modern university located in Newcastle upon Tyne in North East England. Schools Northumbria offers approximately 500 study programmes through nine Schools:
"We took a deliberate, structured musical approach," Vickers says. The goal was to convert software into familiar musical forms, such as classical or rock, that listeners would find easy to recognize and follow. That's in contrast to previous attempts at software-to-music conversion in which researchers arbitrarily assigned musical notes to program instructions, he says. Those approaches resulted in unfamiliar, atonal a·ton·al adj. Music Lacking a tonal center or key; characterized by atonality. a·ton al·ly adv. forms of music. In their work, Vickers and Alty composed brief melodies representing various commands in the Pascal programming language, though the technique could be applied to other languages, too. For the test, the British team translated only instructions that involve making a decision about which path the program will take. To indicate the outcomes of decision commands, Alty and Vickers relied on standard features of conventional music. For instance, to represent two different processing paths, the researchers offered similar melodies in a major key for one path and in a minor key for the other. Samples can be heard online at http://computing.unn.ac.uk/staff/cgpv1/ caitlin/phd1.htm. To a programmer familiar with these motifs, a program becomes a musical score, Vickers explains. The programmer then detects bugs by noticing when the performance doesn't follow the expected musical flow. "I consider it a good step forward for that general application," comments Gregory Kramer of Portland, Ore., a pioneer and consultant in converting nonauditory information into sound. However, Eric Somers of Dutchess Community College One-third of all Dutchess County high school graduates attend Dutchess Community College. Of the more than 25,000 DCC alumni, the majority make their home in the Hudson Valley and many of them have become civic and community leaders in their towns, villages and counties. in Poughkeepsie, N.Y., questions how well the scheme would work for debugging even medium-size programs with thousands of lines of code The statements and instructions that a programmer writes when creating a program. One line of this "source code" may generate one machine instruction or several depending on the programming language. A line of code in assembly language is typically turned into one machine instruction. . Vickers agrees it would be tedious. However, he expects programmers to use other techniques first to narrow the bug search to certain stretches of code. In their test, Alty and Vickers gave eight programs to a group of computer science undergraduates and asked them to search for bugs, half the time with music and half the time without. With the musical assistance, students found about 20 percent more of the programs' bugs than they did using only conventional techniques. The researchers report their results in the December Interacting with Computers. |
|
||||||||||||||||||

al·ly adv.
Printer friendly
Cite/link
Email
Feedback
Reader Opinion