ASCII fluid dynamics -- IOCCC2012 endoh1.c
Yusuke Endoh3 HN recommenders · 2018–2025
1.7M views · demo · evergreen · Uploaded 2013-11-24
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.
1:25:348 Bit & '8 Bitish' Graphics-Outside the Box
GDC Festival of Gaming
24:26The Beauty of Bézier Curves
Freya Holmér
1:13:50The Continuity of Splines
Freya Holmér
1:12:27CppCon 2015: Andrei Alexandrescu “std::allocator...”
CppCon
51:18Lexical Scanning in Go - Rob Pike
GoogleFOSSSydney
3:36elevated by Rgba & TBC | 4k intro (FullHD 1080p demoscene demo)
Demoscene High-Quality Videos (Annikras)
24:46Painting a Character with Maths
Inigo Quilez
59:34CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step”
CppCon
6 comments from Hacker News
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]: [VIDEO] [4]: [LINK]
Yusuke Endoh is a god amongst men. His C program which creates an approximation of fluid dynamics from any text input is insane - [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: [VIDEO] (ASCII fluid dynamics).
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] [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] [VIDEO]
is this opensource? adding a cool fluid simulation to whatever you draw would be really fun. its like one of those ioccc vids - [VIDEO]