Documentation
Learn Hew from the ground up.
Ask AI about Hew — get instant answers about syntax, actors, and more
Start here
Core concepts
🎭
Actor Model
Actors, mailboxes, and message passing
🔧
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/event declarations inside actors
✏️
Editor Support
LSP server, tree-sitter grammar, and VS Code extension
📦
Package Manager
Adze — manifests, dependency resolution, and registry publishing
Tools & internals
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 vs Go
📦
Wire Types
Evolvable network message formats — Hew vs Protobuf vs serde
🔗
Actor Pipeline
Multi-stage processing chains — Hew vs Go channels