HackerTube.dev

Coding Adventure: Ant and Slime Simulations

Sebastian Lague · 2.2M views · 2021-03-25 · 17:54

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

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

On Hacker News

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

Recommended by 6 HN people across 5 months · HN mentions 2021–2024

Topics

Search by tags

What people said

Risord · 2024-08 · Strong recommendation

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. [ [VIDEO] ]

Read the original HN comment ↗
Udo · 2023-05 · Strong recommendation

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: [VIDEO]

Read the original HN comment ↗
ehsankia · 2021-04 · Strong recommendation

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

Read the original HN comment ↗

Sources

Video by Sebastian Lague, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources