Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
The Simulant Hello World simulates a group of traders making concurrent trades of some resource. To keep the example small, the model is pared to almost nothing: the traders have only a single balance that can go up or down as they give or receive resources from other traders.
The key files in the example are:
- The application being tested: code and schema
- The simulation code and schema
- A REPL session that demonstrates the entire sim lifecycle
A key benefit of simulation is decoupling activities over time: modeling, test data generation, simulation, and validation can all happen at separate times. The REPL session shows all this activity scaled down and happening in a single process. This scaling down makes it easy to develop simulations, but don't lose sight of the real power that comes from scaling back up.