Frame from ASCII fluid dynamics -- IOCCC2012 endoh1.c Plays with YouTube's privacy-enhanced embed

ASCII fluid dynamics -- IOCCC2012 endoh1.c

Open on YouTube First HN thread

3 HN users recommended this demo in 3 different months between 2018 and 2025.

2007–2026
3 strong recommendations 3 citations HackerTube score 4.5

Commenters repeatedly point to it as an astonishing, beautiful piece of obfuscated-C code golf.

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.

Pull quote: “truly a work of art” (HN, 2023)

Also tagged: obfuscated c programming, ioccc, fluid simulation, ascii art, c, code golf

What Hacker News said

6 labeled comments from the HN archive; up to 20 are kept per video, favoring different commenters. Each one links back to the original thread.

Strongly recommends 6502nerdface February 2023 under 2D Liquid Simulator with Cellular Automaton
Compact C source runs full fluid sim and can take itself as input.
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]

Citations, criticism and jokes

Demo of the IOCCC ASCII fluid program using its own source as input.
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]
Cites it pwnfunction October 2025 under Show HN: ASCII Drawing Board
Cited as an example of fluid simulation applied to ASCII drawings.
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]

Keyboard shortcuts

/
Search
j k
Next / previous video in a list
Enter
Open the focused video
l
Like (on a video page)
w
Watch later (on a video page)
?
This help
Esc
Close