The language manual
The normative reference: execution semantics, compiler lowering, memory guarantees, and performance characteristics. For the friendly path, start with the guide.
Syntax and Primitives
- Lexicon and Structure Source encoding, comments, whitespace, statements, identifiers, and reserved keywords.
- Prelude and Intrinsics The implicit environment: resolution order, root intrinsics, and core types.
- Numeric Model Unified 64-bit semantics: integers, floats, bitwise ops, and conversions.
- Bindings and Scope let and const bindings, lexical scopes, shadowing, tuples, and destructuring.
- Control Flow if and else, loops, switch matching, defer, and guard — with exact body rules.
- Functions and Closures Signatures, defaults, generics, lambdas, methods, throws, and failure channels.
- Collection Blocks A trailing block that supplies an array argument, with control flow, slots, and spread.
Type System and Object Model
- Structs and Records Value types: struct layout and lifecycle, positional records, anonymous records.
- Classes and Objects Heap reference types under ARC: construction, inheritance, methods, binding.
- Traits and Interfaces Trait composition with with, interface dispatch, is and typeOf.
- Extensions and Operators Extension blocks, static receiver desugaring, Iterable, and operator hooks.
- Enums and Matching Tagged unions, payload binding, and exhaustive pattern matching.
Memory, Systems, and Concurrency
- Memory and ARC Deterministic ARC: scopes, stack vs heap, retains, releases, and write-dominance.
- Cycles and Handles GenRef weak handles, the byId registry pattern, decay, and intentional cycles.
- Hardware and FFI unsafe boundaries, from-native imports, C-ABI export, files, and process control.
- Concurrency and Threads Threadpool architecture, barriers, synchronization, and lock-free Atomics.
- Vectorization and SIMD Vec4f hardware lane mapping, lane arithmetic, and horizontal reductions.
- UI and App Runtime The display-list byte format, the headless UI core, and the frame API in @std/app.
- Declarative Views The View value API: Page, List, Text, controls, keys, and App.launchView.
Toolchain and Diagnostics
- Project and Toolchain Project.config spec, modules, SemVer deps, testing, docs, and the rnx CLI.
- Diagnostics Directory Every compiler diagnostic code: causes, examples, and resolution patterns.
- Packages and Registries Names, versions, yank rules, the registry API, import sources, and the Project.config subset.
Language
Looking for per-module APIs? Browse the standard library