PeaBox Lab › PeaLang › Learn › Chapter 32 › Lesson 2

Part V — The Modern Experience Layer · Chapter 32 · Lesson 2 of 2

The 1.0 gate and what to re-verify in your projects

Chapters 1–26 were written against v0.63. Local PeaLang is at v3.1.39 — across the 1.0.0-experience line, then v1.1 LSP, v1.2 formatter/linter, v1.3 WASM, v1.4 React SDK, v1.5 web SDK, v1.6 Arrow backend, v1.7 vector/RAG, v1.8 notebook IDE, v1.9 host bindings, v2.0 VM optimizer, v2.1 supply-chain and performance, v2.2 JIT, v2.3 AI/ML helpers, then 3.1.37 frozen core, Conformance Suite v2 (current suite version 3.1.39), 3.1.38 bytecode optimizer v3 and 3.1.39 fast interpreter. Nothing forced a migration — but nothing waived your homework either. This lesson is that homework.

Step 1 — Pin and recompile

Step 2 — Re-read your security posture

let optimized = analysis.BytecodeOptimizer(module)
let report = analysis.BytecodeOptimizerReport(module)
let parity = analysis.VerifyOptimization(module, optimized)
# also run in CI: pea freeze, pea conformance-v2, pea doctor

Between v0.63 and 3.x the shape of the security model stayed; defaults got stricter and the audit trail richer. Structured errors use the pealang-error-v1 schema: ErrorValue records carry code, cause and context, and build_error() creates them for throw and host APIs. If your threat model was written for v0.63, read Chapter 14 again with fresh eyes — especially admission checks and the audit-record contract — then re-derive your sandbox policy from your actual usage data.

Step 3 — Re-audit dependencies and embedding

Step 4 — Adopt ergonomics deliberately

New syntax is opt-in. Migrate hot or shared modules first (Chapters 27–29 pay back fastest there), leave leaf scripts alone until you touch them next. A boring, gradual migration beats a big-bang rewrite that never finishes.

Step 5 — Verify behavior, not faith

Bottom line. v3.1.39 is the same language with better defaults, a much larger surface and years of hardening since v0.63. The migration cost is mostly re-verification — spend it once, keep the receipts, and your v0.63 foundations will carry you forward.

← Previous Next →