Provide MxAgents with a dual state model
@hyperthunk がすでに取り組んでいます。
2017年2月13日 から。
評価
この issue はまだ評価されていません。
説明
It's often the case that whilst initialising an agent might need to wait on other actors, so we should either copy the init >>= serve model from client-server, or provide a dual state monadic environment so we don't have code like this...
data AgentState = Booting | ActualState { f1 = ..., f2 = ... }
-- and inside a listener
startIt = mxAgent agentId Booting [ mxSink handlePeersReady, mxSink handleEvent ]
where
handleEvent Booting = mxSkip
handleEvent ActualState{...} = ...
And worse still, have to worry about the boot state when you're buried in implementation code...
forwardToServer _ HBAgentBoot = liftMX terminate -- state invariant
forwardToServer ev' HBAgent{ hbServer = sPid }
= liftMX (send sPid ev') >> mxReady
handleRestarts _ HBAgentBoot = liftMX terminate -- state invariant
handleRestarts pid sta@HBAgent{ hbServer = sPid' }
| pid == sPid' = restartBoth sta
| otherwise = mxReady
On the other hand, we want this API to remain as simple as possible, since here we're providing service and utility, and policy belongs elsewhere.
- 主要言語
- Haskell
- スター
- 753
- フォーク
- 101
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
haskell-distributed/distributed-process のほかの issue
-
enhancement Feature Request
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
haskell-distributed/distributed-process#486 · コメント 1 件 · リアクション 1 件 ·
-
discuss enhancement Feature Request
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
haskell-distributed/distributed-process#478 · コメント 4 件 · リアクション 3 件 ·
-
enhancement Feature Request
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
haskell-distributed/distributed-process#476 · リアクション 2 件 ·
-
Demonstrating the use of Cloud Haskell for a Raft implementation再び着手できるかも @LaurentRDC が 481 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement Feature Request
haskell-distributed/distributed-process#475 · リアクション 3 件 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
haskell-distributed/distributed-process#473 · コメント 4 件 · リアクション 1 件 ·
haskell-distributed/distributed-process の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
objectionary/phino#2059 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
NixOS/nixpkgs-update#586 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
wireapp/wire-server#5632 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100