I have been thinking we should do this for code too. I still haven't had time to execute on this plan, but I think there's probably part of the answer to how to use AI as a tool is how it doesn't automatically give us the same kind of window into what it does. In verbose mode, I've caught things earlier that I wouldn't have caught until later. But even beyond that, it speaks to how we draw lines between code and data and what happens if we erase those lines. What if we applied data vis methods to code? Maybe hierarchical semantic clustering colored by class hierarchy. Not just one floating architecture diagram. But different slices of the codebase.
zX41ZdbW 7 hours ago [-]
I've also built a visualizer into ClickHouse, so we can analyze its binary: https://play.clickhouse.com/binary?user=binary - which code takes more space, what dependencies are too big, or what template instantiations are bloated.
dejobaan 10 hours ago [-]
Pretty neat. It tangentially reminds me of when we used to be able to hear HDDs clatter away, or waaaaay back when we used be able to hear EM interference from whatever was going on in a computer.
There was an episode of Cowboy Bebop, where a mechanic held a wrench against an engine cowling to see how much it vibrated (likely a real thing people do with real engines?) and, of course, the computer sounds in the Enterprise-D, along with blinkenlights.
All this seems like the same kind of "translate data into a form humans can perceive." I'm not sure what immediate value this utility has, but I like it.
andai 8 hours ago [-]
I forget where I read this (maybe PG's blog?) but I read some early 2000s startup had some kind of mechanical device that responded to website visitors, so everyone in the office could hear the traffic in realtime.
I also heard stories of professors who would know a program had a bug based on the sounds the computer was making. (Back when they were slightly slower!)
poslathian 5 hours ago [-]
I’ve heard this about mechanical electronic signage used for team dashboards 30-40 years ago.
You’d sit in the office with your back to it and the clicky clacky sounds would be going every so often when the content updated. but people would know the specific clicky clacky sound that required them to turn around and read the sign based on their job function.
I’ve also heard of day traders mapping stock tickers or other data into sound and having headphones on all day with it
emmelaich 2 hours ago [-]
I've heard of people 'walking' old hard drive cabinets by fine manipulation of the read/write heads.
yjftsjthsd-h 4 hours ago [-]
I still have a computer that produces slightly different noise (coil whine?) depending what it's doing. Fascinating behavior.
jackyinger 10 hours ago [-]
The wrench thing is real. My approach to a DIY mechanic’s stethoscope is to stick the handle of a screwdriver against my ear and the tip on whatever I want to listen to. Great for figuring out what part of the machine a noise is coming from.
andai 8 hours ago [-]
I made my own binary visualizer when I was learning C. I had a for-loop which generated a texture by just setting the pixels based on the bytes in the file.
I had two modes, monochrome (the bits) and grayscale (the bytes).
Anyway funny thing happened, I had a buffer overflow and my program ended up visualizing its own memory.
Actually I had the same error another time, I was trying to make a simple Terraria clone (like 2D Minecraft) and the terrain ended up rendering my mouse coordinates interpreted as booleans or something.
C is fun!
Jare 10 hours ago [-]
This brings back memories! In 93 I wrote something similar (simpler) for MSDOS, to inspect and extract pieces of binary files, GFV (still downloadable from the Hornet archive somewhere in here https://www.hornet.org/cgi-bin/ha_search.cgi?opt_s=5:Iguana). You could set the stride and show 1/n bytes, so it was relatively easy to find textures from game files and memory dumps of running games.
Did the same in 2015s with PHP, was so surprised to find an image inside explorer.exe file. It was an embedded BMP picture which I could see without even a picture viewer tool!
jakiestfu 6 hours ago [-]
Not exactly the same but https://runhexed.com allows you to create binary visualizations online
NoItsDanger 3 hours ago [-]
I’m waiting for one of these random pixelized images to start pulsing and spit out a glider
cowthulhu 9 hours ago [-]
Does the uniformity indicate that the files are space-inefficient, and would benefit from compression?
andai 8 hours ago [-]
Binvis has different color modes. One of them shows entropy. Compressed or encrypted data shows as very bright in the entropy mode, and repetitive data as dark.
bflesch 10 hours ago [-]
It looks neat but I have no idea how the clustering works or why uniform colors are assigned to large areas, e.g. the color blue in the pdf example.
Jare 10 hours ago [-]
open one and inspect the two ways to view it, one is horizontal scan, the other is a peano curve which leads to natural square-ish areas.
andai 8 hours ago [-]
Interesting I thought it was a hilbert curve? (I don't know much about either of those though.)
bflesch 9 hours ago [-]
I can only see the color visualization and the hex view. Maybe I can't see the curve due to lack of WebGL?
There was an episode of Cowboy Bebop, where a mechanic held a wrench against an engine cowling to see how much it vibrated (likely a real thing people do with real engines?) and, of course, the computer sounds in the Enterprise-D, along with blinkenlights.
All this seems like the same kind of "translate data into a form humans can perceive." I'm not sure what immediate value this utility has, but I like it.
I also heard stories of professors who would know a program had a bug based on the sounds the computer was making. (Back when they were slightly slower!)
You’d sit in the office with your back to it and the clicky clacky sounds would be going every so often when the content updated. but people would know the specific clicky clacky sound that required them to turn around and read the sign based on their job function.
I’ve also heard of day traders mapping stock tickers or other data into sound and having headphones on all day with it
I had two modes, monochrome (the bits) and grayscale (the bytes).
Anyway funny thing happened, I had a buffer overflow and my program ended up visualizing its own memory.
Actually I had the same error another time, I was trying to make a simple Terraria clone (like 2D Minecraft) and the terrain ended up rendering my mouse coordinates interpreted as booleans or something.
C is fun!
“All I see is blonde, brunette, redhead…”
https://youtu.be/fBDifUjNzbQ?is=7d43YcQZ8PVhFX11