The Ridgun Book · English
The Ridgun Book
Forty-three chapters: the language, from why Ridgun exists to parallel graphs, agents, tensors and memory regions, and then each standard library. The team wrote every edition, so code and explanations match chapter for chapter.

- 00Why Do I Need Ridgun? Oh Really? I Had No Idea... Tell Me More!
- 01Your First Contact with Ridgun (No Boilerplate, No Braces, No Semicolons)
- 02Your Two Best Friends:
ridguncandstable(Zero YAML Files, Promised) - 03Functions, Type Signatures, and the Art of Writing Code as a Table
- 04Goodbye
if/else, Goodbyewhile(Pattern Matching, Guards, and TCO) - 05Lists, Tuples, and the Ninja Trick of Sequences
- 06Algebraic Data Types (ADTs), Polymorphism, and Why We Don't Want
nullorAnyHere - 07Higher-Order Functions and Sweat-Free Parallelism (No
Mutex, NoDeadlocks) - 08Tensors, RMM Compiled Memory (
RMM1/RMM2), Regions, and Systems - 09The
strLib — Text Manipulation, Search, and Tabular Padding - 10The
mathLib — Safe Division, Number Theory, and Statistics - 11The
listLib — Slicing, $O(N \log N)$ Mergesort, and Associative KV Maps - 12The
btreeLib — Persistent $O(\log N)$ AVL Maps, Sets, and Priority Queues - 13The
tensorLib — Multi-Dimensional Tensors, Views, and Einstein Contraction - 14The
linalgLib —Tensor[Real]Linear Algebra, Bareiss Solver, and Activations - 15The
codecLib — RFC 4648 Hex, Base64, Base64url, and URL Percent-Encoding - 16The
jsonLib — Recursive RFC 8259 AST Parser, Pretty-Printer, and Dot-Path Queries - 17The
csvLib — RFC 4180 CSV/TSV State-Machine Parser and Header-Indexed Tables - 18The
iniLib — Sectioned.iniConfigs,.envFiles, and Variable Interpolation - 19The
regexLib — Linear-Time $O(N \cdot M)$ Thompson NFA Regular Expression Engine - 20The
globLib — Wildcard Patterns (*,?,[a-z]) and List Filtering - 21The
diffLib — LCS Line Diff, Edit Distance, Unified Diff, and Patching - 22The
templateLib — Safe Mustache Templates with HTML and LaTeX Auto-Escaping - 23The
fmtLib — Canonical 2D Tabular Formatter and 9-Target Syntax Highlighter - 24The
cliLib — Flags, Options,--Barrier, Subcommands, and Typed Env Readers - 25The
pathLib — POSIX Normalization (path clean) and Path-Traversal Confinement - 26The
timeLib — Howard Hinnant UTC Calendar, ISO-8601, Durations, and Backoff - 27The
uuidLib — RFC 9562UUIDv4/UUIDv7, Checksums (CRC-32), and PRNG - 28The
logLib — Structured NDJSON Logging and Automatic Secret Redaction - 29The
testLib — Unit and Functional Test Assertion Primitives (RG-011) - 30The
posixLib — 2-Layer PAL (SysOs,SysArch), Clocks, Signals, and CSPRNG - 31The
ioLib — TypedIoResultErrors,with timeoutDescriptor I/O, and Processes - 32The
cryptoLib — SHA-256, HMAC, PBKDF2, Argon2id, and ChaCha20-Poly1305 AEAD - 33The
argon2idLib — RFC 9106 Argon2id onTensor[U64 * 8 * 16], Blake2b, and OWASP Presets - 34The
jwtLib — RFC 7519HS256JSON Web Tokens and ChaCha20-Poly1305 Encrypted Tokens - 35The
socketLib — TCP, UDP, AF_UNIX, Framing, DNS, andRGF-001Kernel Sockets - 36The
httpLib — RFC 3986 URIs, RFC 9112 HTTP/1.1 Wire Codec, and Live TCP Client - 37The
wsLib — RFC 6455 WebSocket Handshake, 16/64-Bit Frame Codec, and XOR Masking - 38The
agentLib — Native Actor Concurrency (agent,send,receive), KV Store, and Rate Limiter - 39The
poolLib — Bounded Worker Pool, Round-Robin Dispatch, and Work-Stealing - 40The
net_agentLib — Socket Connection Actor Supervisor and Non-Blocking Event Bridge - 41The
ailib — AI Agents, Tool Calling, SSE Streaming, Bounded ReAct, Guardrails, Mini-RAG & MCP - 42The
localeLib — CLDR Plural Rules, UTC Date & Number Formatting, and Language Autonyms