Skip to content
HHackerTube.videoSurprise me

Coding Adventure: Ant and Slime Simulations

Coding Adventure: Ant and Slime Simulations on HackerTube: recommended by 6 Hacker News commenters across 5 separate months, 2021–2024.

Sebastian Lague

demo · intermediate · evergreen

Open on YouTube

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

Why Hacker News recommends it

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

people recommended it
6
separate months
5
strong recommendations
3
discussed on HN
2021–2024
“reminded how beautiful coding can be”
— Risord, Aug 2024, in “The secret inside One Million Checkboxes”

What HN commenters said

6 Hacker News comments link this video. Each one links back to its thread.

RisordAug 2024Strongly recommends

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 ]

in “The secret inside One Million Checkboxes” · View on HN

UdoMay 2023Strongly recommends

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

in “Ze Frank True Facts: The Smartest Slime” · View on HN

ehsankiaApr 2021Strongly recommends

Speaking of ant and slime simulation, this recent video Coding Adventures video was pretty mind blowing: ▶ this video (Especially part 2 starting around 10m in).

in “Time flies in Google Earth’s biggest update in years” · View on HN

NeztebMay 2023Recommends

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]

in “Orb Farm” · View on HN

Berg0X00Jun 2021Recommends

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.

in “Compute Shader 101 [video]” · View on HN

theossuaryMar 2021Recommends

This reminds me of a coding adventure YT video that replicates slime molds in Unity, look at the end to see some high res videos of it - ▶ this video

in “Show HN: Play with Shaders Inspired by Slime Mold” · View on HN

Topics & tags

Creative coding & generative artComputer graphics & renderingslime moldant simulationcompute shadersunityemergent behavior