zig-js

Advanced

On this page 3

The Features section describes what the engine gives your JavaScript. This section is about operating and extending the engine itself: how to embed it, how memory behaves, how code tiers, how to debug it, and how its claims are verified.

Pages

PageCovers
EmbeddingThe Zig Context API, options, module hosts, termination, and how it relates to the C and Objective-C surfaces.
Memory & GCArena vs. precise GC, heap budgets, generational collection, compaction, weak references, and root safety.
Execution tiersTree-walker → bytecode VM → baseline native → optimizing tier, and how to keep them in agreement.
VM quickening inventoryGuarded VM caches and bounded traces, with narrow legacy kernels separated from general no-JIT coverage.
Debugging & toolingInspector protocol, corpus diagnostics, profiles, sanitizers, and the build cache.
Verification & evidenceHow every published claim is gated, and how to add a gate.

Deep dives elsewhere in these docs

Working in the repository

Contributor setup, the full command list, and the commit/PR conventions are in CONTRIBUTING.md. Coding agents should start from CLAUDE.md (symlinked as AGENTS.md), which encodes the same rules plus the traps that have cost real time here.