HackerTube
HomeLongsLikedHistoryWatch laterCategoriesPlaylistsSettings

ASCII fluid dynamics -- IOCCC2012 endoh1.c

Yusuke Endoh3 HN recommenders · recommended in 3 months, 2018-2025
YouTube
1.7M views · 12 years ago · demo · evergreen

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.

Creative coding & generative artC, C++, Rust, Go & systems languagesComputer graphics & rendering#ioccc#fluidsimulation#asciiart#c#codegolf

6 comments from Hacker News

@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

CitesView on HN
@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

CitesView on HN
@6502nerdface2023 · 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 recommendsView on HN
@daptaq2022 · 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 recommendsView on HN
@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
@bewuethr2018 · in “Asciinema – Record and share your terminal sessions”

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

CitesView on HN
How I program C2:11:32

How I program C

Eskil Steenberg
1M views • 9 years ago
Intro to C on Windows - Day 11:11:59

Intro to C on Windows - Day 1

Molly Rocket
370K views • 11 years ago
Modern C and What We Can Learn From It - Luca Sas [ ACCU 2021 ]1:05:59

Modern C and What We Can Learn From It - Luca Sas [ ACCU 2021 ]

ACCU Conference
130K views • 5 years ago
Vibe coding complex changes in Rust2:59:08

Vibe coding complex changes in Rust

Jon Gjengset
55K views • 1 year ago
Creating a Doom-style 3D engine in C18:50

Creating a Doom-style 3D engine in C

Bisqwit
991K views • 11 years ago
I Tried Turning Games Into Text18:18

I Tried Turning Games Into Text

Acerola
571K views • 2 years ago
CppCon 2019: Matt Godbolt “Path Tracing Three Ways: A Study of C++ Style”55:42

CppCon 2019: Matt Godbolt “Path Tracing Three Ways: A Study of C++ Style”

CppCon
77K views • 7 years ago
"Clojure in Unity 3D: Functional Video Game Development" by Ramsey Nasser and Tims Gardner46:22

"Clojure in Unity 3D: Functional Video Game Development" by Ramsey Nasser and Tims Gardner

Strange Loop Conference
24K views • 12 years ago
Stephan T. Lavavej “Floating-Point <charconv>: Making Your Code 10x Faster With C++17's Final Boss”1:00:17

Stephan T. Lavavej “Floating-Point <charconv>: Making Your Code 10x Faster With C++17's Final Boss”

CppCon
41K views • 7 years ago
Making a heart with Maths10:14

Making a heart with Maths

Inigo Quilez
112K views • 9 years ago
Compiling C to printable x86, to make an executable research paper25:41

Compiling C to printable x86, to make an executable research paper

suckerpinch
479K views • 9 years ago
Jonathan Blow - How to program independent games -  CSUA Speech1:15:51

Jonathan Blow - How to program independent games - CSUA Speech

Alexandre Franco
190K views • 13 years ago
Modeling Data Concurrency w/ Asynchronous I/O in Zig - RedisConf 202049:20

Modeling Data Concurrency w/ Asynchronous I/O in Zig - RedisConf 2020

Redis
11K views • 6 years ago
Functional Composition - Chris Ford39:21

Functional Composition - Chris Ford

ClojureTV
31K views • 13 years ago
Ron Pressler - Pull Push: Please stop polluting our imperative languages with pure concepts-Curry On44:43

Ron Pressler - Pull Push: Please stop polluting our imperative languages with pure concepts-Curry On

Curry On!
25K views • 11 years ago
CppCon 2015: Timur Doumler “C++ in the Audio Industry”1:03:44

CppCon 2015: Timur Doumler “C++ in the Audio Industry”

CppCon
131K views • 11 years ago
GuiltyGearXrd's Art Style : The X Factor Between 2D and 3D58:59

GuiltyGearXrd's Art Style : The X Factor Between 2D and 3D

GDC Festival of Gaming
710K views • 11 years ago
CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”1:19:52

CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”

CppCon
264K views • 10 years ago
2021: Year of the Linux Gaming Desktop - Andrew Kelley42:38

2021: Year of the Linux Gaming Desktop - Andrew Kelley

Zig SHOWTIME
15K views • 5 years ago
"Liberating the Smalltalk lurking in C and Unix" by Stephen Kell40:56

"Liberating the Smalltalk lurking in C and Unix" by Stephen Kell

Strange Loop Conference
25K views • 12 years ago