ASCII fluid dynamics -- IOCCC2012 endoh1.c
Yusuke Endoh3 HN recommenders · recommended in 3 months, 2018–2025
demo · general · evergreen · 2018–2025 on HN
A 3-minute demo of a tiny IOCCC 2012 winning C program that simulates fluid dynamics in an 80x25 terminal, using any text (including its own source) as input. The video shows the simulation running to Handel's Water Music.
Commenters repeatedly point to it as an astonishing, beautiful piece of obfuscated-C code golf.
Up next
17 mo on HN8 Bit & '8 Bitish' Graphics-Outside the Box
GDC Festival of Gaming
13 HN recommender · 2018–2026
10 mo on HNelevated by Rgba & TBC | 4k intro (FullHD 1080p demoscene demo)
Demoscene High-Quality Videos (Annikras)
7 HN recommender · 2013–2025
10 mo on HNPainting a Character with Maths
Inigo Quilez
13 HN recommender · 2021–2025
6 mo on HNThe Art of Code - Dylan Beattie
NDC Conferences
6 HN recommender · 2020–2024
6 mo on HNFunctional Composition - Chris Ford
ClojureTV
6 HN recommender · 2013–2023
7 mo on HNI painted a Landscape with Mathematics
Inigo Quilez
7 HN recommender · 2022–2025
7 mo on HNElevated by RGBA and TBC
BUTTONTANG
7 HN recommender · 2009–2025
6 mo on HNDarius Kazemi, Tiny Subversions - XOXO Festival (2014)
XOXO Festival
7 HN recommender · 2015–2024
6 mo on HNRiftSketch: Live coding in VR with the Oculus Rift, Firefox WebVR, JavaScript and Three.js
Brian Peiris
5 HN recommender · 2014–2020
6 mo on HNMoleman 2 - Demoscene - The Art of the Algorithms (2012)
Vakondok (Moleman)
6 HN recommender · 2015–2023
5 mo on HNCoding Adventure: Ant and Slime Simulations
Sebastian Lague
6 HN recommender · 2021–2024
6 mo on HNRobust-first computing: Demon Horde Sort (full version)
Dave Ackley
3 HN recommender · 2015–2023
6 comments from Hacker News
My favorite 2D liquid simulator is this IOCCC2012 submission [1]... simply astonishing. That is the source file shown at the beginning of the video... it compiles without warnings, runs a full blown fluid dynamics sim with surface tension and everything, can take itself as its own input... truly a work of art. [1] ▶ this video
This was written by Yusuke Endoh, who also wrote this submission to the IOCCC that I remember being arguably more astonished when I saw it for the first time: ▶ this video (ASCII fluid dynamics).
Yusuke Endoh is a god amongst men. His C program which creates an approximation of fluid dynamics from any text input is insane - ▶ this video
is this opensource? adding a cool fluid simulation to whatever you draw would be really fun. its like one of those ioccc vids - ▶ this video
The IOCCC also featured a very concise fluid simulator [1] [2], which can be seen in action in this video [3]. [1] link [2] link [3] ▶ this video
These remind me of the ASCII fluid submission [0] at IOCCC 2012 [1] by Yusuke Endoh. The source [2] itself can be used as an input to the program (see video [3]), and he also made a colour version [4]. [0]: link [1]: link [2]: link [3]: ▶ this video [4]: link