-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Choreographies should be able to figure out choice broadcasting #1
Comments
Indeed, with commit d714874 I had to do some funny work around branches: whenever you enter an Since decision communication is scoped to an |
HasChor does choice broadcasting automatically: Sec 3.3 says it's for convenience, but may lead to more communication than necessary. EDIT: the Choral paper has a longer discussion. https://dl.acm.org/doi/pdf/10.1145/3632398 Broadcasting seems like a very reasonable default! Can Chorex look ahead for choice-broadcast expressions and use the default only if there are none in the branch? |
Consider this example from the paper:
The paper goes on to say that only ℓ₃ never needs to be informed because its behavior is the same down both branches; not so for ℓ₂, since its behavior depends on what ℓ₁ decides at the test in the
if
.We should be able to figure out what parties actually need to know what the decision is and automatically add the decision-sending code by looking at the branches and analyzing how actors' behaviors differ. So, I'd like to be able to write:
Is this tantamount to asking, "how much can I lift out of the if?"
The text was updated successfully, but these errors were encountered: