Zolo by Example
Learn Zolo by reading short, runnable examples — from basics to advanced.
Start from the beginningAct 1 — Fundamentals
01
Hello & Comments
02
Primitives & Numbers
03
Variables and Bindings
04
Operators
Act 2 — Functions & Logic
06
Functions
07
Pattern Matching
Act 3 — Data & Types
09
Data Structures
10
Strings
Act 4 — Abstraction
Act 5 — Metaprogramming
13
Decorators
14
Macros
15
Compile-Time Evaluation
16
Reflection & Metaprogramming
Compile-Time Field Names Runtime Reflection Decorators as Inert Data Compile-Time Serialization Template ORM: Generate CREATE TABLE Derive Validation Rules UI Form Generation OpenAPI / JSON Schema Generation Generic Derive Function Runtime Debug Introspection Built-In Derives Custom Derive Derive: SQL Column List Derive: Full DB Table DDL
Act 6 — Project Structure
18
Modules
19
Documentation
20
Module Directives
21
Lifecycle Hooks
Act 7 — Concurrency & Reactivity
22
Temporal Expressions
23
Concurrency
25
State Machines
26
Algebraic Effects
Act 8 — Standard Library
27
Standard Library
Math (std::math) Strings (std::string) Arrays (std::array) Vectors (std::vec) Maps (std::map) Sets (std::set) Iterators (std::Iter) Result (std::Result) JSON (std::json) YAML (std::yaml) TOML (std::toml) CSV (std::csv) Regular Expressions (std::regex) Date and Time (std::datetime) Paths (std::path) File System (std::fs) Environment Variables (std::env) Process (std::process) I/O Reactor (std::io_runtime) HTTP Client (std::http) URLs (std::url) Cryptography (std::crypto) Hashes (std::hash) Base64, Hex and Base32 (std::base64) Log (std::log) Statistics (std::stats)
Act 9 — Platform & Apps
28
HTTP Server
29
Database
30
CLI and Tooling
Act 10 — Build, Test & Ship
33
Compilation
34
WebAssembly
35
Distribution
36
OS Integration
Act 11 — Appendix
37