Source/Packages

Runtime.NativeSocketPlan

packages/execution/src/Runtime/NativeSocketPlan.alpha

256 lines20 declarations10.0 KiBSHA-256 74d80a07b61a

def · lines 19–43

nativeSocketOperation

Full file
Target-local lowering of a bounded stream operation into the existing native program. Admission/liveness owns the buffer extent. The caller must assert the exact count before publishing destination visibility. Failures can leave a partial prefix and require abandonment of this edge/session. This declares the Linux x86-64 ABI. AArch64 HostLowering maps connected stream IO to its native realization; endpoint establishment still requires its own target support and is refused when that lowering is unavailable.
19def nativeSocketOperation =
20  (lambda unrestricted code : Bytes .
21    (lambda unrestricted descriptor : (family NativePhysicalOperand) .
22      (lambda unrestricted buffer : (family NativePhysicalOperand) .
23        (lambda unrestricted extent : (family NativePhysicalOperand) .
24          (lambda unrestricted timeoutMilliseconds : (family NativePhysicalOperand) .
25            (lambda unrestricted attempts : (family NativePhysicalOperand) .
26              (lambda unrestricted result : (family NativePhysicalResultBinding) .
27                (constructor
28                  NativePhysicalOperation
29                  NativePhysicalMachineRoutine
30                  code
31                  (constructor
32                    NativePhysicalArguments
33                    NativePhysicalArgumentsValue
34                    descriptor
35                    buffer
36                    extent
37                    timeoutMilliseconds
38                    attempts
39                    (constructor
40                      NativePhysicalOperand
41                      NativePhysicalImmediate
42                      (modelWord64FromNaturalTruncated 0)))
43                  result))))))))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.