Vex capability map
Vex combines application programming, explicit resource ownership, concurrency, compile-time programming and data-parallel computation. This map connects each part of the language to a guide, reference or complete example. Start with the example collection when you prefer to learn through a task.
Language and data modeling
| Capability | What you can express | Read next |
|---|---|---|
| Bindings, expressions and control flow | Immutable values, explicit mutation, conditions, loops and ranges | Syntax, control flow, loops |
| Functions and callable values | Named functions, overloads, closures and higher-order interfaces | Functions, closures, function types |
| Numeric and textual values | Explicit integer/float widths, booleans, characters, strings and complex numbers | Primitives, strings, complex |
| Structured data | Structs, tuples, arrays, enums, unions and pattern matching | Structs, enums, patterns, unions |
| Reusable interfaces | Generic types/functions, contracts, associated types and receiver methods | Generics, contracts, methods |
| Policies and operators | Reusable field-metadata policies, custom operator contracts and precedence | Policies, operators |
| Absence and failure | Typed Option/Result values, propagation, matching and compensation | Option, Result, error handling |
| Modules and packages | Explicit imports/exports, facade modules, package manifests and workspaces | Modules, package manager |
| Template literals | Multiline text construction with interpolation and control structures | Templates |
Ownership and resource control
| Capability | Design purpose | Read next |
|---|---|---|
| Moves and borrows | Make ownership transfer and temporary access part of interfaces | Ownership, borrowing, lifetimes |
| Explicit mutable access | Distinguish a changing binding from permission to mutate a borrowed value | Variables, borrow rules |
| Owning containers | Store dynamic data with defined allocation, clone and drop behavior | Vec, Box, maps and sets, ordered maps |
| Borrowed views | Pass a bounded region without transferring or extending its ownership | Span, raw buffers |
| Typed low-level access | Express pointer/ABI obligations at a controlled unsafe boundary | Ptr, unsafe, FFI |
| Runtime ownership model | Understand allocation regions, sharing and reference-counted values | VUMM, memory prelude |
| Suspension-safe lifetimes | Keep task inputs and frame-bound references valid across await | Pin, async internals |
| Cleanup and context | Tie resources, cancellation and contextual values to an explicit lifetime | Context, native cleanup |
Concurrency and compute
| Capability | What it contributes | Read next |
|---|---|---|
| Tasks and channels | Concurrent producers/consumers, bounded queues and result collection | Concurrency, channels, fan-in |
| Async/await | Typed functions that can suspend while retaining owned state | Async, fallible batches |
| SIMD and static tensors | Elementwise operations, shape-aware values and reductions | SIMD, operations, masks |
| Dynamic tensors | Runtime dimensions and the matching tensor ownership model | Dynamic tensors |
| Graph functions | Typed dataflow that can be analyzed and lowered through Silicon IR | Graph functions, fusion |
| Accelerator paths | Backend-specific code generation, executor selection and host/device boundaries | GPU, SIMD/SIMT contract, backends |
| Automatic differentiation | Forward-mode derivatives of supported numerical expressions | Autograd |
| Native and freestanding code | Foreign calls, target interfaces, inline assembly and controlled runtime dependencies | First native call, freestanding, assembly |
Shape, numeric precision, ownership, target ABI and available native providers are part of each API's contract. Selecting an operation and selecting its execution device are separate decisions; the specialist guides explain both.
Compile-time programming
| Capability | Typical use | Read next |
|---|---|---|
| Strict compile-time evaluation | Compute constants and reject invalid configurations during compilation | Comptime |
| Typed reflection | Inspect fields and types while retaining ordinary type checking | Comptime recipes |
| Structural declaration generation | Generate typed functions, methods, types, aliases and conformances | Declaration generation |
| Partial evaluation and residual staging | Apply proven values while retaining runtime expressions for dynamic work | Comptime pipeline, CLI modes |
| Builtins and directives | Access phase-specific operations and declared compilation controls | Builtins, directives |
Libraries and tools
The standard-library directory covers files and paths, I/O, system services, text/Unicode, parsing and serialization, compression, hashing, cryptography, randomness, time, CLI applications, logging, testing, databases, network protocols, geometry, media, image processing, WebRTC, ML and inference. Each guide describes its public entry points and native dependencies.
For source-processing programs, the language-tooling libraries cover all ten IDE package families: Logos, Ungram, Rowan, Salsa, Ariadne, Pretty, Doc, LSP, DAP and VXIR.
The toolchain reference connects compiling, running, linting and verified fixes, formatting, testing, documentation, package/workspace operations, inspection and bundled native tools. Compiler testing tools cover generated inputs, deterministic replay and compiler-phase benchmarks.
VexHDL and Studio are companion hardware-description and design tools. Their language, simulation/synthesis workflows and product releases are separate from the Vex systems-language compiler.
Choose a workflow
- Pick a concrete input, output and failure contract from the example collection.
- Use the linked language and library guides to design the data and ownership boundaries.
- Pin the compiler/package versions, then test the relevant execution target.
- Retain example results using the verification guide.
The versioning policy describes compatibility in the 0.x series. The platform guide explains target and native library selection. Test records identify the program, compiler and target they cover; this feature map is navigation, not a claim that every combination has been run on every machine.