On this page

Tenon

curl -fsSL https://tenon-lang.org/install.sh | bash

Zero-dependency install on macOS and Linux — no Rust, Cargo, Python, Xcode Command Line Tools, or build-essential required. install.sh installs the self-contained tenon binary (with 105 bundled edition = "2026" plugins), configures PATH and AI coding agent skills, and auto-provisions a self-contained Zig 0.17.1 C11 toolchain if no host C compiler is present.

Tenon is a small, fast, agentic-first programming language compiled to C (with a built-in reference interpreter), built for CLI tools, single-file #! scripts, deterministic TUIs, MCP servers, and coding-agent harnesses.

Install guide · 60-second quickstart · AI agent quickstart · GitHub · [email protected]

15-Second Quickstart

tenon new cli hello
cd hello
tenon run -- --help
tenon install

Benchmarks

Tenon vs. Python 3.14, Go 1.27, and Rust 1.85 (107 MB CLI corpus)

Four-way native CLI benchmark on Linux x86-64 (gcc 14.2.0 -O2, Go 1.27.3, Rust 1.85.1, Python 3.13.5, best of 5 warm runs, byte-identical output; full report):

Tool Workload Tenon (-O2) Rust Go Python 3.13 Tenon vs. Python Tenon RSS
head Startup + 10 lines 0.94 ms 0.96 ms 1.41 ms 9.36 ms 9.9× faster 1.5 MiB
grep 107 MB text search 23.0 ms 83.1 ms 73.1 ms 396.4 ms 17.2× faster 2.6 MiB
wc 107 MB line/word/byte 95.2 ms 142.0 ms 140.7 ms 335.7 ms 3.5× faster 2.4 MiB
tok 107 MB byte tokenizer 110.1 ms 148.1 ms 145.6 ms 3,356.9 ms 30.5× faster 2.4 MiB
csv-sum 107 MB CSV parse/sum 118.6 ms 128.6 ms 133.1 ms 1,056.9 ms 8.9× faster 1.6 MiB
word-freq 107 MB map-heavy 414.6 ms 147.5 ms 173.6 ms 1,136.1 ms 2.7× faster 3.7 MiB

Note: Tenon and Python stream line-by-line (keeping Tenon peak RSS at 1.5–3.7 MiB on 107 MB inputs); the measured Go and Rust reference ports read the whole 107 MB input into memory (~104 MiB RSS) and use flat vocabulary counters on word-freq.

Tenon vs. Python 3.14 on Apple Silicon (20 MB CLI & Real CI Scripts)

Paired alternating runs on Apple Silicon macOS (arm64, Python 3.14.2, byte-identical stdout, median of 5 reps for CLI and 3 reps for repo CI gate scripts; full report & raw data):

Workload Python 3.14 Tenon Native (-O2) Speedup Memory Savings
tok (20 MB)* 3,512.8 ms (34.0 MiB) 60.6 ms (2.4 MiB) 58.0× 14.0× less RAM
grep (20 MB) 165.4 ms (17.9 MiB) 8.4 ms (2.5 MiB) 19.7× 7.2× less RAM
csv-sum (20 MB) 486.4 ms (14.9 MiB) 61.2 ms (1.5 MiB) 8.0× 10.0× less RAM
word-freq (20 MB) 462.4 ms (36.2 MiB) 75.6 ms (3.8 MiB) 6.1× 9.5× less RAM
wc (20 MB) 148.3 ms (36.1 MiB) 35.0 ms (2.5 MiB) 4.2× 14.7× less RAM
next-task --lint (repo gate) 48.7 ms (17.4 MiB) 5.3 ms (1.9 MiB) 9.1× 9.3× less RAM
check-surface-budget (repo gate) 137.4 ms (21.7 MiB) 17.1 ms (5.3 MiB) 8.0× 4.1× less RAM
check-docs-links (446 md files) 219.0 ms (21.9 MiB) 41.0 ms (5.6 MiB) 5.4× 3.9× less RAM
spec-budget (107 docs) 67.6 ms (15.9 MiB) 13.4 ms (1.5 MiB) 5.0× 10.9× less RAM

* Even comparing best-of-5 (min) to filter host-load variance, tok is 29.4× faster than Python (46.9 ms vs 1,376.9 ms).

AI Training Pipelines & Agentic Workloads (ai-model-training)

Tenon is dogfooded across ML dataset validation, training-pipeline orchestration, and local small-model authoring:

Workload Baseline Tenon Result Gain
ML dataset validation (validate_datasets_fast.tn vs validate_datasets.py --fast, 17 hygiene checks, byte-identical 3,458 B output on tenon-v3-cli-and-core, 5 alternating reps) 429.8 ms (49.2 MiB) 81.2 ms (19.3 MiB) 5.3× faster, 2.5× less RAM
Pure-Tenon TUI & harness test suites (coding-harness-2 interpreter perf wave: ui_approval_guards_test / ui_app_test) 21.37 s / 31.35 s 2.33 s / 4.15 s 9.2× / 7.6× faster
Local small-model authoring (Inkling 2 Mini 26B MoE fine-tuned on Tenon v3.2, single RTX 4090 llama.cpp + DSpark, 13.52 GiB IQ4_XS) — 83.1% combined eval (76.2% Tenon T2/Diag, 96.0% MCP tools, 100% long-context) 223.2 tok/s decode (78.2 ms TTFT)

Language

Project

Browse all documentation files