Documentation
Guides for learning the language and references for checking the details.
Start here
Getting Started
Install the compiler, check its version, and build Hello World
Tutorial
Build a same-process key-value store with two actors in six steps
Examples
Read small Hew programs and open them in the playground
Report a Bug
Open a structured issue with version, platform, reproduction steps, and logs
Community
Ask for help, report problems, or find the compiler contribution guide
Language Tour
Read short examples of bindings, functions, actors, matching, and concurrency
Core concepts
Core concepts
Ownership, affine values, actor isolation, message transfer, lifecycle, and structured concurrency.
Actor Model
Actors, mailboxes, and message passing
Supervision Trees
Supervisors, restart strategies, and restart budgets
Type System
Types, generics, capabilities, and pattern matching
Standard Library
Built-in types: string, Vec, HashMap, Iterator, IO
Testing
Built-in #[test], assert_eq, and assert — no framework needed
State Machines
First-class machine/state/events declarations with checked transitions
Packages
Create a project, use official packages from source, and check registry compatibility
Authority confinement
Give actors and functions the services they need, and have the compiler check how they use them.
Tools & internals
Compiler
How Hew compiles through HIR and MIR to native code via LLVM IR
Status & Roadmap
What ships today, what is next, and what remains longer-horizon work
Profiler
Built-in live dashboard for scheduler, memory, and actor metrics
Comparison
How Hew compares to Go, Rust, and OTP ecosystems
Editor Support
Development notes on the LSP, tree-sitter grammar, and editor plugins
Compare
Select & Join
Race or await multiple async operations — Hew vs Go vs Rust
Fan-out/Fan-in
Scatter work to N actors, gather results — Hew vs Go
Backpressure
Bounded mailboxes and overflow strategies — Hew vs Go
Supervision
Crash recovery and restart budgets — Hew vs Erlang/Elixir OTP vs Go
Wire Types
Evolvable network message formats — Hew vs Protobuf vs serde
Actor Pipeline
Multi-stage processing chains — Hew vs Go channels
Reference
Language Specification
Formal EBNF grammar and language semantics reference
Grammar Explorer
Interactive EBNF grammar with railroad diagrams
Language and API reference
Search the released language guides, standard-library modules, symbols, and exact signatures.
Hew Playground mobile guides
Illustrated iPhone, iPad and Android instructions for opening examples, editing, running, saving and sharing code.
Hew Observe guides
Desktop, iPad, terminal and browser guides, with screenshots and an illustrated user manual.
Quick-reference chart
Printable two-sided chart for everyday syntax, actors, concurrency, wire types, and machines