Skip to content

docs+examples: usability foundation — getting-started guide + 5 pattern examples - #3

Merged
mash180sx merged 1 commit into
mainfrom
docs/usability-foundation
Jul 18, 2026
Merged

docs+examples: usability foundation — getting-started guide + 5 pattern examples#3
mash180sx merged 1 commit into
mainfrom
docs/usability-foundation

Conversation

@mash180sx

Copy link
Copy Markdown
Contributor

Shifts focus from performance-proving to usability/adoption. First installment: a learning path and runnable examples for the patterns people actually use, plus a small ergonomics fix surfaced by dogfooding.

Examples (all run-verified)

  • hello_actor — the minimal actor (state, handle, lifecycle)
  • request_replyask request-reply (a zero-alloc KV store)
  • sharded — fan-out across cores (thread-per-core, no locks)
  • supervision — panic isolation + automatic restart
  • tokio_interop — embed AetherFlow as the state core inside a Tokio app (gradual adoption)

Docs

  • docs/guide.md — a 10-minute guide tying the examples into a learning path
  • README gains a "Learn by example" table

Ergonomics fix (found by dogfooding)

SendError / TrySendError Debug/Display no longer require T: Debug, so
send*(..).unwrap() works even for messages that carry a Responder (not Debug).
Added into_message() to recover the payload. Existing tests unaffected.

No public API removed; default build unchanged.

🤖 Generated with Claude Code

… 使い勝手改善

性能証明フェーズ完了 → 使いやすさ(採用)へ主戦場を移す第一弾。全例は実行検証済み:
- hello_actor: 最小の actor(状態・handle・ライフサイクル)
- request_reply: ask の request-reply(ゼロアロ KV ストア)
- sharded: N コアに fan-out(thread-per-core, ロック無し)
- supervision: panic 分離 + 自動 restart
- tokio_interop: AetherFlow を tokio アプリの state コアとして埋める(段階導入の鍵)
- docs/guide.md: 上記を学習パスに束ねた 10 分ガイド。README に例の表を追加。

dogfood で見つけた API 摩擦を修正: SendError/TrySendError の Debug/Display を
ペイロード非依存に(T: Debug 不要)→ Responder を運ぶメッセージでも send*(..).unwrap() が書ける。
into_message() も追加。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mash180sx
mash180sx merged commit 34aa0e8 into main Jul 18, 2026
3 checks passed
@mash180sx
mash180sx deleted the docs/usability-foundation branch July 18, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant