r/programming • u/Hell__Mood • May 22 '26
16 bytes of code that turn Sierpinski waves into Matrix rain
https://hellmood.111mb.de//wake_up_16b_writeup.htmlHey babe, stop what you're doing, HellMood dropped another WriteUp xD
Jokes aside, this is an in depth explanation of the underlying math that allow 16 bytes of x86 code to produce a visual textmode effect and music at the same time. "MiragePT", a demo scener, let the thing run on a real old 286 system with MDA Hercules graphics and it ran there as well. Also included some background information that i was asked for. Since i have done this for so many years i might have left out details you might find interesting. In that case, please leave a comment and i'll work that in.
Have fun reading!
15
6
u/jesuslop May 22 '26
wait, both rythm and melodic patterns come out of Sierpinski triangle!? This is sick van-Gogh level.
11
3
u/NewPhoneNewSubs May 26 '26
Jumping into the middle of instructions is my favourite obfuscation. Cool to see it used for golf. Maybe it's well known there, but new to me.
2
u/the_gnarts May 22 '26
Mind blowing work, best thing I’ve read (and seen, and heard) all week! I’m in awe at your skills, man!
2
u/the-15th-standard May 23 '26
Wow! This is absolutely mindblowing. And only 16 bytes! Who would have thought! Thanks for the write-up. A really nice thing about the small size is that we can hope to sit down and understand the whole thing in a weekend. Great post for the weekend.
2
3
2
2
u/bureX May 23 '26
In the era of AI slop, I really missed this part of programming. I’m smiling along as I’m reading this!
1
1
1
7
u/vancha113 May 22 '26
Edit, yes, this is the same one I think i read about a week ago! There's some cool stuff in there but the math part doesn't seem to make much sense.