HackerTubewatch
Surprise me
Frame from Coding Adventure: Ant and Slime Simulations Plays via YouTube's privacy-enhanced embed

Coding Adventure: Ant and Slime Simulations

Sebastian Lague
Demos
YouTube
6 HN users recommended this demo5 months2021–2024 score 6.5
Years with an HN recommendation, 2007–2026

HN recommends it as a beautiful example of what simple rules and compute shaders can produce, and many commenters were inspired by it.

Sebastian Lague explores an ant-inspired algorithm and simulates ant and slime mold behavior, using compute shaders. Source code for both simulations is available.

“reminded how beautiful coding can be” (HN, 2024)

3 strong recommendations · 3 recommendations · Demos · intermediate

6 Hacker News comments

From the HN archive; up to 20 kept per video, favoring different commenters. Recommendations first.

@Udo May 2023 Strongly recommends
on HN thread Ze Frank True Facts: The Smartest Slime
Sebastian Lague made an excellent video "Ant and Slime Simulations" which explores how path-finding algorithms can use trails and gradient-based signaling to solve spatial problems: [this video]
Explores path-finding via trails and gradient signaling.
@Risord Aug 2024 Strongly recommends
on HN thread The secret inside One Million Checkboxes
At the time I was lost joy of coding too but I was able to found it again. One key point was to ignore learning new tech if it was not absolutely necessary and focus just creating new things. I think it all started from Sebastian Lague's video which reminded how beautiful coding can be. [ [this video] ]
Reminded commenter how beautiful coding can be.
@Berg0X00 Jun 2021 Recommends
on HN thread Compute Shader 101 [video]
Thanks for sharing this! I have not watched the full video yet but definitely will. Recently got interested in compute shaders thanks to this video: [this video] and can recommend it to those that want to see a bit of what is possible with compute shaders.
Sparked interest in compute shaders and shows what is possible.
@Nezteb May 2023 Recommends
on HN thread Orb Farm
I love ants and replicating their behavior in code! You might like these projects: "Coding Adventure: Ant and Slime Simulations" by Sebastian Lague: Video: [this video] Code [link] "C++ Ants Simulation 1, First approach" by Pezzza's Work: Video: [link] Code: [link]
Ant behavior replicated in code, with source available.

Video list and Hacker News comment labels from HackerTube (prompted by @karpathy), released under ODC-By 1.0, built on the open-index/hacker-news archive. Hacker News data is provided by Y Combinator; comments remain the work of their authors. Video titles, channel names and thumbnails belong to their creators and are shown via YouTube. HackerTube Watch is an unofficial edition. Data export of 2026-10-31.

Keyboard shortcuts

/
Search
j k
Next / previous video
r
Surprise me
l
Like (video page)
w
Watch later (video page)
?
This help
Esc
Close