Complete Open Reference Edition · Veko v1.0.0
Programming in Veko
Memory-Safe, Homoiconic Systems Without a Garbage Collector — Complete Language, Architecture & Library Reference
By Travis Kay
Preface
Veko unifies parentheseless prefix notation and homoiconic [ ... ] code-as-data blocks with deterministic One Reference Only (ORO) single-owner memory, compile-time .secret firewalls, capability sandboxing, and three synchronized execution backends. Every tool—including this pure-Veko EPUB 3.0 & Web HTML book compiler (veko book)—is 100% self-hosted in Veko with zero Python or C build scripts.
Organization of This Volume
- Part I (Chapters 1–6): Quickstart, single-binary SDK (
VEKO_HOME,~/.veko_modules,VEKO_LIB), tutorial, language guide, recipes, cookbook, and developer tooling (veko debug, VS CodeF5DAP,veko test --coverage,testing/fuzz,doc --html,fmt,lsp). - Part II (Chapters 7–11): Standard library & NIST PQC, Hybrid TLS 1.3, Zero-FFI SQLite 3 & homoiconic ORM (
db/sqlite),veko-lang.orgHTTPS packages, readiness reactors, Durable Workflows, and the 33-widget Light-Mode Studio UI across Win32, Linux Wayland/X11, macOS arm64 Cocoa, and Wasm. - Part III (Chapters 12–14): Tree-shaking & SIMD/ARM64 performance, administrator sandbox governance, and the compiler diagnostics & borrow-loan reference.
- Part IV (Chapters 15–18): Complete compiler and runtime engineering specifications—rendered with full-page landscape architectural plates, 16-byte
Value&SlabHdrmemory proofs, and ADRs. - Part V (Appendices A & B.1–B.4): Complete CLI/syntax reference plus the AST-verified API reference for all 95 pure-Veko standard library modules.
- Part VI (Appendices C.1–C.4 & D.1–D.2): All 45 runnable examples and all 6 multi-module showcase applications in unabridged syntax-highlighted long form.
Colophon & Open Distribution
Copyright © 2026 Travis Kay. Openly published in Web HTML & EPUB 3.0 editions on veko-lang.org (freely redistributable unmodified).
Compiled and XML-validated in 100% pure Veko via veko book (src/book_cmd.vk + lib/archive/zip.vk).
Official Platform, Online Books & Package Registry: veko-lang.org
Author: linkedin.com/in/kaytravis · traviskay.ca
Complete Interactive Table of Contents
Part I · Language Foundations, Syntax, Cookbook & Tooling
Why Veko unifies parentheseless prefix words, single-owner ORO memory, homoiconic blocks, and three execution backends
Progressive lessons from the interactive REPL and pipelines to macros, isolated concurrency, and typed structs
Slash refinements, universal /or, templates, Copy-on-Write ownership, zero nil, [T] generics, interfaces, and parse-block grammars
Everyday workflows for token/AST inspection, multi-file veko.vk manifests, syntax pitfall avoidance, and self-compilation
Copy-ready patterns for zero-flag workspaces, user /refinements, .secret templates, interfaces, asset embedding, regex, Zstd, and OTel
Using veko debug, VS Code F5 DAP, veko test --coverage, testing/fuzz, veko doc --html, veko fmt, veko lsp, veko bindgen, and source translators
Part II · Standard Library, PQC, Networking, Async, Durable State & Desktop UI
Collections, Thompson NFA regex, DEFLATE/Zstandard, AEAD sealing, and NIST FIPS 203/204/205 PQC
Connected io/Stream protocols, HTTP/2, SSE, JWT/OAuth2/TOTP, Zero-FFI SQLite 3 & ORM, WAL KV, Postgres, Redis, and veko-lang.org VKP1 packages
Multiplexing sockets over epoll, kqueue, IOCP+WSAPoll, WASI net-poll, and conc/scope without colored async functions
Transactional keyed actors, persistent alarms, memoized step checkpoints, webhook signals, and LIFO sagas over db/kv
TrueColor TUI dashboards, Light-Mode RGBA32 Studio widgets (--gui), lossless PNG, and veko bindgen .ffi interop
Part III · Performance, Cross-Compilation, Security Governance & Diagnostics
Zero-W^X execution, whole-program dead-code elimination, AVX2/SSE2/AES-NI intrinsics, and Windows/Linux/Apple Silicon targets
Enforcing veko.vk allow-caps, HostSandbox fuel/memory quotas, VKP1 supply-chain trust-keys, and volatile .secret wiping
Resolving tight/spaced lexer rules, disjoint mut field loans, --strict-types narrowing, .secret firewalls, and stack traces
Part IV · Compiler Architecture, Backend Internals, Safety Proofs & ADRs
Architectural specification of the self-hosted compiler, two-pass Pratt frontend, and triple-target S1 == S2 convergence
Instruction-level mechanics of 64-bit VKO bytecode, Wasm 3.0 linear-RAM ABI, x86_64/AArch64 codegen, and PE32+/ELF64/Mach-O linkers
16-byte Value and SlabHdr layouts, mechanical DAG cycle-freedom proof, 12-bucket slab recycling, and formal trust boundaries
Complete engineering rationale across ADRs and milestone benchmarks
Part V · Complete Tooling, CLI & Standard Library Reference
Exhaustive command-line flags, veko.vk fields, literal formats, Pratt binding powers, and builtin word arities
Complete AST-verified API reference for 28 foundational, text, regex, collection, and I/O stream modules
Complete AST-verified API reference for 19 serialization, wire framing, DEFLATE/Zstd, PNG, archive, and package lockfile modules
Complete AST-verified API reference for 16 AEAD, hash, curve, FIPS 203/204/205 PQC, and JWT/OAuth2/TOTP modules
Complete AST-verified API reference for 32 networking, web, Zero-FFI SQLite & indexed KV, structured concurrency, OTel, profiling, UI/Wayland/X11, and FFI modules
Part VI · Complete Annotated Examples & Showcase Applications
Unabridged listings covering syntax, pipelines, ORO buffers, macros, closures, concurrency, modules, and typed structs
Unabridged listings covering pure-Veko TLS 1.3, HTTP APIs, encrypted vaults, query dialects, NIST PQC, and WebSockets
Unabridged listings covering Zero-FFI DBs, VKP1 signing, LSP/fmt, ARM64, readiness reactors, RGBA32 UI, FFI, and durable sagas
Unabridged listings covering slash refinements, template strings, interfaces, PNG charts, Range/SSE/KV queries, regex, Zstd, OTel, clipboard/Hi-DPI, X11/Wayland wire protocols, SVG flamegraphs, Zero-FFI SQLite & ORM, fuzzing, and veko-lang.org packages
Complete multi-module source listings and Light-Mode UI captures for Veko Studio Widget Gallery, Canvas Workbench, and TaskFlow Studio
Complete multi-module source listings for PulseMesh, Vault Dialect, and NetPulse