PeaBox Lab › PeaLang › Learn
Learning Guide

Mastering PeaLang

The complete, open learning guide for PeaLang — 210,511 words across 35 chapters and 161 lessons. Start at Orientation and Setup, or jump to the part you need. Every lesson ends with guided practice, a hands-on lab, review questions and an applied challenge — designed to be worked through, not skimmed.

Guide v1.1 · updated for PeaLang v2.3.0 · 210,511 words · 35 chapters · 161 lessons

Guide currency: the core text was written against PeaLang v0.63; the runtime is now at v2.3.0 (Nov 2026). Part V — The Modern Experience Layer covers everything added since: Chapter 27 (ergonomics), 28 (web), 29 (analysis/stats), 30 (DX tooling), 31 (host bindings & SDKs), 32 (v2 VM), 33 (supply-chain & performance, v2.1.0), 34 (JIT, v2.2.0), 35 (AI/ML primitives, v2.3.0). Version-difference callouts throughout flag behavior that changed.

Part I — Foundations

Part II — Intermediate Development

Chapter 7: Optional Typing and Semantic Analysis

  1. Lesson 1: Variable, Parameter, and Return Annotations 7 min
  2. Lesson 2: Inference, Compatibility, and Gradual Adoption 9 min
  3. Lesson 3: Generics and Substitution 8 min
  4. Lesson 4: Structural Protocols and Project-Wide Contracts 8 min
  5. Lesson 5: Option, Result, and Future Types 9 min
  6. Lesson 6: Flow-Aware Semantic Checks and Type-Checking Commands 8 min
  7. Chapter 7 Checkpoint: Typed Employee-Rules Service 6 min

12,123 words · 7 lessons · Chapter overview →

Part III — Advanced Systems

Chapter 12: Interpreter, Compiler, Bytecode, and VM

  1. Lesson 1: From Source Text to Tokens, Syntax Trees, and Semantic Checks 5 min
  2. Lesson 2: Tree-Walking Interpretation 5 min
  3. Lesson 3: Stack Bytecode, Constants, Code Objects, and Instructions 5 min
  4. Lesson 4: PEAC Format, Versioning, Validation, and Portability 5 min
  5. Lesson 5: VM Execution, Stack Behavior, Calls, Closures, Modules, and Exceptions 5 min
  6. Lesson 6: Disassembly, Profiling, and Execution Comparison 4 min
  7. Chapter 12 Checkpoint: Inspect and Optimize Compiled Execution 4 min

7,291 words · 7 lessons · Chapter overview →

Chapter 15: Embedding and Interoperability

  1. Lesson 1: Embedding Architecture and Exported-Function Contracts 9 min
  2. Lesson 2: Python Host Integration and Boundary Validation 7 min
  3. Lesson 3: Java 17 Sidecar Runtime and Client 8 min
  4. Lesson 4: TypeScript Client and React Integration 7 min
  5. Lesson 5: FastAPI Integration Patterns 16 min
  6. Lesson 6: Typed Embedding Contracts and Host-Specific Object Conversion 18 min
  7. Chapter 15 Checkpoint: Polyglot Extension Service 17 min

18,013 words · 7 lessons · Chapter overview →

Chapter 16: Data Foundation and DataFrame Engineering

  1. Lesson 1: DataType, Field, Schema, DataFrame, and LazyFrame 12 min
  2. Lesson 2: Schema Inference and CSV, JSON, and JSONL Interchange 17 min
  3. Lesson 3: Select, Filter, Calculated Columns, Drop, Rename, Sort, Limit, and Distinct 11 min
  4. Lesson 4: Joins, Grouped Aggregations, Nulls, Pivots, Unpivots, and Windows 12 min
  5. Lesson 5: Lazy Execution and Dependency-Light Design 4 min
  6. Chapter 16 Checkpoint: Reusable Analytics Pipeline 3 min

13,085 words · 6 lessons · Chapter overview →

Chapter 17: SQL, Connectors, and Cloud Data

  1. Lesson 1: SQLite and Optional Database Adapter Contracts 8 min
  2. Lesson 2: Parameterized Queries, Transactions, Discovery, Batch Inserts, and Upserts 8 min
  3. Lesson 3: Connector SDK, Transport Injection, Retries, Errors, and Pagination 7 min
  4. Lesson 4: REST, GraphQL, OData, SFTP, Microsoft Graph, and SharePoint 7 min
  5. Lesson 5: Object Storage Across S3, Azure, and Google Cloud 5 min
  6. Lesson 6: Secret Providers, Token Caching, Health Checks, and Certification 5 min
  7. Chapter 17 Checkpoint: Secure Multi-Source Ingestion Service 3 min

9,376 words · 7 lessons · Chapter overview →

Chapter 18: Time Series and Forecasting

  1. Lesson 1: Date Features, Resampling, Lag, Lead, Differences, and Percentage Change 9 min
  2. Lesson 2: Rolling, Expanding, and Exponentially Weighted Statistics 7 min
  3. Lesson 3: Interpolation, Grouped Analysis, and Seasonal Decomposition 7 min
  4. Lesson 4: Train/Test Splits and Error Metrics 7 min
  5. Lesson 5: Trend, Moving-Average, and Exponential-Smoothing Baselines 7 min
  6. Lesson 6: Grouped Forecasts, Confidence Bands, and Chart-Ready Output 8 min
  7. Chapter 18 Checkpoint: Monitored Demand Forecast 3 min

10,501 words · 7 lessons · Chapter overview →

Part IV — Expert Production Engineering

Chapter 19: Machine-Learning Foundations

  1. Lesson 1: Seeded Splits, Preprocessing, Scaling, Imputation, and Encoding 8 min
  2. Lesson 2: Linear and Logistic Regression 7 min
  3. Lesson 3: Regression and Classification Metrics 6 min
  4. Lesson 4: Cross-Validation, Regularization, and Hyperparameter Search 6 min
  5. Lesson 5: Multiclass Classification, Calibration, and Threshold Selection 7 min
  6. Lesson 6: Pipelines, Persistence, Schema Validation, and Reproducibility 6 min
  7. Chapter 19 Checkpoint: Reproducible Classification Pipeline 3 min

9,333 words · 7 lessons · Chapter overview →

Chapter 20: MLOps, Governance, and Monitoring

  1. Lesson 1: Integrity-Checked Model Bundles and Registries 5 min
  2. Lesson 2: Lifecycle States, Promotion, Canary Routing, and Rollback 5 min
  3. Lesson 3: Prediction Audits, Monitoring Stores, and Structured Logs 5 min
  4. Lesson 4: Drift, Fairness Diagnostics, Alerting, and Acknowledgement 6 min
  5. Lesson 5: Model Cards, Intended Use, Limitations, and Governance Review 5 min
  6. Lesson 6: Secure Serialization, Signing, Encryption, and Key Handling 5 min
  7. Chapter 20 Checkpoint: Governed Model Release 3 min

7,400 words · 7 lessons · Chapter overview →

Chapter 21: Serving and Resilient Operations

  1. Lesson 1: Portable Pipeline Loading and Serving Commands 4 min
  2. Lesson 2: Authentication, Request Bounds, Concurrency, Timeouts, and Rate Limits 2 min
  3. Lesson 3: Liveness, Readiness, Metrics, Tracing, and Audit Retention 2 min
  4. Lesson 4: Graceful Reloads, Deployment Plans, and Automatic Rollback 2 min
  5. Lesson 5: Distributed Limits, Shared State, Deterministic Routing, and Load Testing 2 min
  6. Chapter 21 Checkpoint: Resilient Prediction Service 1 min

2,680 words · 6 lessons · Chapter overview →

Chapter 22: Kubernetes and Cloud-Native Deployment

  1. Lesson 1: Deployment, Service, Autoscaling, and Monitoring Resources 2 min
  2. Lesson 2: Non-Root Execution, Read-Only Filesystems, seccomp, and Dropped Capabilities 2 min
  3. Lesson 3: Network Policies, Disruption Budgets, Topology Spread, and Anti-Affinity 2 min
  4. Lesson 4: Graceful Drain, Manifest Validation, Soak Testing, and Operational Adaptation 2 min
  5. Chapter 22 Checkpoint: Secure Production Deployment 1 min

1,725 words · 5 lessons · Chapter overview →

Chapter 24: Supply-Chain and Release Engineering

  1. Lesson 1: API Stability, Deprecation, Compatibility, and Semantic Versioning 2 min
  2. Lesson 2: Source Inventory, Release Manifests, Hashes, and Reproducible Evidence 2 min
  3. Lesson 3: SBOMs, Provenance, Checksums, Dependency and License Review 2 min
  4. Lesson 4: Cross-Platform CI, Conformance Gates, and Release-Candidate Validation 2 min
  5. Lesson 5: Migration Planning, Smoke Testing, Backups, and Rollback 2 min
  6. Lesson 6: Threat Modeling and External Release Gates 2 min
  7. Chapter 24 Checkpoint: Auditable Release Candidate 1 min

2,320 words · 7 lessons · Chapter overview →

Chapter 25: Language Internals and Contribution

  1. Lesson 1: Lexer, Parser, Syntax Tree, Semantic Pass, and Compiler Architecture 2 min
  2. Lesson 2: Interpreter and VM Implementation Boundaries 2 min
  3. Lesson 3: Extending Syntax Without Breaking Compatibility 1 min
  4. Lesson 4: Adding Standard-Library Capabilities Safely 2 min
  5. Lesson 5: Testing Language Changes Across Engines and Hosts 2 min
  6. Lesson 6: Documentation, Migration Notes, and Contribution Discipline 2 min
  7. Chapter 25 Checkpoint: Implement and Validate a Language Enhancement 1 min

2,306 words · 7 lessons · Chapter overview →

Part V — The Modern Experience Layer

Appendices (syntax quick reference, CLI reference, standard-library module map, type-system reference, bytecode reference, playbooks) are in preparation and will land here as they are approved. Foundations are complete.