Atmos is a programming library for Lua that reconciles Structured Concurrency with Event-Driven Programming

$ luarocks install atmos

Atmos is a programming library for Lua that reconciles Structured Concurrency and Event-Driven Programming, extending classical structured programming with two main functionalities:

* Structured Deterministic Concurrency:
- A `task` primitive with deterministic scheduling provides predictable behavior and safe abortion.
- Structured primitives compose concurrent tasks with lexical scope (e.g., `watching`, `every`, `par_or`).
- A `tasks` container primitive holds attached tasks and control their lifecycle.

* Event Signaling Mechanisms:
- An `await` primitive suspends a task and wait for events.
- An `emit` primitive signals events and awake awaiting tasks.

Atmos is inspired by synchronous programming languages like Céu and Esterel.

Versions

0.6-256 days ago19 downloads
0.5-1113 days ago35 downloads
0.4-2179 days ago11 downloads
0.4-1179 days ago3 downloads
0.3-3219 days ago13 downloads
0.3-2226 days ago5 downloads
0.3-1231 days ago2 downloads
0.2.1-1278 days ago16 downloads
0.2-3289 days ago(revision: 2)2 downloads
0.2-2291 days ago3 downloads
0.1-1320 days ago(revision: 12)19 downloads

Dependencies

f-streams ~> 0.2
lua >= 5.4

Dependency for

atmos-env-iup, atmos-env-pico, atmos-env-sdl, atmos-env-socket, atmos-lang

Manifests