main.aug diagrams
Project overview · Compiled explanation
Class interactions
100%
Mermaid source
flowchart TD
n0["main.aug"]
n1["GpuError"]
n0 -->|"calls explain"| n1
Sequences
Call arrows identify checked targets; loop and branch frames determine when they run. Open that target’s module to follow its implementation. Branches describe alternatives; loops describe repeated work. Native calls and interface dispatch stop at their declared contracts. Exit notes end that path; enclosing recovery and cleanup remain visible.
Startup
100%
Mermaid source
sequenceDiagram
participant p0 as Startup
participant p1 as compute
participant p2 as August runtime
participant p3 as error: GpuError
opt Try body; stops on a checked failure
rect rgb(245, 240, 241)
Note over p0: Enter task scope
p0-)p1: calculate(left=[1.0, 2.0, 3.0], right=[4.0, 5.0, 6.0]) ·<br/>start asynchronously
Note over p0: Worker starts with an isolated heap and copied data
p0-)p1: calculate(left=[10.0, 20.0], right=[1.0, 2.0]) · start<br/>asynchronously
Note over p0: Worker starts with an isolated heap and copied data
Note over p0: Wait for first and second; failure cancels siblings and<br/>cleanup joins
loop For each item in firstResult
p0->>p2: print(value=value)
end
loop For each item in secondResult
p0->>p2: print(value=value)
end
Note over p0: Join tasks and release scoped resources
end
end
opt Catch GpuError
p0->>p3: explain()
p3-->>p0: explain result: string
p0->>p2: print(value=explain result)
p0->>p2: exit(status=1)
end
opt Catch ConcurrencyError
p0->>p2: print(value=”Worker capacity is exhausted”)
end
Called contracts
- calculate — compute.aug
- GpuError.explain — package/@greenpandastudios/aug-gpu@0.2.0/contracts.aug