execution_system.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/execution_system.bend as Execution_system
10 imports
import Base import ./execution_effects.bend as E import ./execution_state_effect.bend as StateEffect import ./world.bend as W import ./change_tick.bend as Tick import ./execution_state.bend as State import ./execution_declaration.bend as D import ./execution_builder.bend as Build import ./execution_reservation_authority.bend as Effect import ./execution_reservation_authority.bend as RuntimePermit
Types
type Completion source · line 12 · raw
@Error:Data -> @Out:Data -> Data
Success@Error:Data -> @Out:Data -> @output:Out -> Completion<Error, Out>
BodyError@Error:Data -> @Out:Data -> @error:Error -> @output:Out -> Completion<Error, Out>
type Owner source · line 17 · raw
@-S:Data -> @-WC:Type -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, WC, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> Type
Owner@-S:Data -> @-WC:Type -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, WC, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @namespace:U32 -> @id:U32 -> @name:String -> @access:List<&2, String> -> @cursor:Maybe<&2, 0x704c77730661eff4309838fc738ef615/change_tick.Tick> -> @local:Local -> Owner<S, WC, C, R, E, Ops, Local, Error, Out, declaration, body>
type Defined source · line 19 · raw
@-World:Type -> @-System:Type -> @-Local:Type -> Type
Defined@-World:Type -> @-System:Type -> @-Local:Type -> @world:World -> @system:System -> Defined<World, System, Local>
DefinitionRefused@-World:Type -> @-System:Type -> @-Local:Type -> @world:World -> @local:Local -> Defined<World, System, Local>
type RunResult source · line 22 · raw
@-World:Type -> @-System:Type -> @Error:Data -> @Out:Data -> Type
Executed@-World:Type -> @-System:Type -> @Error:Data -> @Out:Data -> @world:World -> @system:System -> @completion:Completion<Error, Out> -> RunResult<World, System, Error, Out>
Refused@-World:Type -> @-System:Type -> @Error:Data -> @Out:Data -> @world:World -> @system:System -> RunResult<World, System, Error, Out>
Definitions
def run_result source · line 69 · raw
@-Compilation:Type -> @-Result:Type -> @result:Pair(Compilation, Result) -> Result
Templates
template Body source · line 15 · raw
@-S:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> Type
template registered source · line 26 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @namespace:U32 -> @name:String -> @access:List<&2, String> -> @local:Local -> @result:Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, 0x704c77730661eff4309838fc738ef615/world.Registration) -> Defined<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Local>
template named_compilation source · line 30 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @+name:String -> @local:Local -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> @namespace:U32 -> @compilation:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> Defined<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Local>
template named source · line 36 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @+name:String -> @local:Local -> @result:Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, U32) -> Defined<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Local>
template define_framework source · line 40 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> @name:String -> @local:Local -> Defined<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Local>
template returned source · line 42 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @admin:0x704c77730661eff4309838fc738ef615/execution_state.Administration<S, C, R, E> -> @namespace:U32 -> @id:U32 -> @name:String -> @access:List<&2, String> -> @+tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @result:Pair(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>, Pair(0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>, Pair(Local, Completion<Error, Out>))) -> RunResult<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Error, Out>
template verified_registration source · line 46 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @same:Bool -> @result:Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Bool) -> Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Bool)
template trusted_run_scope source · line 49 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @-compiledCaps:Ops(0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Granted, 0x704c77730661eff4309838fc738ef615/execution_state_effect.Transition(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>), 0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>) -> @grant:0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Grant -> @compilation:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> @namespace:U32 -> @+id:U32 -> @name:String -> @access:List<&2, String> -> @prior:Maybe<&2, 0x704c77730661eff4309838fc738ef615/change_tick.Tick> -> @local:Local -> @+tick:0x704c77730661eff4309838fc738ef615/change_tick.Tick -> @separated:Pair(0x704c77730661eff4309838fc738ef615/execution_state.Administration<S, C, R, E>, Pair(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>, 0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>)) -> Pair(0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops>, RunResult<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Error, Out>)
template trusted_run_entered source · line 52 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @-compiledCaps:Ops(0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Granted, 0x704c77730661eff4309838fc738ef615/execution_state_effect.Transition(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>), 0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>) -> @grant:0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Grant -> @compilation:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> @namespace:U32 -> @id:U32 -> @name:String -> @access:List<&2, String> -> @prior:Maybe<&2, 0x704c77730661eff4309838fc738ef615/change_tick.Tick> -> @local:Local -> @entered:Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, 0x704c77730661eff4309838fc738ef615/change_tick.Tick) -> Pair(0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops>, RunResult<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Error, Out>)
template trusted_run_verified source · line 55 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @-compiledCaps:Ops(0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Granted, 0x704c77730661eff4309838fc738ef615/execution_state_effect.Transition(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>), 0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>) -> @grant:0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Grant -> @compilation:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> @system:Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body> -> @verified:Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Bool) -> Pair(0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops>, RunResult<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Error, Out>)
template trusted_run_namespace source · line 59 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @-compiledCaps:Ops(0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Granted, 0x704c77730661eff4309838fc738ef615/execution_state_effect.Transition(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>), 0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>) -> @grant:0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Grant -> @compilation:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> @system:Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body> -> @observed:Pair(0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, U32) -> Pair(0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops>, RunResult<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Error, Out>)
template trusted_run_retained_compilation source · line 62 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @-compiledCaps:Ops(0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Granted, 0x704c77730661eff4309838fc738ef615/execution_state_effect.Transition(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>), 0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>) -> @grant:0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Grant -> @compilation:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> @system:Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body> -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> Pair(0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops>, RunResult<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Error, Out>)
template run_retained_compilation source · line 66 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @-compiledCaps:Ops(0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Granted, 0x704c77730661eff4309838fc738ef615/execution_state_effect.Transition(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>), 0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>) -> @compilation:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> @system:Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body> -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> Pair(0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops>, RunResult<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Error, Out>)
template trusted_run_compilation source · line 72 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @-compiledCaps:Ops(0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Granted, 0x704c77730661eff4309838fc738ef615/execution_state_effect.Transition(0x704c77730661eff4309838fc738ef615/execution_state.Invocation<S>), 0x704c77730661eff4309838fc738ef615/execution_state.Scope<S, C, R>) -> @grant:0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Grant -> @compilation:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> @system:Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body> -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> RunResult<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Error, Out>
template trusted_run_constructed source · line 74 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @-compilation:0x704c77730661eff4309838fc738ef615/execution_declaration.Compilation<S, C, C, R, Ops> -> @grant:0x704c77730661eff4309838fc738ef615/execution_reservation_authority.Grant -> @system:Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body> -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> RunResult<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Error, Out>
template run source · line 76 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @system:Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body> -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> RunResult<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, declaration, body>, Error, Out>
template metadata source · line 79 · raw
@-S:Data -> @-WC:Type -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.FrameworkProgram(S, WC, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @system:Owner<S, WC, C, R, E, Ops, Local, Error, Out, declaration, body> -> Pair(Owner<S, WC, C, R, E, Ops, Local, Error, Out, declaration, body>, 0x704c77730661eff4309838fc738ef615/world.RegistrationMeta)
template define source · line 83 · raw
@-S:Data -> @-C:Type -> @-R:Type -> @-E:Data -> @-Ops:(@_:Data -> @_:(@_:Type -> Type) -> @_:Type -> Type) -> @-Local:Type -> @-Error:Data -> @-Out:Data -> @-declaration:0x704c77730661eff4309838fc738ef615/execution_builder.Program(S, C, C, R, Ops) -> @-body:Body(S, Ops, Local, Error, Out) -> @world:0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E> -> @name:String -> @local:Local -> Defined<0x704c77730661eff4309838fc738ef615/world.World<S, C, R, E>, Owner<S, C, C, R, E, Ops, Local, Error, Out, 0x704c77730661eff4309838fc738ef615/execution_builder.framework_program(S, C, C, R, Ops, declaration), body>, Local>