docs+examples: usability foundation — getting-started guide + 5 pattern examples - #3
Merged
Merged
Conversation
… 使い勝手改善 性能証明フェーズ完了 → 使いやすさ(採用)へ主戦場を移す第一弾。全例は実行検証済み: - 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_reply—askrequest-reply (a zero-alloc KV store)sharded— fan-out across cores (thread-per-core, no locks)supervision— panic isolation + automatic restarttokio_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 pathErgonomics fix (found by dogfooding)
SendError/TrySendErrorDebug/Displayno longer requireT: Debug, sosend*(..).unwrap()works even for messages that carry aResponder(notDebug).Added
into_message()to recover the payload. Existing tests unaffected.No public API removed; default build unchanged.
🤖 Generated with Claude Code