TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Auditory console logging: identifying bugs by listening to code execution

59 pointsby electric_museabout 3 years ago

13 comments

ramesh31about 3 years ago
This touches on something I&#x27;ve thought about for years, which is what I refer to as &quot;synesthetic computing&quot; for lack of a better term. It&#x27;s the idea that as humans, we are innately endowed with these <i>incredible</i> abilities that no computer can possibly match, like our ability to understand social situations and hierarchies, and our ability to process and understand complex emotions. We could potentially unlock whole new models of computation by leveraging them. Imagine a data visualization environment where instead of just looking at rows of spreadsheet data, each data point had a &quot;personality&quot;, and was allowed to form &quot;social groups&quot; autonomously with other data points. Those social groups could then be analyzed in the same way we do with actual human social interactions. Their reasons for grouping could be looked at emotionally and understood through intuition. And those intuitions could even be fed into machine learning models as a heuristic for hyperparameter optimization.
评论 #31436992 未加载
评论 #31438270 未加载
bmogenabout 3 years ago
Similar idea in neuroscience - listen to neural spikes during task&#x2F;training&#x2F;experiment to help troubleshoot experiment setup and get a secondary source of info before visualizing data[0].<p>0. Sonifying and Visualizing Neural Data <a href="https:&#x2F;&#x2F;ccrma.stanford.edu&#x2F;~mindyc&#x2F;256a&#x2F;final&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ccrma.stanford.edu&#x2F;~mindyc&#x2F;256a&#x2F;final&#x2F;</a>
评论 #31435886 未加载
seclorum_wienabout 3 years ago
Back in the day, I&#x27;d tee a supposedly quiet log file to &#x2F;dev&#x2F;snd0 on my workstation so I could take a nap under the desk and be sure to be woken up when the particles hit the fabric, so to speak..
评论 #31436922 未加载
mark_undoioabout 3 years ago
At the National Museum of Computing in the UK (<a href="https:&#x2F;&#x2F;www.tnmoc.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.tnmoc.org&#x2F;</a>) I saw an old minicomputer where, if I recall correctly, the low order bit(s?) of the program counter had been hooked up to a speaker for some very simple auditory debugging.<p>My memory is that e.g. infinite loops would be easy to identify as a persistent tone, etc as repeated small changes to the program counter happened.
malfistabout 3 years ago
This isn&#x27;t too far from using a logic probe to test hardware circuit. It has a tone for LOW and a tone for HIGH, and you can listen to what state pins are in, even if they&#x27;re switching faster than your eyes can see the LED flicker, you can hear the pitch changes.
justinlloydabout 3 years ago
It has been around for a while as far as I know, I was introduced to the concept back in the &#x27;80s. It was called &quot;cat belling.&quot; Memory leaks and memory pressure, frame rate drops (it was especially useful for that), texture loads &amp; swaps, game AI processing. We used it for determing if the game was executing correctly by how often it passed certain check points in the code. Also tracking the number of sprites in play vs the number on-screen. You could listen for the rhythm of the various sections of the code, in what was to most people, a cacophony of noise.<p>After thought: I should probably try and work some of that concept in to my next music track release.
paulryanrogersabout 3 years ago
There was a rumor about a place that configured OS alert sounds as orchestra instruments. So that as folks were working it would sound like an orchestra tuning up. Instead of lots of random alert tones.
akomtuabout 3 years ago
I did similar experiments longbtine ago, but wasn&#x27;t satisfied with results. Still, I believe this idea has great future if done right.<p>One principle I was experimenting with was &quot;related events should create related sounds.&quot; A particular case is hierarchical events, like parent-child operations or requests, that should create &quot;hierarchical sounds&quot; that are octaves apart. For example, the parent request produces note A4, so its child request should be A5. Some cleverness needed to express different types of requests with different, but related sounds. Errors should be clearly audible too.<p>Real life applications need to work with huge amounts of data: so you could hear a lot in a few seconds. I recommend you to watch a movie about a airplane company investigating a crash by listening to recorded noises: a professional listener gets to hear a lot of insights, and gets subsequently killed for that (forgot the movie name).<p>Also, think of a huge file with logs: requests, errors, and all sorts of garbage in it. A few millions of records. How do you hear it in 1 minute and get something useful out of it?<p>Another association is dial-up modems from the 90s: those would take minutes to connect to the internet, &quot;logging&quot; their progress to speakers, and with some experience, you could distinguish diffrent stages of connection or errors.
nybble41about 3 years ago
The article says each operation gets a unique note, but I wonder how the notes were selected? It would be interesting to apply some musical theory to the process so that, for example, operations which normally run together form pleasing cords, while warning or errors appear more discordant. One could also experiment with using different voices&#x2F;instruments in addition to plain notes.
评论 #31439956 未加载
lunatunaabout 3 years ago
Love the idea of bringing the other senses into help. Check out ye olden Peep [0]. I can’t imagine what it would sound like now with modern volumes of logging.<p>0 - <a href="https:&#x2F;&#x2F;sourceforge.net&#x2F;projects&#x2F;peep&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sourceforge.net&#x2F;projects&#x2F;peep&#x2F;</a> And <a href="https:&#x2F;&#x2F;www.usenix.org&#x2F;legacy&#x2F;publications&#x2F;library&#x2F;proceedings&#x2F;lisa2000&#x2F;full_papers&#x2F;gilfix&#x2F;gilfix_html&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;www.usenix.org&#x2F;legacy&#x2F;publications&#x2F;library&#x2F;proceedin...</a>
convolvatronabout 3 years ago
came here for &#x27;lights on the cm2&#x27; and was disappointed. you could in fact indentify the application and stage of computation by the patterns. it was sometimes useful in debugging, not that you got any real information, but if it didn&#x27;t look right you might was well stop and look further instead of waiting 20 minutes for it to finish.
zanethomasabout 3 years ago
My dad used a transistor radio in a similar fashion.
polishedbadassabout 3 years ago
This is such a fascinating concept!