HackerTube

ASCII fluid dynamics -- IOCCC2012 endoh1.c

Yusuke Endoh3 HN recommenders · recommended in 3 months, 2018–2025
YouTube
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.

6 comments from Hacker News

@6502nerdface2023-02 · in “2D Liquid Simulator with Cellular Automaton”

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

Strongly recommends View on HN
@daptaq2022-10 · in “A Ruby program that generates itself through a 128-language quine loop”

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

Strongly recommends View on HN
@yung_steezy2022-05 · in “An uroboros program with 100 programming languages”

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

Strongly recommends View on HN
@pwnfunction2025-10 · in “Show HN: ASCII Drawing Board”

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

@tromp2024-05 · in “Fast real time fluid simulator based on MPM algorithm”

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