mach documentation
A small, explicit systems language. These pages are a pamphlet, not a bible: short, example-first, and focused on what the language can do.
Install
One line to the latest release. No external toolchain to set up.
Hello world
Name your entry symbol and import the runtime yourself.
Tags & sel
Tagged values, payload guards, and compile-time case reflection.
Comptime
Monomorphized generics, variadic packs, and compile-time control.
Manifest
Declare artifacts, targets, and dependencies in mach.toml.
Inline assembly
One ISA-tagged form, with clobbers inferred from the opcodes.
Secrecy
The
^ qualifier and the constant-time guarantee. Experimental.GPU shaders
Pipeline stages, descriptor bindings, and textures in the same language.
Where to go next
New to the language? Start with Hello world and the language tour. Want to see tagged values? Read Tags & sel. Want to see the compile-time system in depth? Read Variadic packs. Working close to the machine? Inline assembly and Secrecy cover the two subsystems that reach furthest down.