Talks to Watch

ASCII fluid dynamics -- IOCCC2012 endoh1.c

1.7M views · Nov 24, 2013 · 3:09 · 3 HN recommenders · 6 mentions · discussed 2018–2025

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.

Why Hacker News points people here: Commenters repeatedly point to it as an astonishing, beautiful piece of obfuscated-C code golf.

“truly a work of art”HN comment, 2023

What Hacker News said 6

Strongly recommendsyung_steezyMay 2022

“His C program which creates an approximation of fluid dynamics from any text input is insane”

Astonishing C program approximating fluid dynamics from any text input.

Full comment

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

in “An uroboros program with 100 programming languages” · view on HN
Strongly recommendsdaptaqOct 2022

“arguably more astonished when I saw it for the first time”

ASCII fluid dynamics IOCCC entry that astonished the commenter more than the quine.

Full comment

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).

in “A Ruby program that generates itself through a 128-language quine loop” · view on HN
Strongly recommends6502nerdfaceFeb 2023

“truly a work of art”

Compact C source runs full fluid sim and can take itself as input.

Full comment

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

in “2D Liquid Simulator with Cellular Automaton” · view on HN
Cites itbewuethrMay 2018

“The source [2] itself can be used as an input to the program (see video [3])”

Demo of the IOCCC ASCII fluid program using its own source as input.

Full comment

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

in “Asciinema – Record and share your terminal sessions” · view on HN
Cites ittrompMay 2024

“The IOCCC also featured a very concise fluid simulator [1] [2], which can be seen in action in this video [3].”

Shows the concise IOCCC fluid simulator running.

Full comment

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

in “Fast real time fluid simulator based on MPM algorithm” · view on HN
Cites itpwnfunctionOct 2025

“its like one of those ioccc vids”

Cited as an example of fluid simulation applied to ASCII drawings.

Full comment

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

in “Show HN: ASCII Drawing Board” · view on HN