Runtime configuration

The runtime: mapping in config.yaml bakes defaults into the executable. These settings are separate from cfg.env, .radenv and the existing memory: configuration. Library imports do not install their own settings. Defaults are installed before namespace initializers run.

runtime:
  log: info
  logDest: stderr
  shutdownMs: 5000
  cooperativeBudget: 0
  handleReport: false
Key Environment override Default / behavior
log RADLANG_LOG info; off, error, warn, info, debug, or trace. A comma-separated subsystem filter can follow the level.
logDest RADLANG_LOG_DEST stderr; platform uses the mobile platform logger, and both selects both destinations.
shutdownMs RADLANG_SHUTDOWN_MS 5000 ms; one deadline for tracked scheduler work and pool joins. Zero skips pending async work.
cooperativeBudget RADLANG_COOPERATIVE_BUDGET 0, disabled; a positive count adds scheduler passes at async boundaries.
handleReport RADLANG_HANDLE_REPORT false; report resources still open at normal shutdown. Does not enable automatic closing.

shutdownMs and cooperativeBudget accept integers from 0 through 2147483647. The runtime also centralizes existing database, HTTP, scheduler and memory settings. Their subsystem defaults and compatibility policies remain in effect. The authoritative setting table is compiler/runtime/core/rt_config.c.

Where supported, an OS environment variable overrides its baked default. Settings are read lazily and usually cached by their subsystem; set environment overrides before process startup. Runtime settings are not .radenv keys. Unknown keys, duplicate keys and invalid value types are compile errors.

See async scheduling, process lifecycle, memory settings and project configuration.