~/bend-docscommunity

execution_resource_program.bend source

execution_resource_program.bend on the hub · documented module

import Baseimport ./execution_builder.bend as Buildimport ./execution_declaration.bend as Dimport ./execution_query_interpreter.bend as Queryimport ./execution_resource_interpreter.bend as Resource# The ordinary framework selects genuine interpreters for the same closed Program.# No caller-supplied permission catalog or dynamic invocation inventory enters caps.# Actual World admission still checks the retained full owners before invocation.def compile(~S:Data,~WC:Type,~C:Type,~R:Type,~Ops:Data -> (Type -> Type) -> Type -> Type,~program:Build.Program(~S,~WC,~C,~R,~Ops)) -> D.Compilation<S,WC,C,R,Ops>:  Build.compile_with_interpreters(~S,~WC,~C,~R,~Query.provider_dictionary(~S,~WC,~C,~R),~Resource.read_dictionary(~S,~C,~R),~Resource.write_dictionary(~S,~C,~R),~Ops,~program)# Trusted kernel variant uses the same closed interpreter selection.def compile_framework(~S:Data,~WC:Type,~C:Type,~R:Type,~Ops:Data -> (Type -> Type) -> Type -> Type,~program:Build.FrameworkProgram(~S,~WC,~C,~R,~Ops)) -> D.Compilation<S,WC,C,R,Ops>:  Build.compile_framework_with_interpreters(~S,~WC,~C,~R,~Query.provider_dictionary(~S,~WC,~C,~R),~Resource.read_dictionary(~S,~C,~R),~Resource.write_dictionary(~S,~C,~R),~Ops,~program)