System¶
Talk to the machine your program runs on: time, randomness, logging, tests, child processes, and command-line arguments.
- RandomRepeatable random numbers for tests, games, and shuffling.
- DateTimeDates, times, time zones, durations, and stopwatches.
- LoggingRecord events with named loggers, levels, and handlers.
- TestingWrite
@testfunctions with assertions. - DebugInspect memory use while developing.
- ProcessLaunch and talk to child processes.
- CLI argumentsDefine commands and parse command-line arguments.
- Application utilitiesUUIDs, CSV, configuration files, and temporary resources.
- Raw sockets and compressionTCP and UDP sockets, plus gzip and deflate streams.
- Windows and game inputOpen a window or use a browser canvas, then read keyboard, mouse and gamepad input once per frame.
- Audio playback and FFTPlay audio, select outputs, and inspect PCM and frequency data.