DE version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
89% Positive
Analyzed from 1229 words in the discussion.
Trending Topics
#https#bytes#sound#www#net#pouet#demo#php#prod#more

Discussion (32 Comments)Read Original on HackerNews
https://www.youtube.com/watch?v=zprSxCMlECA
https://www.pouet.net/prod.php?which=53871
https://www.youtube.com/watch?v=36BPql6Nl_U
I'm more impressed by the eerie beauty of it than the technical achievement, even if the code was orders of magnitude larger it would still be wonderful.
Of course it's not the same, but "flying through a 3D grayscale orthogonal structure" is actually possible in 64
https://www.pouet.net/prod.php?which=78044
https://en.wikipedia.org/wiki/Commodore_1541
https://en.wikipedia.org/wiki/Commodore_DOS
Apologies for the cursing, but that is the most bat shit insane demo I have ever seen. I'll just leave you with the top comment on the video: "Witches have been burnt for lesser sorcery"
Video: https://youtu.be/MvycyU-kLjg | Pouet: https://www.pouet.net/prod.php?which=106210
The 16-Byte Code:
1. The Canvas: `int 10h` primes the 40x25 text grid uniformly with ASCII 0x20 and color 0x07. This stable, uniform void is necessary to prevent the cellular automaton from shattering into static.2. The Fractal (Rule 60): If this loop used `add`, it would create a binomial prefix sum:
But substituting `add` with `xor` discards the arithmetic carry, isolating the bit-planes. This turns the math into a pure cellular automaton mapping to Wolfram's Rule 60: Visualizing Bit 1 propagation over 5 passes (X = set): 3. The Audio: Port `61h` uses Bit 1 to physically move the PC speaker cone. The Sierpinski geometry acts directly as a square-wave audio instruction: alternating bits (like P2) yield high frequencies, while sparse rows (P4) create rhythmic rests.4. The -56 Byte Step: The pointer's net movement is -56 bytes per loop. - Visuals: On an 80-byte wide grid, this offset shears the fractal diagonally into 10 evenly spaced, ascending vertical pillars. - Audio: 56 does not divide the 64KB segment evenly, requiring 8,192 steps (7 full wraps) to complete a cycle. Doubling the macro-cycle halves the fundamental frequency, dropping the audio exactly one octave.
5. Hardware Quirks: The theoretical math expects zeroed memory, but the XOR operation violently collides with the BIOS's 0x20/0x07 initialization. This mutates the pure triangles into a cascade of pseudo-random ASCII glyphs. Because it relies entirely on raw RAM states, the visual and auditory output is highly sensitive to the specific machine or emulator, turning a simple mathematical quirk into a unique audiovisual fingerprint.
In hundreds of tiny experiments, this one stuck out, just by the sound of it. When i unfolded what's left and removed "the rest" i had a hard time to grasp what's really going on. i myself didnt expect that the explanation would go this deep for just these few bytes xD
https://www.pouet.net/prod.php?which=86923
https://www.youtube.com/watch?v=iCgIQuPHb5w
Sometimes, content to size ratio wins. Other times, not so much ;)
Is this a program or a secret key that unlocks a beast? Not sure!
Very impressive what people can craft in an order of magnitude fewer bytes than this comment!
Actually, just a few days ago, i had the chance to run a modified CGA 8086 version of this on a real old piece of hardware https://youtu.be/XLrjChvJf0k
https://www.pouet.net/prod.php?which=106206 https://www.youtube.com/watch?v=OVk-iP93ZEs
If anyone is curious what the other bits do and how the PC speaker really works:
https://fd.lod.bz/rbil/ports/keyboard/p0060006f.html#table-P...
https://forum.vcfed.org/index.php?threads/pc-speak-technical...
...and I wouldn't be surprised if some chipset put more hazardous functionality in those reserved bits.