ASCII fluid dynamics -- IOCCC2012 endoh1.c

1.7M views · 12 years ago · demo · evergreen

A video of Yusuke Endoh's winning entry to the 2012 International Obfuscated C Code Contest: a tiny C program that turns its own source text into a running fluid simulation rendered in ASCII. The source file shown at the start is the program, and it can be fed to itself as input.

HN keeps pointing to it as the most astonishing piece of code-as-art, a full fluid sim in a few lines of obfuscated C.

“truly a work of art”

14 comments from Hacker News

6
@6502nerdface2023 · in “2D Liquid Simulator with Cellular Automaton (2017)”
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 recommendsView on HN
y
@yung_steezy2022 · 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 recommendsView on HN
m
@mcmoor2023 · in “ASCII Fluid Dynamics – IOCCC 2012 [video]”
Submitted the video to Hacker News.
RecommendsView on HN
_
@_k9eq2022 · 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).
RecommendsView on HN
w
@whack2019 · in “ASCII fluid dynamics – A tiny fluid simulator that fits in 80x25 terminal”
Submitted the video to Hacker News.
RecommendsView on HN
C
@ComputerGuru2019 · in “IOCC ASCII fluid dynamics render”
Submitted the video to Hacker News.
RecommendsView on HN
t
@tambourine_man2015 · in “ASCII fluid dynamics (2013) [video]”
Submitted the video to Hacker News.
RecommendsView on HN
S
@Sukotto2013 · in “ASCII fluid dynamics -- International Obfuscated C Code Contest 2012”
Submitted the video to Hacker News.
RecommendsView on HN
s
@sdogruyol2013 · in “ASCII fluid dynamics”
Submitted the video to Hacker News.
RecommendsView on HN
p
@pwnfunction2025 · 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
t
@tromp2024 · 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
b
@basementcat2023 · in “Quine Relay – An uroboros program with 100 programming languages”
The author has submitted several winning entries to the IOCCC. ▶ this video link link