Inside PeaLang — for people who build it
This section is for contributors and host integrators: how the runtime is put together, how to build and test it, how changes ship, and where the deep material lives in Mastering PeaLang.
Runtime architecture →
Front end (lexer, recursive-descent parser, semantic pass), tree-walking interpreter, stack VM, PEAC bytecode, capabilities and limits.
Build & test →
Clone, environment, editable install, test suites, fuzzing, conformance gates, differential interpreter/VM testing and spec verification.
Contributing →
How to propose language changes without breaking compatibility: migration notes, conformance evidence, review discipline and spec gates.
Release engineering →
Manifests, content hashes, SBOMs, provenance, checksums, RC validation and rollback — the auditable path to a release.
Repository layout
| Path | What lives there |
|---|---|
products/languages/PeaLang/guides/ | The language implementation: lexer, parser, semantics, interpreter, VM, stdlib |
spec/ | Normative specification and EBNF grammar; pea spec verifies it |
tests/, pea_tests/ | Unit tests, conformance suites and differential (interpreter vs VM) tests |
examples/ | Runnable example programs and pilot applications |
docs/ | Design notes, ADRs, API stability policy, security reviews, release evidence |
benchmarks/ | Performance baselines and regression thresholds |
browser-sdk/, typescript-sdk/, java-sdk/, react-sdk/ | Host SDKs and the Java sidecar runtime |
editors/ | LSP server, formatter, linter and editor integrations |
release/, dist/ | Wheels, manifests, checksums, SBOMs and release evidence |
tools/, pilots/ | Internal tooling and the beta/pilot applications |
Deep dives
The full internals are taught in Mastering PeaLang: interpreter, compiler, bytecode and VM in Chapter 12; security model and resource governance in Chapter 14; embedding and interoperability in Chapter 15; supply-chain and release engineering in Chapter 24; language internals and contribution in Chapter 25; and the expert capstone project in Chapter 26.
Status
- Base: v0.99.6 security-hardening baseline (CodeQL-driven fixes, SSH/SFTP and package signing hardening, type-system ReDoS fixes).
- Experience layer: 1.0.0-experience — language ergonomics, web framework, data/analysis, numerical stats, interop and developer tooling on top of the stable base.
- 1.0 gate: delivered — stable grammar, type system, stdlib, embedding API, package format and PEAC compatibility policy; security reviewed.
- v1.1–v1.9: LSP server, formatter/linter/codemods, WASM runtime, React SDK, web/TypeScript SDK, Arrow/DuckDB DataFrame backend, vector/RAG primitives and ONNX export, notebook IDE and web publishing, native FFI and host bindings.
- v2.0–v2.3: optimizing bytecode VM + PackageIndex hub, supply-chain security namespace (signing, SBOM, provenance) + performance toolkit (mmap, AdvancedCache, pooling, profiling), trace-based JIT with strength reduction, and AI/ML primitives (BPE tokenizer, embeddings, attention, AutoML random search).
- Current: v3.1.36 (Nov 2026). See Part V of the guide for what changed since v0.63.
Track the repo: github.com/PeaBox-Lab/PeaLang.