~/bend-docscommunity

machine.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.3/machine.bend as Machine

1 import
import Base

Types

type Pending source · line 6 · raw

@V:Data -> Data

Experimental machine metadata. World and component owners remain arbitrary Type. This module follows the pinned reference marker snapshot semantics; that behavior is not approval of the disputed blanket next-marker retention requirement.

type Transition source · line 10 · raw

@V:Data -> Data

type Slot source · line 14 · raw

@S:Data -> @M:Data -> @V:Data -> Data

type CurrentView source · line 19 · raw

@S:Data -> @M:Data -> @V:Data -> Data

Public capability projections intentionally expose less than debug metadata.

type NextView source · line 22 · raw

@S:Data -> @M:Data -> @V:Data -> Data

type Family source · line 53 · raw

@S:Data -> @M:Data -> @V:Data -> @W:Type -> @-take:(@_:W -> Pair(W, Slot<S, M, V>)) -> @-put:(@_:W -> @_:Slot<S, M, V> -> W) -> Data

type QueueInput source · line 57 · raw

@V:Data -> Data

type Snapshot source · line 61 · raw

@V:Data -> Data

type Applied source · line 65 · raw

@S:Data -> @M:Data -> @V:Data -> Data

type Condition source · line 116 · raw

@V:Data -> Data

type Marker source · line 157 · raw

@S:Data -> @W:Type -> Type

A heterogeneous marker snapshot owns each callback exactly once. Each callback captures a Data machine value and closed lenses, never a world/component owner.

type OwnedMarker source · line 171 · raw

@S:Data -> @W:Type -> @H:Type -> Type

Registered schedule/transition owners live alongside the world and are also threaded, rather than copied into one closure per machine.

Definitions

def current_view_generic source · line 26 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> CurrentView<S, M, V>

def pending_view_generic source · line 33 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @pending:Pending<V> -> NextView<S, M, V>

def next_view_generic source · line 40 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> NextView<S, M, V>

def queue_generic source · line 68 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> @value:V -> @skipSame:Bool -> Slot<S, M, V>

def reset_generic source · line 76 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> Slot<S, M, V>

Templates

template current_view source · line 30 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> CurrentView<S, M, V>

template pending_view source · line 37 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @pending:Pending<V> -> NextView<S, M, V>

template next_view source · line 45 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> NextView<S, M, V>

template is_current source · line 48 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @view:CurrentView<S, M, V> -> @value:V -> Bool

template queue source · line 73 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> @value:V -> @skipSame:Bool -> Slot<S, M, V>

template reset source · line 81 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> Slot<S, M, V>

template clear_changed source · line 84 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> Slot<S, M, V>

template snapshot_pending source · line 89 · raw

@-V:Data -> @pending:Pending<V> -> Snapshot<V>

template snapshot source · line 94 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> Snapshot<V>

template apply_decision source · line 99 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @+current:V -> @+value:V -> @previous:Maybe<&2, V> -> @changed:Bool -> @skip:Bool -> Applied<S, M, V>

template apply_present source · line 104 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @+current:V -> @+value:V -> @previous:Maybe<&2, V> -> @changed:Bool -> @skipSame:Bool -> Applied<S, M, V>

template apply_snapshot source · line 109 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @slot:Slot<S, M, V> -> @captured:Snapshot<V> -> Applied<S, M, V>

Captured initial value is authoritative; current pending is deleted at the machine's turn, matching Runtime.ts:1534 even when an earlier hook overwrote it.

template current_matches source · line 124 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @slot:Slot<S, M, V> -> @value:V -> Bool

template changed source · line 129 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @slot:Slot<S, M, V> -> Bool

template all source · line 136 · raw

@-V:Data -> @items:List<&2, Condition<V>> -> Condition<V>

Arbitrary public variadic combinations become a structural Boolean tree. Empty and/or preserve the primary API identities.

template any source · line 141 · raw

@-V:Data -> @items:List<&2, Condition<V>> -> Condition<V>

template evaluate source · line 146 · raw

@-S:Data -> @-M:Data -> @-V:Data -> @-same:(@_:V -> @_:V -> Bool) -> @condition:Condition<V> -> @+slot:Slot<S, M, V> -> Bool

template marker_steps source · line 160 · raw

@-W:Type -> @steps:List<&1, @_:W -> W> -> @world:W -> W

template run_marker source · line 165 · raw

@-S:Data -> @-W:Type -> @marker:Marker<S, W> -> @world:W -> W

template marker_next source · line 174 · raw

@-W:Type -> @-H:Type -> @next:(@_:H -> @_:W -> Pair(H, W)) -> @pair:Pair(H, W) -> Pair(H, W)

template owned_marker_steps source · line 178 · raw

@-W:Type -> @-H:Type -> @steps:List<&1, @_:H -> @_:W -> Pair(H, W)> -> @owners:H -> @world:W -> Pair(H, W)

template run_owned_marker source · line 183 · raw

@-S:Data -> @-W:Type -> @-H:Type -> @marker:OwnedMarker<S, W, H> -> @owners:H -> @world:W -> Pair(H, W)