← All projects
Project record1 mention
Originally shared on Hacker News

Boids simulation experiment with metaprogramming generators

A boids flocking simulation experiment written in Go that achieves around 8,000 agents at 60 fps on a single CPU thread. The experiment's goal is to encode optimal cache-friendly data structures into metaprogramming generators so that Claude can write a high-level DSL that generates code down to the level of these simulations.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Boids simulation experiment with metaprogramming generators

    A boids flocking simulation experiment written in Go that achieves around 8,000 agents at 60 fps on a single CPU thread. The experiment's goal is to encode optimal cache-friendly data structures into metaprogramming generators so that Claude can write a high-level DSL that generates code down to the level of these simulations.

    Posted by @coldstartops · Original source ↗

    Source text · @coldstartops · · Source ↗

    funilly enough I was also running this boids experiment a few months ago. Managed to get around 8k at 60 fps on 1 thread on my cpu, using golang. My goal for this experiment was to encode the optimal cache data structures into meta programming generators such that claude can write high level DSL and generate down to this level of simulations.