AXIOM Axiom Documentation
UABLACKGRAYWHITE
Axiom · dark

Standard modules

The standard library is treated as a FALL-like set of small deterministic modules, not a giant magical runtime.

ModulePurposeRule
corebasic types, result, option, viewno OS
textUTF, parsing, formattingtwo-pass output
matharithmetic and geometrydeterministic operations
math.bitbit ops, CRC, target opsunsupported capability = compile error
iostream abstractionsSelf Type
fsfiles and pathsOS capability
netsockets and protocolsresumable operations
timemonotonic/wall clockexplicit source
syncatomics, mutex, channel, tasksemantic happens-before
membundle, two-pass, regionsno general heap
targettarget capabilitiescompile-time info
hardwareMMIO/GPIO/SPI/I²Cprivileged boundary

Bit operations are functions

Target-aware stdlibAxiom
1import math.bit23crc_packet(view<const u8> data) -> u32:4    RETURN math.bit.crc32(data)
1

Bit functionality is imported explicitly.

4

A hardware-only operation gives a target capability error when unsupported instead of silently emulating.

Formatting without hidden allocation

Deterministic text outputAxiom
1make_log(u64 id, text state) -> two_pass<text>:2    RETURN text.format("job {}: {}", id, state)
1

Formatting returns a planned operation.

2

The caller can ask for size, provide storage, then execute it.