7 HN users recommended this demo10 months2013–2025score 13.5
Years with an HN recommendation, 2007–2026
Held up as the landmark demoscene production and a counterpoint to software bloat.
Elevated by Rgba and TBC, the winner of the 4k intro compo at Breakpoint 2009. It is a realtime procedurally generated 3D flythrough with music, all in a 4096-byte executable.
“It demonstrated that 4k was more than sufficient for impressive effects and music” (HN, 2020)
Those who don't see anything unusual or wasteful about an 8KB+ executable whose only action is to exit and return a value are recommended to watch this demo generated in realtime by a 4KB executable: [this video] There's more here: [link] The demoscene is basically the exact opposite of mainstream software culture, and although it's focused on multimedia shows, I think some of their techniques and underlying motivation could be applied more generally... I wonder if /bin/true and /bin/false in their most simplest forms even meet the minimum "requirement for creativity" to be copyrightable, and if the reason why it has bloated significantly is so that it could be.
Realtime demo from a 4KB executable contrasts with bloat.
Release info: [link] Binary: [link] Video: [this video] Everything you see and hear is procedurally generated by the 4096 byte executable, in real time. It still blows my mind 7 years after release...
Everything is procedurally generated by a 4096-byte executable.
Obligatory link to Elevated - a 4 kilobytes animated 3D demo with music by rgba (authors of PDF in the OP) & TBC: [this video] For me, achieving something like this in 4k is just mindblowing.
Inigo Quilez, a demoscene programmer who does amazing work - of a very high technical and artistic standard, often in painfully tiny sizes - and then writes lucidly about it: [link] Here's 'Elevated' a four-kilobyte demo he did (along with others): [this video] And here's the writeup: [link]
Four-kilobyte demo by a standout demoscene programmer.
The 4k category was blown wide open in 2009 by rgba/tbc with Elevated [1] (live reactions: [2]). It demonstrated that 4k was more than sufficient for impressive effects and music -- suddenly, 64k was no longer an interesting constraint. [1]: [this video] [2]: [link]
When I want to show people what an intro is and tell them a bit about the demoscene, I usually show them the intro Elevated, which won the PC 4k compo at Breakpoint 2009. For me it really shows the talent of Iq and the other people who created it. It’s truly amazing what can be done in just 4 kilobyte! Elevated by Rgba & TBC: [this video] Iq's slides on the Elevated intro: [link] Sourcecode: [link]
Showcase of what a 4 kB intro can do, winner of Breakpoint 2009.
The maths isn't hard, but you do need a decent grasp of vectors and (optionally) 3D transformation matrices, and it's pretty opaque until you figure out the terminology. I haven't done GPU raymarching myself but I've used the same techniques on the CPU side in order to develop a whole-planet procedural renderer (in Ada, of course); the raymarching was relatively straightforward but I got horribly bogged down trying to make a volumetric atmosphere work. One resource I found really useful was Iñigo Quilez' website; in particular, his article on basic terrain raymarching explains most of the concepts: [link] (Also known as iq, he's responsible for a number of amazing demos, including the 4kB demo _Elevated_: [this video] He also appears to have written ShaderToy. Search for iq to see his stuff omfg ShaderToy lets you write shaders to produce _music_ now? [link] )
The size comparisons are also very useful, if anything to show that even the simple "non-Modern" C++ program already has quite a bit of bloat. Compilation takes 0.064 seconds, produces 8480 byte executable I am experienced with Asm so I can come up with an instinctive order-of-magnitude estimate, but even those who aren't should try to roughly estimate how many machine instructions are required to implement that code, and come to the conclusion that over 8000 bytes for three nested loops with not much in them, a comparison, some arithmetic, and a handful of library function calls seems rather excessive. Even 800 would be on the high side --- somewhere around 100-200 bytes is my estimate. Also, watch this 4k demo (everything you see and hear is generated in realtime by a 4096-byte executable): [this video]
Realtime audiovisual demo in a 4096-byte executable.
This is a great example of the point the guy is making: [link] That's 128 bytes. You could encode that as a 43 pixel RGB888 image. That's less than 7x7 pixel icon! Now as Jare mentioned in another comment, this video [this video] contains less bytes than a basic 32-bit 32x32 pixel icon. Some of the whole essence of this demoscene stuff is to work within these constraints(256 bytes, 1024 bytes, 4096 bytes, 64 kbytes, ...) to produce this kind of art . Custom virtual machines, on-fly decompression algorithms and methods, carefully crafted data and ingenious ways of data re-use are the key. It's like black magic.
Switching out of the "staticy" background for a plain gray reduced the payload size to ~20M, a savings of ~30Mb. I know this might sound somewhat obvious in retrospect, but you could've retained something similar to the original background and reduced the size significantly by generating it at runtime --- the code to create a random-looking background may only be not more than a few dozen bytes, and can be the same for multiple resolutions. For more examples of this technique, see demoscene productions --- the following video was generated by a binary of less than 4096 bytes : [this video] Source code: [link] Explanation: [link]
Example of generating content at runtime in under 4096 bytes.
I am reminded of this 4 kilobyte demo: [this video] (Source code and discussion at [link] ; explanation at [link] ) although the flight sim is a little more interesting from a technical perspective, since it's interactive and also not using the GPU to do most of the computation. Also, despite the source code being obfuscated, observe that that "external symbols" which are still visible, e.g. XDrawLine, XSetForeground, etc. already give a pretty good overview of how it does what it does --- and in general, when reverse-engineering or analysing software, inspecting where the "black box" interacts with the rest of the world is an important part of understanding it.
Comparable 4 kilobyte demo for flight sim discussion.
Video list and Hacker News comment labels from HackerTube (prompted by @karpathy), released under ODC-By 1.0, built on the open-index/hacker-news archive. Hacker News data is provided by Y Combinator; comments remain the work of their authors. Video titles, channel names and thumbnails belong to their creators and are shown via YouTube. HackerTube Watch is an unofficial edition. Data export of 2026-10-31.
15 Hacker News comments
From the HN archive; up to 20 kept per video, favoring different commenters. Recommendations first.
Read more
Read more
Read more
Citations, criticism and jokes
Read more
Read more
Read more