Elm Exactly

Rule 192p-out

TransitionsK→⟨ℓ⟩K′K\step{\opt{\ell}}K'
Q(p)=j⋅J(s,v,M,P,sb,Q,H)→out(p,j)(s,v,M,P,sb,Q+{p↦J},H)\frac{\begin{array}{c}Q(\effp)=j\cdot J\end{array}}{\begin{array}{c}(s,v,M,P,\sbv,Q,H)\step{\pgEvOut(\effp,j)}(s,v,M,P,\sbv,Q+\{\effp\mapsto J\},H)\end{array}}
(192)
Read it in its chapter·Permanent address: /standard/rules/p-out

Comments

The values of each port are delivered in the order in which they joined its queue, so a value sent by one update is delivered before a value that a later update sends on the same port. Delivery happens after the step that queued the value, at a time the definition does not fix, and in no fixed order across ports. The event records only that the program has delivered jj; whether the host has a subscriber, and what it does with jj, are outside the definition.

TeX source
\defnrule[r:p-out]
  {Q(\effp)=j\cdot J}
  {(s,v,M,P,\sbv,Q,H)\step{\pgEvOut(\effp,j)}(s,v,M,P,\sbv,Q+\{\effp\mapsto J\},H)}

Tests (6)

Discussions

Discuss this rule·Search the discussions on GitHub

Discussions are on GitHub; one about this rule has [r:p-out] in its title.

A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.