aeaether
$docs / standard library

Aether Standard Library Guide

The standard library is documented in one place: the Standard Library Reference. It opens with an index of every module, generated from the source and checked by make check-docs, and its examples are compiled and run by the same check. This page is a way into it by task.

Start with Using the Standard Library for the three conventions every module follows: errors come back as values, the C layer is exported alongside the wrappers, and whatever you create, you release. Then see Platform support for what changes on Windows, WASI and the browser.

By task

To...Go to
Hold values in a list, map, set or queueCollections
Build, split, search or format textStrings, Regular expressions
Read and write files, walk directories, join pathsFile System
Print, read standard input, set environment variablesI/O
Parse or produce JSONJSON
Use YAML, XML, MessagePack, CBOR or CSVOther structured-data formats
Hash, sign, encrypt, or encode Base64Cryptography, Encodings
Compress dataCompression
Make HTTP requests or serve HTTPHTTP
Open TCP connectionsTCP
Run another programRunning programs
Read command-line argumentsCommand-line arguments
Tell the time, or measure elapsed timeDates and times
LogLogging
Do arithmetic beyond the operatorsMath
Generate unique idsIdentifiers
Localise messages and pluralsInternationalisation
Run work concurrentlyConcurrency
Control allocation, or read raw memoryMemory
Confine what a program can reachSandboxing
Run as a library inside another applicationEmbedding in a host

A module this table does not name is in the reference's index, which links each one to its guide and source.