{"id":25857651,"url":"https://github.com/jensrantil/steps","last_synced_at":"2025-03-01T19:17:28.879Z","repository":{"id":273385930,"uuid":"919538352","full_name":"JensRantil/steps","owner":"JensRantil","description":"A discrete event simulator in Go.","archived":false,"fork":false,"pushed_at":"2025-02-14T22:17:29.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T22:29:55.120Z","etag":null,"topics":["discrete-event-simulation","golang","simulation"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/JensRantil/steps","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JensRantil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-20T15:19:28.000Z","updated_at":"2025-02-14T22:28:24.000Z","dependencies_parsed_at":"2025-02-14T22:29:58.962Z","dependency_job_id":"53fbdf4a-130f-4289-8ed8-7b7d220fd1b7","html_url":"https://github.com/JensRantil/steps","commit_stats":null,"previous_names":["jensrantil/discrete-events","jensrantil/steps"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JensRantil%2Fsteps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JensRantil%2Fsteps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JensRantil%2Fsteps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JensRantil%2Fsteps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JensRantil","download_url":"https://codeload.github.com/JensRantil/steps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241411483,"owners_count":19958753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discrete-event-simulation","golang","simulation"],"created_at":"2025-03-01T19:17:28.132Z","updated_at":"2025-03-01T19:17:28.810Z","avatar_url":"https://github.com/JensRantil.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# steps\n[![GoDoc](https://godoc.org/github.com/JensRantil/steps?status.svg)](https://pkg.go.dev/github.com/JensRantil/steps)\n\n\"Steps\" is a simple discrete event simulator in Go. It's useful for simulations of systems that are driven by events, such as queues, workflows, etc.\n\nSee [the documentation](https://pkg.go.dev/github.com/JensRantil/steps) for API and examples.\n\n## Example\n\n```go\nsim := NewSimulation()\n\nsim.Schedule(Event{When: sim.Now.Add(10 * time.Second), Action: func(s *Simulation) {\n  fmt.Println(\"Actor 1:\", sim.Now)\n}})\nsim.Schedule(Event{When: sim.Now.Add(time.Second), Action: func(s *Simulation) {\n  fmt.Println(\"Actor 2:\", sim.Now)\n}})\n\nsim.RunUntilDone()\n\n// Output:\n// Actor 2: 0001-01-01 00:00:01 +0000 UTC\n// Actor 1: 0001-01-01 00:00:10 +0000 UTC\n```\n\nSee [here](https://pkg.go.dev/github.com/JensRantil/steps#pkg-examples) for more examples.\n\n## Why write yet another discrete event simulator?\n\n * [simgo](https://github.com/fschuetz04/simgo) was too slow for my needs. I needed to run simulations in an inner loop.\n * [godes](https://github.com/agoussia/godes) was too heavyweight and complex for my needs. I just needed a simple performant scheduler (without any goroutines).\n\n## Contact \u0026 support\n\nThis library was coded up by [Jens Rantil](https://jensrantil.github.io). Do not hesitate to contact [Sweet Potato Tech](https://jensrantil.github.io/pages/services/) for support.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjensrantil%2Fsteps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjensrantil%2Fsteps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjensrantil%2Fsteps/lists"}