mirai
Minimalist Async Evaluation Framework for R. Contribute to r-lib/mirai development by creating an account on GitHub.
mirai removed its dispatcher process and added memory backpressure to the queue.
◆Recent moves
- 25d ago
Map collection and daemon lifecycle fixes
A fix-heavy release concentrated on mirai_map() collection and daemon lifecycle: non-mirai errorValues now produce informative errors, .flat no longer ignores an error in the first element, and daemons restore options modified during evaluation. Dispatch overhead drops again for mirai_map() and everywhere().
View source ↗ - 2mo ago
Agent skill ships in-package; HTTP headers take over auth
Ships mirai's agent skill inside the installed package where btw and packages following the same convention pick it up automatically, and makes headers the primary way to supply HTTP authentication in http_config(). Also fixes load-balanced parallel functions hanging when tasks outnumber nodes.
View source ↗ - 3mo ago
Dispatcher becomes a thread, and the queue gains a memory budget
⚡ SPARKThe dispatcher becomes a thread rather than a separate process, and queued task payloads gain an opt-in memory budget with try_mirai() as the non-blocking path when it is exhausted. It changes both the process model and what happens when a producer outruns its workers.
View source ↗ - 5mo ago
Parallel RNG seeding leaves experimental status
Takes the reproducible parallel RNG seed argument out of experimental status and works around Posit Workbench authentication cases. No change to the task path.
View source ↗ - 6mo ago
Remote daemons over HTTP, and a C dispatcher loop
Adds http_config() for launching remote daemons through HTTP APIs, auto-configured for Posit Workbench, and moves the dispatcher loop entirely into C inside nanonext for roughly half the previous overhead. race_mirai() changes to return an index rather than the list, a breaking but small change.
View source ↗ - 8mo ago
Telemetry span timing and daemon-switch fix
Corrects when OpenTelemetry daemon-connect spans are recorded, fixes an unresolved-mirai bug when switching daemon types mid-session, and makes mirai_map() return invisibly.
View source ↗