Spokes.wiki Search About
Social Media Posting source ↗ source url updated Sun Jun 21 2026 00:00:00 GMT+0000 (Coordinated Universal Time)

V compiler migrated to a flat AST (announcement)

A first-party announcement from the V programming language (@v_language, 2026-06-20): V’s compiler has been migrated to a flat-ast, which — together with other memory optimizations — cut RAM usage for self-hosting the compiler from ~6 GB to 400 MB, a 15× reduction. In a reply the project confirmed the optimization work used LLMs (“latest codex and claude models”). Reached the wiki via the Telegram channel. URL-only ingest.

What it claims

  • The change: the compiler’s abstract syntax tree representation moved from a pointer-linked node tree to a flat layout (see flat-ast).
  • The payoff: self-hosting RAM ~6 GB → 400 MB (15×), attributed to the flat AST plus unspecified “other memory optimizations.”
  • Context: V is a self-hosting language (its compiler is written in V), so compiling the compiler is the stress case the number describes.

Why it’s filed, and its weight

Tier T3 — a first-party social-media post, authoritative for that the change shipped but thin on detail: a single before/after RAM figure, no methodology, no breakdown of how much the flat AST bought versus the “other” optimizations. It sits alongside typescript-7-go-compiler as a second compiler-performance data point in the spoke — there the lever was a language port (TS→Go, ~10× speed); here it’s a data-layout change (~15× memory). Together they sketch the spoke’s compiler axis: toolchain performance comes from rewriting what the compiler is made of, whether the host language or the in-memory data structure. The LLM-assisted-optimization detail is a side note, not the substance. The V language itself isn’t paged yet — page it if more V sources land.

flat-ast · typescript-7-go-compiler · developer-tooling · synthesis