Bees Template

A swarm coordination example showcasing Duso’s concurrency and state management:

Running

duso bees.du

The orchestrator spawns 10 worker bees, each doing 5 units of work and updating shared counters via the datastore. After 2 seconds, it reports results.

How It Works

  1. main.du - Initializes the swarm datastore and spawns workers
  2. worker.du - Each bee increments shared counters atomically
  3. Counters are updated safely without locks or shared memory

Learn More