Standard Library
Import modules by name with use. A module's examples are complete programs unless the example identifies a file, executable or other resource to prepare first. Durations are in seconds unless a signature states another unit. A bytes parameter means a packed u8 array unless its entry explicitly also accepts text. A text parameter accepts characters and strings unless a narrower representation is stated. Functions return null on success if specified in the reference. Error descriptions supplement the usual arity, type and allocation checks. Native resource handles belong to the VM that acquired them.
math
Calculate angles, powers, roots, rounding, and numeric limits.
text
Transform, split, search, and normalize Unicode text.
collection
Sort, map, reduce, and combine arrays, dictionaries, and tables.
binary
Work with byte buffers, packed layouts, byte order, and encodings.
json
Read JSON into Atom values and serialize Atom values as JSON.
random
Generate reproducible random values, pick items, or shuffle collections.
time
Measure time and convert between timestamps and text.
fs
Open files, inspect filesystem entries, and manage paths on disk.
path
Join, split, and normalize filesystem paths.
os
Read program arguments and environment variables or interact with the OS.
task
Resume coroutines, start background work, and communicate over channels.
net
Use TCP, UDP, and supported TLS sockets for lower-level network I/O.
http
Make HTTP requests or serve requests through a listener.
crypto
Hash data, authenticate messages, derive keys, and encrypt or decrypt bytes.
runtime
Inspect runtime details, memory, and VM limits.
ffi
Call functions in C libraries and pass native values across the boundary.
archive
Compress data and create, inspect, or extract ZIP archives.
sqlite
Open a SQLite database, run SQL, and manage transactions.
resource
Read assets packaged into an executable or registered by an embedder.