Observe source-generated native typed graph composition
Browse files- README.md +20 -0
- research/native-composition-20261004/README.md +96 -0
- research/native-composition-20261004/build.json +1 -0
- research/native-composition-20261004/cases.json +12 -0
- research/native-composition-20261004/deterministic-0-checkpoint.gooo.fixture +48 -0
- research/native-composition-20261004/deterministic-0-composition.json +0 -0
- research/native-composition-20261004/deterministic-0-replay.json +0 -0
- research/native-composition-20261004/deterministic-0.json +0 -0
- research/native-composition-20261004/deterministic-1-checkpoint.gooo.fixture +48 -0
- research/native-composition-20261004/deterministic-1-composition.json +0 -0
- research/native-composition-20261004/deterministic-1-replay.json +0 -0
- research/native-composition-20261004/deterministic-1.json +0 -0
- research/native-composition-20261004/deterministic-2-checkpoint.gooo.fixture +48 -0
- research/native-composition-20261004/deterministic-2-composition.json +0 -0
- research/native-composition-20261004/deterministic-2-replay.json +0 -0
- research/native-composition-20261004/deterministic-2.json +0 -0
- research/native-composition-20261004/metrics.json +306 -0
- research/native-composition-20261004/model-0-checkpoint.gooo.fixture +48 -0
- research/native-composition-20261004/model-0-composition.json +0 -0
- research/native-composition-20261004/model-0-replay.json +0 -0
- research/native-composition-20261004/model-0.json +0 -0
- research/native-composition-20261004/model-1-checkpoint.gooo.fixture +48 -0
- research/native-composition-20261004/model-1-composition.json +0 -0
- research/native-composition-20261004/model-1-replay.json +0 -0
- research/native-composition-20261004/model-1.json +0 -0
- research/native-composition-20261004/model-2-checkpoint.gooo.fixture +48 -0
- research/native-composition-20261004/model-2-composition.json +0 -0
- research/native-composition-20261004/model-2-replay.json +0 -0
- research/native-composition-20261004/model-2.json +0 -0
- research/native-composition-20261004/source.gooo.fixture +42 -0
README.md
CHANGED
|
@@ -50,6 +50,26 @@ runtime72/72, four actual model predictions and normal EOF completion.
|
|
| 50 |
|
| 51 |
## ํ๊ตญ์ด ์์ฝ
|
| 52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
### ์ ํํ ๋ณธ๋ฌธ์ ๋ค์ ๊ฐ๋ฐ์ ์ด์ด ์ฐ๊ธฐ
|
| 54 |
|
| 55 |
๊ธฐ์ค ๋ณธ๋ฌธ๊ณผ ์ ํ ๊ฒฝ๋ก๋ฅผ Gooo์ ํจ๊ป ๊ธฐ๋กํ๋๋ก ๋ฐ์ ์์ผฐ์ต๋๋ค. ๋ชจ๋ธ์ด ๊ณ ๋ฅธ
|
|
|
|
| 50 |
|
| 51 |
## ํ๊ตญ์ด ์์ฝ
|
| 52 |
|
| 53 |
+
### ์ฌ๋ฌ ํ๋์ ์ฐ๊ฒฐํ ํ๋ก๊ทธ๋จ์ผ๋ก ์คํํ๊ธฐ
|
| 54 |
+
|
| 55 |
+
์ปดํ์ผ๋ฌ ๊ฐ๋ฐ ํ๋ณด `c00bd714`์ `body-compose`๋ Gooo `bind` ์ฐ๊ฒฐ์ ๋ฐ๋ผ ์ค์
|
| 56 |
+
๋ณธ๋ฌธ์ ํจ๊ป ์คํํฉ๋๋ค. ์ ์ ์กฐ๋ฆฝ ๋ ๊ฐ, ๋ถ๋ฆฌ์ธ ํ๋จ๊ณผ ๋ถ์ , ๊ฐ์ ๋ถ๊ธฐ ์ ๋ฌ,
|
| 57 |
+
๋ณ๋ ํ
์คํธ ์ฒ๋ฆฌ๊น์ง ์ผ๊ณฑ ํ๋์ ํ ๋ฒ์ Go ๋น๋๋ก ์ฐ๊ฒฐํ์ต๋๋ค. ๋ชจ๋ธ์
|
| 58 |
+
์์ฒญ ์์์ ํ ๋ฒ ๋ก๋ํ๊ณ ๋ ํ๋์ ๋ ๋ฒ ํ๋จํ์ต๋๋ค. ์ ์ฅํ ์ ์ฒด ์กฐ๋ฆฝ
|
| 59 |
+
๊ธฐ๋ก์ ์ฌ์คํ์ ์ถ๊ฐ ์ถ๋ก 0๋ฒ์
๋๋ค.
|
| 60 |
+
|
| 61 |
+
์ ์์ฑ ์ฌ์ฏ ๊ฑด๊ณผ ๋ณ๋ ์ ์ฅ ๊ธฐ๋ก ์ฌ์คํ ์ฌ์ฏ ๊ฑด์์ ์ ํ ์คํ ๊ธฐ๋๊ฐ
|
| 62 |
+
588/588, ์ค๊ฐ ๊ฐ 588๊ฐ, ์ฐ๊ฒฐ ์ ๋ฌ 420๊ฐ์ ์ค์ ์คํ 24ํ๋ฅผ ๊ธฐ๋กํ์ต๋๋ค.
|
| 63 |
+
์ฒซ ๋ชจ๋ธ ํ๋ณด๋ 0/6ยท1/3์ผ๋ก ์คํจํ๊ณ ์ ํ ํ
์คํธ ํ์์ผ๋ก ์ฃผ์ด์ง ์์๋ฅผ
|
| 64 |
+
์ถฉ์กฑํ์ต๋๋ค. ๊ฐ์ค์น๋ ์ ์งํ์ต๋๋ค. ์กฐ๋ฆฝ ์ค์๊ฐ์ ๋ชจ๋ธ 13.527msยท๊ฒฐ์ ๋ก
|
| 65 |
+
13.011ms์ด๋ฉฐ, ๋น๋์ ๋ ๋ฒ ์คํ์ ํฌํจํ ๋ช
๋ น ์ค์๊ฐ์ ์กฐ๊ฑด๋ณ 337.886โ469.090ms์
๋๋ค.
|
| 66 |
+
๋ฉ๋ชจ๋ฆฌ์ CPU ๊ธฐ๋ก์๋ Go ๋น๋ ์์๋ ํฌํจ๋ฉ๋๋ค. ์ธ ๋ฒ์ฉ์ ๊ณ ์ ์์ ๊ด์ธก์ด๋ฉฐ
|
| 67 |
+
์๋ ๊ฐ์ ์ด๋ ์ ์ฒด ์ปดํจํฐ CPU ์ฆ๊ฐ๋์ ํ๋จํ์ง ์์ต๋๋ค.
|
| 68 |
+
[์๋ณธยท์ฌํ ๋๊ตฌยท์ธก์ ๋ฒ์](research/native-composition-20261004/README.md),
|
| 69 |
+
[์ปดํ์ผ๋ฌ PR1219](https://github.com/kimjooyoon/meta-ontology-go/pull/1219),
|
| 70 |
+
[์ฐ๊ตฌ PR6](https://github.com/kimjooyoon/gooo-neural-decision-experiments/pull/6).
|
| 71 |
+
์ด ๊ธฐ๋ก์ main ๋ฐฐํฌ ์ ์ ์ ๊ฐ๋ฐ ํ๋ณด์์ ์์งํ์ต๋๋ค.
|
| 72 |
+
|
| 73 |
### ์ ํํ ๋ณธ๋ฌธ์ ๋ค์ ๊ฐ๋ฐ์ ์ด์ด ์ฐ๊ธฐ
|
| 74 |
|
| 75 |
๊ธฐ์ค ๋ณธ๋ฌธ๊ณผ ์ ํ ๊ฒฝ๋ก๋ฅผ Gooo์ ํจ๊ป ๊ธฐ๋กํ๋๋ก ๋ฐ์ ์์ผฐ์ต๋๋ค. ๋ชจ๋ธ์ด ๊ณ ๋ฅธ
|
research/native-composition-20261004/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Native composition of Gooo activity bodies
|
| 2 |
+
|
| 3 |
+
2026-10-04, macOS arm64. Clean compiler candidate
|
| 4 |
+
`c00bd714b4aa8cefc68c2b4d2ccca54fb079b3ed`, Go1.27.1, SDK v0.2.21-experimental;
|
| 5 |
+
compiler [PR1219](https://github.com/kimjooyoon/meta-ontology-go/pull/1219).
|
| 6 |
+
`build.json` records the actual executable identity. These observations precede
|
| 7 |
+
the main promotion and retain this candidate revision.
|
| 8 |
+
|
| 9 |
+
## One connected program
|
| 10 |
+
|
| 11 |
+
The source declares seven activities and five typed binds. Two activities use
|
| 12 |
+
source-owned integer assembly; their result flows through a range limiter,
|
| 13 |
+
an Integer -> Boolean judgment, a Boolean -> Boolean inversion and an integer
|
| 14 |
+
fanout. An independent Text root feeds a Text -> Boolean activity. Seven cases
|
| 15 |
+
cover ordinary/boundary values, exact int64 maximum, empty text, Korean and emoji.
|
| 16 |
+
Each case supplies both root inputs and seven named output expectations.
|
| 17 |
+
|
| 18 |
+
The compiler retains one optional local model across both assembly activities,
|
| 19 |
+
emits the graph's typed driver, builds it once and immediately runs it twice.
|
| 20 |
+
The actual model is the unchanged own `set-feedback` FP32 model: metadata
|
| 21 |
+
`e9d7f4770d4d8402c64eea116028e6d6c049b1522f50f399c05f2c3571932a3b`, weights
|
| 22 |
+
`f5af1e35288cbad938d8416dd51873d83dff369a0e0c6e7e16f6e1f75b7f429b`,
|
| 23 |
+
resident tensor bytes74,624. There was no new training or Laya inference.
|
| 24 |
+
|
| 25 |
+
The first model candidate remains weak: Assemble0/6 and Clamp1/3. Bounded tests
|
| 26 |
+
selected a successful body after two and four candidates respectively. Both
|
| 27 |
+
model and deterministic routes satisfy the supplied graph expectations, while
|
| 28 |
+
their Clamp implementations and resulting source/code hashes differ. Each
|
| 29 |
+
route has a fixed source/code/driver after three consecutive constructions.
|
| 30 |
+
|
| 31 |
+
## Controls and finite counts
|
| 32 |
+
|
| 33 |
+
There are **six fresh generations** (two modes ร three stages) and **six separate
|
| 34 |
+
saved-composition replays**. This is one authored graph with repeated controls.
|
| 35 |
+
|
| 36 |
+
- Fresh generation selection:54/54 supplied activity cases across six constructions.
|
| 37 |
+
- Twelve independent graph controls:588/588 supplied runtime expectations.
|
| 38 |
+
- Actual intermediate values588 and declared edge deliveries420, in canonical order.
|
| 39 |
+
- Twenty-four fresh native runs after twelve builds; both executions agree per control.
|
| 40 |
+
- Six actual joint predictions:two per model generation, zero for deterministic
|
| 41 |
+
construction or saved-composition replay.
|
| 42 |
+
|
| 43 |
+
The saved replays retain earlier model/selection receipts. Their stored prediction
|
| 44 |
+
counts are recorded separately from actual calls in that replay. No additional
|
| 45 |
+
generation accuracy, model loading or selection is attributed to saved replay.
|
| 46 |
+
The observer rejects missing runtime, trace, compiler and prediction-count fields.
|
| 47 |
+
The generation selection suite and graph runtime cases overlap; these are finite
|
| 48 |
+
behavior observations with no held-out or universal accuracy claim.
|
| 49 |
+
|
| 50 |
+
## Process time and memory
|
| 51 |
+
|
| 52 |
+
| Mode / control | Generation median | Full CLI median | Compiled replay phase median | Process max RSS range |
|
| 53 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 54 |
+
| Model, fresh construction |13.527ms |374.219ms |354.409ms |81.91โ83.30MiB |
|
| 55 |
+
| Model, saved replay |0ms new generation |469.090ms |453.724ms |81.03โ82.52MiB |
|
| 56 |
+
| Deterministic, fresh construction |13.011ms |346.143ms |322.474ms |82.50โ82.98MiB |
|
| 57 |
+
| Deterministic, saved replay |0ms new generation |337.886ms |322.000ms |81.66โ82.34MiB |
|
| 58 |
+
|
| 59 |
+
Each median has three fixed-order samples, with existing Go build cache and
|
| 60 |
+
concurrent CI/development activity. Saved replay was slower for the model group
|
| 61 |
+
in this small observation; no latency improvement is concluded. Generation time
|
| 62 |
+
covers graph checks, source lowering, model loading/ranking, bounded tests and
|
| 63 |
+
emission. The compiled replay phase includes source/selection reconstruction,
|
| 64 |
+
one native build and two graph executions.
|
| 65 |
+
|
| 66 |
+
BSD process user/system CPU time and maximum RSS include children, including the
|
| 67 |
+
native Go build. Full-command CPU medians were69.32โ75.11% of one core based on
|
| 68 |
+
these rounded time samples. Whole-computer CPU utilization increase was not
|
| 69 |
+
observed. The model's74,624 tensor bytes are distinct from process/build memory.
|
| 70 |
+
Per-child build and native-run CPU/RSS observations are retained in each JSON.
|
| 71 |
+
|
| 72 |
+
## Reproduce
|
| 73 |
+
|
| 74 |
+
```sh
|
| 75 |
+
go run ./cmd/native-composition-observe \
|
| 76 |
+
-gooo /path/to/clean/gooo \
|
| 77 |
+
-compiler-source c00bd714b4aa8cefc68c2b4d2ccca54fb079b3ed \
|
| 78 |
+
-source publication/native-composition-20261004/source.gooo.fixture \
|
| 79 |
+
-cases publication/native-composition-20261004/cases.json \
|
| 80 |
+
-model /path/to/own-three-feedback-v1/set-feedback/models/fp32/model.json \
|
| 81 |
+
-private-out /tmp/gooo-composition-raw \
|
| 82 |
+
-out /tmp/gooo-composition-public
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
Both output directories must be new. The observer measures macOS BSD time;
|
| 86 |
+
compiler graph unit/native tests also run in Linux CI. `model-0.json` is a fresh
|
| 87 |
+
generation and native execution; `model-0-replay.json` is its separate saved
|
| 88 |
+
replay. Each `*-composition.json` can be supplied to `body-compose --composition`.
|
| 89 |
+
Checkpoint sources become the next stage's input. Full generation observations
|
| 90 |
+
and original expected/actual traces are published; local resource logs remain
|
| 91 |
+
in the private measurement directory. Files contain fixed public examples.
|
| 92 |
+
|
| 93 |
+
[Compiler usage and bounds](https://github.com/kimjooyoon/meta-ontology-go/blob/agent/native-body-composition-20261004/docs/native-body-composition.md).
|
| 94 |
+
Record-valued bodies, joins, calls, loops and cross-invocation feedback remain
|
| 95 |
+
further language work. The seven-stage example advances actual-body composition;
|
| 96 |
+
it does not close the complete domain handoff scope of compiler issue874.
|
research/native-composition-20261004/build.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"schema":"gooo/build-identity/v1","language":"gooo","version":"0.6.0-dev","status":"development","build_info_observed":true,"go_version":"go1.27.1","module_version":"v0.6.0-dev.0.20261004093335-c00bd714b4aa","compiler_source_sha":"c00bd714b4aa8cefc68c2b4d2ccca54fb079b3ed","source_status":"CLEAN_VCS","vcs_revision":"c00bd714b4aa8cefc68c2b4d2ccca54fb079b3ed","vcs_modified":"false","decision_runtime":{"module_path":"github.com/kimjooyoon/gooo-decision-runtime","version":"v0.2.21-experimental","replaced":false},"native_go_required":"go1.27.1"}
|
research/native-composition-20261004/cases.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "gooo/body-composition-cases/v1",
|
| 3 |
+
"cases": [
|
| 4 |
+
{"inputs": {"Assemble": -8, "Decorate": "gooo"}, "expected": {"Assemble": 15, "Clamp": 10, "IsPositive": true, "Invert": false, "Twice": 30, "Decorate": "gooo!", "Same": true}},
|
| 5 |
+
{"inputs": {"Assemble": -1, "Decorate": "์ธ์ด"}, "expected": {"Assemble": 8, "Clamp": 8, "IsPositive": true, "Invert": false, "Twice": 16, "Decorate": "์ธ์ด!", "Same": false}},
|
| 6 |
+
{"inputs": {"Assemble": 0, "Decorate": ""}, "expected": {"Assemble": 7, "Clamp": 7, "IsPositive": true, "Invert": false, "Twice": 14, "Decorate": "!", "Same": false}},
|
| 7 |
+
{"inputs": {"Assemble": 3, "Decorate": "gooo"}, "expected": {"Assemble": 4, "Clamp": 4, "IsPositive": true, "Invert": false, "Twice": 8, "Decorate": "gooo!", "Same": true}},
|
| 8 |
+
{"inputs": {"Assemble": 7, "Decorate": "Gooo"}, "expected": {"Assemble": 0, "Clamp": 0, "IsPositive": false, "Invert": true, "Twice": 0, "Decorate": "Gooo!", "Same": false}},
|
| 9 |
+
{"inputs": {"Assemble": 9, "Decorate": "๐"}, "expected": {"Assemble": -2, "Clamp": 0, "IsPositive": false, "Invert": true, "Twice": -4, "Decorate": "๐!", "Same": false}},
|
| 10 |
+
{"inputs": {"Assemble": 9223372036854775807, "Decorate": "gooo"}, "expected": {"Assemble": -9223372036854775800, "Clamp": 0, "IsPositive": false, "Invert": true, "Twice": 16, "Decorate": "gooo!", "Same": true}}
|
| 11 |
+
]
|
| 12 |
+
}
|
research/native-composition-20261004/deterministic-0-checkpoint.gooo.fixture
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package composition
|
| 2 |
+
namespace composition
|
| 3 |
+
entity Integer id "composition://integer"
|
| 4 |
+
entity Boolean id "composition://boolean"
|
| 5 |
+
entity Text id "composition://text"
|
| 6 |
+
|
| 7 |
+
activity Assemble(Integer) -> Integer computes "let a = (1 - input)\nlet b = (3 - a)\nreturn (9 - b)" assembling {
|
| 8 |
+
baseline "let a = input - 1\nlet b = a - 3\nreturn b - 9"
|
| 9 |
+
picked "first" -> "layout_reverse"
|
| 10 |
+
picked "second" -> "layout_reverse"
|
| 11 |
+
picked "third" -> "layout_reverse"
|
| 12 |
+
choice "first" operand_order at "0" intent "์ฒซ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the first operands."
|
| 13 |
+
choice "second" operand_order at "1" intent "๋ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the second operands."
|
| 14 |
+
choice "third" operand_order at "2" intent "์ธ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the third operands."
|
| 15 |
+
case "-8" -> "15"
|
| 16 |
+
case "-1" -> "8"
|
| 17 |
+
case "0" -> "7"
|
| 18 |
+
case "3" -> "4"
|
| 19 |
+
case "4" -> "3"
|
| 20 |
+
case "9" -> "-2"
|
| 21 |
+
attempts "8"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
activity Clamp(Integer) -> Integer computes "if (input < 0) {\n\treturn 0\n} else {\n\tif (input < 10) {\n\t\treturn input\n\t} else {\n\t\treturn 10\n\t}\n}" assembling {
|
| 25 |
+
baseline "if input < 0 { return 0 } else if input < 10 { return input } else { return 10 }"
|
| 26 |
+
picked "lower-branch" -> "layout_forward"
|
| 27 |
+
picked "upper-comparison" -> "layout_forward"
|
| 28 |
+
picked "middle-branch" -> "layout_forward"
|
| 29 |
+
choice "lower-branch" branch_layout at "0" intent "์์์ด๋ฉด 0์ ๋ฐํํ๋ค. Return zero for negative input."
|
| 30 |
+
choice "upper-comparison" operand_order at "1" intent "์
๋ ฅ์ด 10๋ณด๋ค ์์์ง ํ์ธํ๋ค. Check input below ten."
|
| 31 |
+
choice "middle-branch" branch_layout at "1" intent "์ค๊ฐ ๋ฒ์๋ ์
๋ ฅ์, ๊ทธ ์ด์์ 10์ ๋ฐํํ๋ค. Return input in the middle range, otherwise ten."
|
| 32 |
+
case "-1" -> "0"
|
| 33 |
+
case "5" -> "5"
|
| 34 |
+
case "11" -> "10"
|
| 35 |
+
attempts "8"
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
activity IsPositive(Integer) -> Boolean computes "return input > 0"
|
| 39 |
+
activity Invert(Boolean) -> Boolean computes "return !input"
|
| 40 |
+
activity Twice(Integer) -> Integer computes "return input * 2"
|
| 41 |
+
activity Decorate(Text) -> Text computes `return input + "!"`
|
| 42 |
+
activity Same(Text) -> Boolean computes `return input == "gooo!"`
|
| 43 |
+
|
| 44 |
+
bind Assemble.result -> Clamp.input
|
| 45 |
+
bind Clamp.result -> IsPositive.input
|
| 46 |
+
bind IsPositive.result -> Invert.input
|
| 47 |
+
bind Assemble.result -> Twice.input
|
| 48 |
+
bind Decorate.result -> Same.input
|
research/native-composition-20261004/deterministic-0-composition.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/deterministic-0-replay.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/deterministic-0.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/deterministic-1-checkpoint.gooo.fixture
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package composition
|
| 2 |
+
namespace composition
|
| 3 |
+
entity Integer id "composition://integer"
|
| 4 |
+
entity Boolean id "composition://boolean"
|
| 5 |
+
entity Text id "composition://text"
|
| 6 |
+
|
| 7 |
+
activity Assemble(Integer) -> Integer computes "let a = (1 - input)\nlet b = (3 - a)\nreturn (9 - b)" assembling {
|
| 8 |
+
baseline "let a = input - 1\nlet b = a - 3\nreturn b - 9"
|
| 9 |
+
picked "first" -> "layout_reverse"
|
| 10 |
+
picked "second" -> "layout_reverse"
|
| 11 |
+
picked "third" -> "layout_reverse"
|
| 12 |
+
choice "first" operand_order at "0" intent "์ฒซ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the first operands."
|
| 13 |
+
choice "second" operand_order at "1" intent "๋ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the second operands."
|
| 14 |
+
choice "third" operand_order at "2" intent "์ธ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the third operands."
|
| 15 |
+
case "-8" -> "15"
|
| 16 |
+
case "-1" -> "8"
|
| 17 |
+
case "0" -> "7"
|
| 18 |
+
case "3" -> "4"
|
| 19 |
+
case "4" -> "3"
|
| 20 |
+
case "9" -> "-2"
|
| 21 |
+
attempts "8"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
activity Clamp(Integer) -> Integer computes "if (input < 0) {\n\treturn 0\n} else {\n\tif (input < 10) {\n\t\treturn input\n\t} else {\n\t\treturn 10\n\t}\n}" assembling {
|
| 25 |
+
baseline "if input < 0 { return 0 } else if input < 10 { return input } else { return 10 }"
|
| 26 |
+
picked "lower-branch" -> "layout_forward"
|
| 27 |
+
picked "upper-comparison" -> "layout_forward"
|
| 28 |
+
picked "middle-branch" -> "layout_forward"
|
| 29 |
+
choice "lower-branch" branch_layout at "0" intent "์์์ด๋ฉด 0์ ๋ฐํํ๋ค. Return zero for negative input."
|
| 30 |
+
choice "upper-comparison" operand_order at "1" intent "์
๋ ฅ์ด 10๋ณด๋ค ์์์ง ํ์ธํ๋ค. Check input below ten."
|
| 31 |
+
choice "middle-branch" branch_layout at "1" intent "์ค๊ฐ ๋ฒ์๋ ์
๋ ฅ์, ๊ทธ ์ด์์ 10์ ๋ฐํํ๋ค. Return input in the middle range, otherwise ten."
|
| 32 |
+
case "-1" -> "0"
|
| 33 |
+
case "5" -> "5"
|
| 34 |
+
case "11" -> "10"
|
| 35 |
+
attempts "8"
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
activity IsPositive(Integer) -> Boolean computes "return input > 0"
|
| 39 |
+
activity Invert(Boolean) -> Boolean computes "return !input"
|
| 40 |
+
activity Twice(Integer) -> Integer computes "return input * 2"
|
| 41 |
+
activity Decorate(Text) -> Text computes `return input + "!"`
|
| 42 |
+
activity Same(Text) -> Boolean computes `return input == "gooo!"`
|
| 43 |
+
|
| 44 |
+
bind Assemble.result -> Clamp.input
|
| 45 |
+
bind Clamp.result -> IsPositive.input
|
| 46 |
+
bind IsPositive.result -> Invert.input
|
| 47 |
+
bind Assemble.result -> Twice.input
|
| 48 |
+
bind Decorate.result -> Same.input
|
research/native-composition-20261004/deterministic-1-composition.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/deterministic-1-replay.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/deterministic-1.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/deterministic-2-checkpoint.gooo.fixture
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package composition
|
| 2 |
+
namespace composition
|
| 3 |
+
entity Integer id "composition://integer"
|
| 4 |
+
entity Boolean id "composition://boolean"
|
| 5 |
+
entity Text id "composition://text"
|
| 6 |
+
|
| 7 |
+
activity Assemble(Integer) -> Integer computes "let a = (1 - input)\nlet b = (3 - a)\nreturn (9 - b)" assembling {
|
| 8 |
+
baseline "let a = input - 1\nlet b = a - 3\nreturn b - 9"
|
| 9 |
+
picked "first" -> "layout_reverse"
|
| 10 |
+
picked "second" -> "layout_reverse"
|
| 11 |
+
picked "third" -> "layout_reverse"
|
| 12 |
+
choice "first" operand_order at "0" intent "์ฒซ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the first operands."
|
| 13 |
+
choice "second" operand_order at "1" intent "๋ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the second operands."
|
| 14 |
+
choice "third" operand_order at "2" intent "์ธ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the third operands."
|
| 15 |
+
case "-8" -> "15"
|
| 16 |
+
case "-1" -> "8"
|
| 17 |
+
case "0" -> "7"
|
| 18 |
+
case "3" -> "4"
|
| 19 |
+
case "4" -> "3"
|
| 20 |
+
case "9" -> "-2"
|
| 21 |
+
attempts "8"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
activity Clamp(Integer) -> Integer computes "if (input < 0) {\n\treturn 0\n} else {\n\tif (input < 10) {\n\t\treturn input\n\t} else {\n\t\treturn 10\n\t}\n}" assembling {
|
| 25 |
+
baseline "if input < 0 { return 0 } else if input < 10 { return input } else { return 10 }"
|
| 26 |
+
picked "lower-branch" -> "layout_forward"
|
| 27 |
+
picked "upper-comparison" -> "layout_forward"
|
| 28 |
+
picked "middle-branch" -> "layout_forward"
|
| 29 |
+
choice "lower-branch" branch_layout at "0" intent "์์์ด๋ฉด 0์ ๋ฐํํ๋ค. Return zero for negative input."
|
| 30 |
+
choice "upper-comparison" operand_order at "1" intent "์
๋ ฅ์ด 10๋ณด๋ค ์์์ง ํ์ธํ๋ค. Check input below ten."
|
| 31 |
+
choice "middle-branch" branch_layout at "1" intent "์ค๊ฐ ๋ฒ์๋ ์
๋ ฅ์, ๊ทธ ์ด์์ 10์ ๋ฐํํ๋ค. Return input in the middle range, otherwise ten."
|
| 32 |
+
case "-1" -> "0"
|
| 33 |
+
case "5" -> "5"
|
| 34 |
+
case "11" -> "10"
|
| 35 |
+
attempts "8"
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
activity IsPositive(Integer) -> Boolean computes "return input > 0"
|
| 39 |
+
activity Invert(Boolean) -> Boolean computes "return !input"
|
| 40 |
+
activity Twice(Integer) -> Integer computes "return input * 2"
|
| 41 |
+
activity Decorate(Text) -> Text computes `return input + "!"`
|
| 42 |
+
activity Same(Text) -> Boolean computes `return input == "gooo!"`
|
| 43 |
+
|
| 44 |
+
bind Assemble.result -> Clamp.input
|
| 45 |
+
bind Clamp.result -> IsPositive.input
|
| 46 |
+
bind IsPositive.result -> Invert.input
|
| 47 |
+
bind Assemble.result -> Twice.input
|
| 48 |
+
bind Decorate.result -> Same.input
|
research/native-composition-20261004/deterministic-2-composition.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/deterministic-2-replay.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/deterministic-2.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/metrics.json
ADDED
|
@@ -0,0 +1,306 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "gooo/native-composition-observation/v1",
|
| 3 |
+
"scope": "One seven-activity graph, two modes, three consecutive generations each and six separate saved replays; seven cases and 49 named expectations per control; process resources include native build/children; fixed order and warm cache; no host utilization or accuracy gain claim",
|
| 4 |
+
"rows": [
|
| 5 |
+
{
|
| 6 |
+
"mode": "model",
|
| 7 |
+
"stage": 0,
|
| 8 |
+
"replayed": false,
|
| 9 |
+
"resources": {
|
| 10 |
+
"wall_ms": 1912.998333,
|
| 11 |
+
"user_seconds": 0.18,
|
| 12 |
+
"system_seconds": 0.12,
|
| 13 |
+
"maximum_resident_bytes": 85884928
|
| 14 |
+
},
|
| 15 |
+
"generation_ms": 41.929167,
|
| 16 |
+
"runtime_ms": 1824.047375,
|
| 17 |
+
"actual_model_calls": 2,
|
| 18 |
+
"stored_generation_model_calls": 2,
|
| 19 |
+
"selection_passed": 9,
|
| 20 |
+
"selection_total": 9,
|
| 21 |
+
"runtime_passed": 49,
|
| 22 |
+
"runtime_total": 49,
|
| 23 |
+
"observed_values": 49,
|
| 24 |
+
"observed_edge_deliveries": 35,
|
| 25 |
+
"native_runs": 2,
|
| 26 |
+
"gooo_sha256": "sha256:149d63ae43c0a0644cd43ffa6574f2429fae082b82f213e3c9be6ec18bee46cf",
|
| 27 |
+
"generated_go_sha256": "sha256:763a4d0f443a5a0963739965aae0500368c73615b86ad47b75778e32946da192",
|
| 28 |
+
"driver_sha256": "sha256:b69f1add64ed132f6c781dc1e1abb7765edd14d7caa2c2a3f09bc8a98c82bcaa"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"mode": "model",
|
| 32 |
+
"stage": 0,
|
| 33 |
+
"replayed": true,
|
| 34 |
+
"resources": {
|
| 35 |
+
"wall_ms": 469.090334,
|
| 36 |
+
"user_seconds": 0.15,
|
| 37 |
+
"system_seconds": 0.1,
|
| 38 |
+
"maximum_resident_bytes": 86523904
|
| 39 |
+
},
|
| 40 |
+
"generation_ms": 0,
|
| 41 |
+
"runtime_ms": 453.724416,
|
| 42 |
+
"actual_model_calls": 0,
|
| 43 |
+
"stored_generation_model_calls": 2,
|
| 44 |
+
"selection_passed": 9,
|
| 45 |
+
"selection_total": 9,
|
| 46 |
+
"runtime_passed": 49,
|
| 47 |
+
"runtime_total": 49,
|
| 48 |
+
"observed_values": 49,
|
| 49 |
+
"observed_edge_deliveries": 35,
|
| 50 |
+
"native_runs": 2,
|
| 51 |
+
"gooo_sha256": "sha256:149d63ae43c0a0644cd43ffa6574f2429fae082b82f213e3c9be6ec18bee46cf",
|
| 52 |
+
"generated_go_sha256": "sha256:763a4d0f443a5a0963739965aae0500368c73615b86ad47b75778e32946da192",
|
| 53 |
+
"driver_sha256": "sha256:b69f1add64ed132f6c781dc1e1abb7765edd14d7caa2c2a3f09bc8a98c82bcaa"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"mode": "model",
|
| 57 |
+
"stage": 1,
|
| 58 |
+
"replayed": false,
|
| 59 |
+
"resources": {
|
| 60 |
+
"wall_ms": 374.218584,
|
| 61 |
+
"user_seconds": 0.16,
|
| 62 |
+
"system_seconds": 0.11,
|
| 63 |
+
"maximum_resident_bytes": 85901312
|
| 64 |
+
},
|
| 65 |
+
"generation_ms": 11.5815,
|
| 66 |
+
"runtime_ms": 354.409167,
|
| 67 |
+
"actual_model_calls": 2,
|
| 68 |
+
"stored_generation_model_calls": 2,
|
| 69 |
+
"selection_passed": 9,
|
| 70 |
+
"selection_total": 9,
|
| 71 |
+
"runtime_passed": 49,
|
| 72 |
+
"runtime_total": 49,
|
| 73 |
+
"observed_values": 49,
|
| 74 |
+
"observed_edge_deliveries": 35,
|
| 75 |
+
"native_runs": 2,
|
| 76 |
+
"gooo_sha256": "sha256:149d63ae43c0a0644cd43ffa6574f2429fae082b82f213e3c9be6ec18bee46cf",
|
| 77 |
+
"generated_go_sha256": "sha256:763a4d0f443a5a0963739965aae0500368c73615b86ad47b75778e32946da192",
|
| 78 |
+
"driver_sha256": "sha256:b69f1add64ed132f6c781dc1e1abb7765edd14d7caa2c2a3f09bc8a98c82bcaa"
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"mode": "model",
|
| 82 |
+
"stage": 1,
|
| 83 |
+
"replayed": true,
|
| 84 |
+
"resources": {
|
| 85 |
+
"wall_ms": 504.891291,
|
| 86 |
+
"user_seconds": 0.21,
|
| 87 |
+
"system_seconds": 0.14,
|
| 88 |
+
"maximum_resident_bytes": 85606400
|
| 89 |
+
},
|
| 90 |
+
"generation_ms": 0,
|
| 91 |
+
"runtime_ms": 491.204084,
|
| 92 |
+
"actual_model_calls": 0,
|
| 93 |
+
"stored_generation_model_calls": 2,
|
| 94 |
+
"selection_passed": 9,
|
| 95 |
+
"selection_total": 9,
|
| 96 |
+
"runtime_passed": 49,
|
| 97 |
+
"runtime_total": 49,
|
| 98 |
+
"observed_values": 49,
|
| 99 |
+
"observed_edge_deliveries": 35,
|
| 100 |
+
"native_runs": 2,
|
| 101 |
+
"gooo_sha256": "sha256:149d63ae43c0a0644cd43ffa6574f2429fae082b82f213e3c9be6ec18bee46cf",
|
| 102 |
+
"generated_go_sha256": "sha256:763a4d0f443a5a0963739965aae0500368c73615b86ad47b75778e32946da192",
|
| 103 |
+
"driver_sha256": "sha256:b69f1add64ed132f6c781dc1e1abb7765edd14d7caa2c2a3f09bc8a98c82bcaa"
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"mode": "model",
|
| 107 |
+
"stage": 2,
|
| 108 |
+
"replayed": false,
|
| 109 |
+
"resources": {
|
| 110 |
+
"wall_ms": 362.142792,
|
| 111 |
+
"user_seconds": 0.16,
|
| 112 |
+
"system_seconds": 0.11,
|
| 113 |
+
"maximum_resident_bytes": 87343104
|
| 114 |
+
},
|
| 115 |
+
"generation_ms": 13.527459,
|
| 116 |
+
"runtime_ms": 337.974333,
|
| 117 |
+
"actual_model_calls": 2,
|
| 118 |
+
"stored_generation_model_calls": 2,
|
| 119 |
+
"selection_passed": 9,
|
| 120 |
+
"selection_total": 9,
|
| 121 |
+
"runtime_passed": 49,
|
| 122 |
+
"runtime_total": 49,
|
| 123 |
+
"observed_values": 49,
|
| 124 |
+
"observed_edge_deliveries": 35,
|
| 125 |
+
"native_runs": 2,
|
| 126 |
+
"gooo_sha256": "sha256:149d63ae43c0a0644cd43ffa6574f2429fae082b82f213e3c9be6ec18bee46cf",
|
| 127 |
+
"generated_go_sha256": "sha256:763a4d0f443a5a0963739965aae0500368c73615b86ad47b75778e32946da192",
|
| 128 |
+
"driver_sha256": "sha256:b69f1add64ed132f6c781dc1e1abb7765edd14d7caa2c2a3f09bc8a98c82bcaa"
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"mode": "model",
|
| 132 |
+
"stage": 2,
|
| 133 |
+
"replayed": true,
|
| 134 |
+
"resources": {
|
| 135 |
+
"wall_ms": 341.542875,
|
| 136 |
+
"user_seconds": 0.15,
|
| 137 |
+
"system_seconds": 0.11,
|
| 138 |
+
"maximum_resident_bytes": 84967424
|
| 139 |
+
},
|
| 140 |
+
"generation_ms": 0,
|
| 141 |
+
"runtime_ms": 322.843167,
|
| 142 |
+
"actual_model_calls": 0,
|
| 143 |
+
"stored_generation_model_calls": 2,
|
| 144 |
+
"selection_passed": 9,
|
| 145 |
+
"selection_total": 9,
|
| 146 |
+
"runtime_passed": 49,
|
| 147 |
+
"runtime_total": 49,
|
| 148 |
+
"observed_values": 49,
|
| 149 |
+
"observed_edge_deliveries": 35,
|
| 150 |
+
"native_runs": 2,
|
| 151 |
+
"gooo_sha256": "sha256:149d63ae43c0a0644cd43ffa6574f2429fae082b82f213e3c9be6ec18bee46cf",
|
| 152 |
+
"generated_go_sha256": "sha256:763a4d0f443a5a0963739965aae0500368c73615b86ad47b75778e32946da192",
|
| 153 |
+
"driver_sha256": "sha256:b69f1add64ed132f6c781dc1e1abb7765edd14d7caa2c2a3f09bc8a98c82bcaa"
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"mode": "deterministic",
|
| 157 |
+
"stage": 0,
|
| 158 |
+
"replayed": false,
|
| 159 |
+
"resources": {
|
| 160 |
+
"wall_ms": 343.537666,
|
| 161 |
+
"user_seconds": 0.15,
|
| 162 |
+
"system_seconds": 0.11,
|
| 163 |
+
"maximum_resident_bytes": 87015424
|
| 164 |
+
},
|
| 165 |
+
"generation_ms": 10.381375,
|
| 166 |
+
"runtime_ms": 322.47425,
|
| 167 |
+
"actual_model_calls": 0,
|
| 168 |
+
"stored_generation_model_calls": 0,
|
| 169 |
+
"selection_passed": 9,
|
| 170 |
+
"selection_total": 9,
|
| 171 |
+
"runtime_passed": 49,
|
| 172 |
+
"runtime_total": 49,
|
| 173 |
+
"observed_values": 49,
|
| 174 |
+
"observed_edge_deliveries": 35,
|
| 175 |
+
"native_runs": 2,
|
| 176 |
+
"gooo_sha256": "sha256:c144c2058916f6c18d158f8ebbb956e641fefec03b986f0fa0c2ae07763ce8c2",
|
| 177 |
+
"generated_go_sha256": "sha256:58b072b4b67f878e1bdbd59a00e7c4b590361a4c7b3336f83d6a6a37282e6bd3",
|
| 178 |
+
"driver_sha256": "sha256:b69f1add64ed132f6c781dc1e1abb7765edd14d7caa2c2a3f09bc8a98c82bcaa"
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"mode": "deterministic",
|
| 182 |
+
"stage": 0,
|
| 183 |
+
"replayed": true,
|
| 184 |
+
"resources": {
|
| 185 |
+
"wall_ms": 337.121375,
|
| 186 |
+
"user_seconds": 0.15,
|
| 187 |
+
"system_seconds": 0.11,
|
| 188 |
+
"maximum_resident_bytes": 85622784
|
| 189 |
+
},
|
| 190 |
+
"generation_ms": 0,
|
| 191 |
+
"runtime_ms": 320.038375,
|
| 192 |
+
"actual_model_calls": 0,
|
| 193 |
+
"stored_generation_model_calls": 0,
|
| 194 |
+
"selection_passed": 9,
|
| 195 |
+
"selection_total": 9,
|
| 196 |
+
"runtime_passed": 49,
|
| 197 |
+
"runtime_total": 49,
|
| 198 |
+
"observed_values": 49,
|
| 199 |
+
"observed_edge_deliveries": 35,
|
| 200 |
+
"native_runs": 2,
|
| 201 |
+
"gooo_sha256": "sha256:c144c2058916f6c18d158f8ebbb956e641fefec03b986f0fa0c2ae07763ce8c2",
|
| 202 |
+
"generated_go_sha256": "sha256:58b072b4b67f878e1bdbd59a00e7c4b590361a4c7b3336f83d6a6a37282e6bd3",
|
| 203 |
+
"driver_sha256": "sha256:b69f1add64ed132f6c781dc1e1abb7765edd14d7caa2c2a3f09bc8a98c82bcaa"
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"mode": "deterministic",
|
| 207 |
+
"stage": 1,
|
| 208 |
+
"replayed": false,
|
| 209 |
+
"resources": {
|
| 210 |
+
"wall_ms": 346.142792,
|
| 211 |
+
"user_seconds": 0.16,
|
| 212 |
+
"system_seconds": 0.1,
|
| 213 |
+
"maximum_resident_bytes": 86507520
|
| 214 |
+
},
|
| 215 |
+
"generation_ms": 13.721834,
|
| 216 |
+
"runtime_ms": 321.289583,
|
| 217 |
+
"actual_model_calls": 0,
|
| 218 |
+
"stored_generation_model_calls": 0,
|
| 219 |
+
"selection_passed": 9,
|
| 220 |
+
"selection_total": 9,
|
| 221 |
+
"runtime_passed": 49,
|
| 222 |
+
"runtime_total": 49,
|
| 223 |
+
"observed_values": 49,
|
| 224 |
+
"observed_edge_deliveries": 35,
|
| 225 |
+
"native_runs": 2,
|
| 226 |
+
"gooo_sha256": "sha256:c144c2058916f6c18d158f8ebbb956e641fefec03b986f0fa0c2ae07763ce8c2",
|
| 227 |
+
"generated_go_sha256": "sha256:58b072b4b67f878e1bdbd59a00e7c4b590361a4c7b3336f83d6a6a37282e6bd3",
|
| 228 |
+
"driver_sha256": "sha256:b69f1add64ed132f6c781dc1e1abb7765edd14d7caa2c2a3f09bc8a98c82bcaa"
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"mode": "deterministic",
|
| 232 |
+
"stage": 1,
|
| 233 |
+
"replayed": true,
|
| 234 |
+
"resources": {
|
| 235 |
+
"wall_ms": 337.886375,
|
| 236 |
+
"user_seconds": 0.15,
|
| 237 |
+
"system_seconds": 0.1,
|
| 238 |
+
"maximum_resident_bytes": 86343680
|
| 239 |
+
},
|
| 240 |
+
"generation_ms": 0,
|
| 241 |
+
"runtime_ms": 322,
|
| 242 |
+
"actual_model_calls": 0,
|
| 243 |
+
"stored_generation_model_calls": 0,
|
| 244 |
+
"selection_passed": 9,
|
| 245 |
+
"selection_total": 9,
|
| 246 |
+
"runtime_passed": 49,
|
| 247 |
+
"runtime_total": 49,
|
| 248 |
+
"observed_values": 49,
|
| 249 |
+
"observed_edge_deliveries": 35,
|
| 250 |
+
"native_runs": 2,
|
| 251 |
+
"gooo_sha256": "sha256:c144c2058916f6c18d158f8ebbb956e641fefec03b986f0fa0c2ae07763ce8c2",
|
| 252 |
+
"generated_go_sha256": "sha256:58b072b4b67f878e1bdbd59a00e7c4b590361a4c7b3336f83d6a6a37282e6bd3",
|
| 253 |
+
"driver_sha256": "sha256:b69f1add64ed132f6c781dc1e1abb7765edd14d7caa2c2a3f09bc8a98c82bcaa"
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"mode": "deterministic",
|
| 257 |
+
"stage": 2,
|
| 258 |
+
"replayed": false,
|
| 259 |
+
"resources": {
|
| 260 |
+
"wall_ms": 347.815208,
|
| 261 |
+
"user_seconds": 0.15,
|
| 262 |
+
"system_seconds": 0.1,
|
| 263 |
+
"maximum_resident_bytes": 86622208
|
| 264 |
+
},
|
| 265 |
+
"generation_ms": 13.011333,
|
| 266 |
+
"runtime_ms": 323.404041,
|
| 267 |
+
"actual_model_calls": 0,
|
| 268 |
+
"stored_generation_model_calls": 0,
|
| 269 |
+
"selection_passed": 9,
|
| 270 |
+
"selection_total": 9,
|
| 271 |
+
"runtime_passed": 49,
|
| 272 |
+
"runtime_total": 49,
|
| 273 |
+
"observed_values": 49,
|
| 274 |
+
"observed_edge_deliveries": 35,
|
| 275 |
+
"native_runs": 2,
|
| 276 |
+
"gooo_sha256": "sha256:c144c2058916f6c18d158f8ebbb956e641fefec03b986f0fa0c2ae07763ce8c2",
|
| 277 |
+
"generated_go_sha256": "sha256:58b072b4b67f878e1bdbd59a00e7c4b590361a4c7b3336f83d6a6a37282e6bd3",
|
| 278 |
+
"driver_sha256": "sha256:b69f1add64ed132f6c781dc1e1abb7765edd14d7caa2c2a3f09bc8a98c82bcaa"
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"mode": "deterministic",
|
| 282 |
+
"stage": 2,
|
| 283 |
+
"replayed": true,
|
| 284 |
+
"resources": {
|
| 285 |
+
"wall_ms": 346.350584,
|
| 286 |
+
"user_seconds": 0.15,
|
| 287 |
+
"system_seconds": 0.11,
|
| 288 |
+
"maximum_resident_bytes": 86245376
|
| 289 |
+
},
|
| 290 |
+
"generation_ms": 0,
|
| 291 |
+
"runtime_ms": 328.827042,
|
| 292 |
+
"actual_model_calls": 0,
|
| 293 |
+
"stored_generation_model_calls": 0,
|
| 294 |
+
"selection_passed": 9,
|
| 295 |
+
"selection_total": 9,
|
| 296 |
+
"runtime_passed": 49,
|
| 297 |
+
"runtime_total": 49,
|
| 298 |
+
"observed_values": 49,
|
| 299 |
+
"observed_edge_deliveries": 35,
|
| 300 |
+
"native_runs": 2,
|
| 301 |
+
"gooo_sha256": "sha256:c144c2058916f6c18d158f8ebbb956e641fefec03b986f0fa0c2ae07763ce8c2",
|
| 302 |
+
"generated_go_sha256": "sha256:58b072b4b67f878e1bdbd59a00e7c4b590361a4c7b3336f83d6a6a37282e6bd3",
|
| 303 |
+
"driver_sha256": "sha256:b69f1add64ed132f6c781dc1e1abb7765edd14d7caa2c2a3f09bc8a98c82bcaa"
|
| 304 |
+
}
|
| 305 |
+
]
|
| 306 |
+
}
|
research/native-composition-20261004/model-0-checkpoint.gooo.fixture
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package composition
|
| 2 |
+
namespace composition
|
| 3 |
+
entity Integer id "composition://integer"
|
| 4 |
+
entity Boolean id "composition://boolean"
|
| 5 |
+
entity Text id "composition://text"
|
| 6 |
+
|
| 7 |
+
activity Assemble(Integer) -> Integer computes "let a = (1 - input)\nlet b = (3 - a)\nreturn (9 - b)" assembling {
|
| 8 |
+
baseline "let a = input - 1\nlet b = a - 3\nreturn b - 9"
|
| 9 |
+
picked "first" -> "layout_reverse"
|
| 10 |
+
picked "second" -> "layout_reverse"
|
| 11 |
+
picked "third" -> "layout_reverse"
|
| 12 |
+
choice "first" operand_order at "0" intent "์ฒซ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the first operands."
|
| 13 |
+
choice "second" operand_order at "1" intent "๋ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the second operands."
|
| 14 |
+
choice "third" operand_order at "2" intent "์ธ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the third operands."
|
| 15 |
+
case "-8" -> "15"
|
| 16 |
+
case "-1" -> "8"
|
| 17 |
+
case "0" -> "7"
|
| 18 |
+
case "3" -> "4"
|
| 19 |
+
case "4" -> "3"
|
| 20 |
+
case "9" -> "-2"
|
| 21 |
+
attempts "8"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
activity Clamp(Integer) -> Integer computes "if (input < 0) {\n\treturn 0\n} else {\n\tif (10 < input) {\n\t\treturn 10\n\t} else {\n\t\treturn input\n\t}\n}" assembling {
|
| 25 |
+
baseline "if input < 0 { return 0 } else if input < 10 { return input } else { return 10 }"
|
| 26 |
+
picked "lower-branch" -> "layout_forward"
|
| 27 |
+
picked "upper-comparison" -> "layout_reverse"
|
| 28 |
+
picked "middle-branch" -> "layout_reverse"
|
| 29 |
+
choice "lower-branch" branch_layout at "0" intent "์์์ด๋ฉด 0์ ๋ฐํํ๋ค. Return zero for negative input."
|
| 30 |
+
choice "upper-comparison" operand_order at "1" intent "์
๋ ฅ์ด 10๋ณด๋ค ์์์ง ํ์ธํ๋ค. Check input below ten."
|
| 31 |
+
choice "middle-branch" branch_layout at "1" intent "์ค๊ฐ ๋ฒ์๋ ์
๋ ฅ์, ๊ทธ ์ด์์ 10์ ๋ฐํํ๋ค. Return input in the middle range, otherwise ten."
|
| 32 |
+
case "-1" -> "0"
|
| 33 |
+
case "5" -> "5"
|
| 34 |
+
case "11" -> "10"
|
| 35 |
+
attempts "8"
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
activity IsPositive(Integer) -> Boolean computes "return input > 0"
|
| 39 |
+
activity Invert(Boolean) -> Boolean computes "return !input"
|
| 40 |
+
activity Twice(Integer) -> Integer computes "return input * 2"
|
| 41 |
+
activity Decorate(Text) -> Text computes `return input + "!"`
|
| 42 |
+
activity Same(Text) -> Boolean computes `return input == "gooo!"`
|
| 43 |
+
|
| 44 |
+
bind Assemble.result -> Clamp.input
|
| 45 |
+
bind Clamp.result -> IsPositive.input
|
| 46 |
+
bind IsPositive.result -> Invert.input
|
| 47 |
+
bind Assemble.result -> Twice.input
|
| 48 |
+
bind Decorate.result -> Same.input
|
research/native-composition-20261004/model-0-composition.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/model-0-replay.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/model-0.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/model-1-checkpoint.gooo.fixture
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package composition
|
| 2 |
+
namespace composition
|
| 3 |
+
entity Integer id "composition://integer"
|
| 4 |
+
entity Boolean id "composition://boolean"
|
| 5 |
+
entity Text id "composition://text"
|
| 6 |
+
|
| 7 |
+
activity Assemble(Integer) -> Integer computes "let a = (1 - input)\nlet b = (3 - a)\nreturn (9 - b)" assembling {
|
| 8 |
+
baseline "let a = input - 1\nlet b = a - 3\nreturn b - 9"
|
| 9 |
+
picked "first" -> "layout_reverse"
|
| 10 |
+
picked "second" -> "layout_reverse"
|
| 11 |
+
picked "third" -> "layout_reverse"
|
| 12 |
+
choice "first" operand_order at "0" intent "์ฒซ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the first operands."
|
| 13 |
+
choice "second" operand_order at "1" intent "๋ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the second operands."
|
| 14 |
+
choice "third" operand_order at "2" intent "์ธ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the third operands."
|
| 15 |
+
case "-8" -> "15"
|
| 16 |
+
case "-1" -> "8"
|
| 17 |
+
case "0" -> "7"
|
| 18 |
+
case "3" -> "4"
|
| 19 |
+
case "4" -> "3"
|
| 20 |
+
case "9" -> "-2"
|
| 21 |
+
attempts "8"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
activity Clamp(Integer) -> Integer computes "if (input < 0) {\n\treturn 0\n} else {\n\tif (10 < input) {\n\t\treturn 10\n\t} else {\n\t\treturn input\n\t}\n}" assembling {
|
| 25 |
+
baseline "if input < 0 { return 0 } else if input < 10 { return input } else { return 10 }"
|
| 26 |
+
picked "lower-branch" -> "layout_forward"
|
| 27 |
+
picked "upper-comparison" -> "layout_reverse"
|
| 28 |
+
picked "middle-branch" -> "layout_reverse"
|
| 29 |
+
choice "lower-branch" branch_layout at "0" intent "์์์ด๋ฉด 0์ ๋ฐํํ๋ค. Return zero for negative input."
|
| 30 |
+
choice "upper-comparison" operand_order at "1" intent "์
๋ ฅ์ด 10๋ณด๋ค ์์์ง ํ์ธํ๋ค. Check input below ten."
|
| 31 |
+
choice "middle-branch" branch_layout at "1" intent "์ค๊ฐ ๋ฒ์๋ ์
๋ ฅ์, ๊ทธ ์ด์์ 10์ ๋ฐํํ๋ค. Return input in the middle range, otherwise ten."
|
| 32 |
+
case "-1" -> "0"
|
| 33 |
+
case "5" -> "5"
|
| 34 |
+
case "11" -> "10"
|
| 35 |
+
attempts "8"
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
activity IsPositive(Integer) -> Boolean computes "return input > 0"
|
| 39 |
+
activity Invert(Boolean) -> Boolean computes "return !input"
|
| 40 |
+
activity Twice(Integer) -> Integer computes "return input * 2"
|
| 41 |
+
activity Decorate(Text) -> Text computes `return input + "!"`
|
| 42 |
+
activity Same(Text) -> Boolean computes `return input == "gooo!"`
|
| 43 |
+
|
| 44 |
+
bind Assemble.result -> Clamp.input
|
| 45 |
+
bind Clamp.result -> IsPositive.input
|
| 46 |
+
bind IsPositive.result -> Invert.input
|
| 47 |
+
bind Assemble.result -> Twice.input
|
| 48 |
+
bind Decorate.result -> Same.input
|
research/native-composition-20261004/model-1-composition.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/model-1-replay.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/model-1.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/model-2-checkpoint.gooo.fixture
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package composition
|
| 2 |
+
namespace composition
|
| 3 |
+
entity Integer id "composition://integer"
|
| 4 |
+
entity Boolean id "composition://boolean"
|
| 5 |
+
entity Text id "composition://text"
|
| 6 |
+
|
| 7 |
+
activity Assemble(Integer) -> Integer computes "let a = (1 - input)\nlet b = (3 - a)\nreturn (9 - b)" assembling {
|
| 8 |
+
baseline "let a = input - 1\nlet b = a - 3\nreturn b - 9"
|
| 9 |
+
picked "first" -> "layout_reverse"
|
| 10 |
+
picked "second" -> "layout_reverse"
|
| 11 |
+
picked "third" -> "layout_reverse"
|
| 12 |
+
choice "first" operand_order at "0" intent "์ฒซ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the first operands."
|
| 13 |
+
choice "second" operand_order at "1" intent "๋ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the second operands."
|
| 14 |
+
choice "third" operand_order at "2" intent "์ธ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the third operands."
|
| 15 |
+
case "-8" -> "15"
|
| 16 |
+
case "-1" -> "8"
|
| 17 |
+
case "0" -> "7"
|
| 18 |
+
case "3" -> "4"
|
| 19 |
+
case "4" -> "3"
|
| 20 |
+
case "9" -> "-2"
|
| 21 |
+
attempts "8"
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
activity Clamp(Integer) -> Integer computes "if (input < 0) {\n\treturn 0\n} else {\n\tif (10 < input) {\n\t\treturn 10\n\t} else {\n\t\treturn input\n\t}\n}" assembling {
|
| 25 |
+
baseline "if input < 0 { return 0 } else if input < 10 { return input } else { return 10 }"
|
| 26 |
+
picked "lower-branch" -> "layout_forward"
|
| 27 |
+
picked "upper-comparison" -> "layout_reverse"
|
| 28 |
+
picked "middle-branch" -> "layout_reverse"
|
| 29 |
+
choice "lower-branch" branch_layout at "0" intent "์์์ด๋ฉด 0์ ๋ฐํํ๋ค. Return zero for negative input."
|
| 30 |
+
choice "upper-comparison" operand_order at "1" intent "์
๋ ฅ์ด 10๋ณด๋ค ์์์ง ํ์ธํ๋ค. Check input below ten."
|
| 31 |
+
choice "middle-branch" branch_layout at "1" intent "์ค๊ฐ ๋ฒ์๋ ์
๋ ฅ์, ๊ทธ ์ด์์ 10์ ๋ฐํํ๋ค. Return input in the middle range, otherwise ten."
|
| 32 |
+
case "-1" -> "0"
|
| 33 |
+
case "5" -> "5"
|
| 34 |
+
case "11" -> "10"
|
| 35 |
+
attempts "8"
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
activity IsPositive(Integer) -> Boolean computes "return input > 0"
|
| 39 |
+
activity Invert(Boolean) -> Boolean computes "return !input"
|
| 40 |
+
activity Twice(Integer) -> Integer computes "return input * 2"
|
| 41 |
+
activity Decorate(Text) -> Text computes `return input + "!"`
|
| 42 |
+
activity Same(Text) -> Boolean computes `return input == "gooo!"`
|
| 43 |
+
|
| 44 |
+
bind Assemble.result -> Clamp.input
|
| 45 |
+
bind Clamp.result -> IsPositive.input
|
| 46 |
+
bind IsPositive.result -> Invert.input
|
| 47 |
+
bind Assemble.result -> Twice.input
|
| 48 |
+
bind Decorate.result -> Same.input
|
research/native-composition-20261004/model-2-composition.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/model-2-replay.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/model-2.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/native-composition-20261004/source.gooo.fixture
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
package composition
|
| 2 |
+
namespace composition
|
| 3 |
+
entity Integer id "composition://integer"
|
| 4 |
+
entity Boolean id "composition://boolean"
|
| 5 |
+
entity Text id "composition://text"
|
| 6 |
+
|
| 7 |
+
activity Assemble(Integer) -> Integer computes `let a = input - 1
|
| 8 |
+
let b = a - 3
|
| 9 |
+
return b - 9` assembling {
|
| 10 |
+
choice "first" operand_order at "0" intent "์ฒซ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the first operands."
|
| 11 |
+
choice "second" operand_order at "1" intent "๋ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the second operands."
|
| 12 |
+
choice "third" operand_order at "2" intent "์ธ ๋ฒ์งธ ํผ์ฐ์ฐ์๋ฅผ ๋ฐ๋๋ก ๋ฐฐ์นํ๋ค. Reverse the third operands."
|
| 13 |
+
case "-8" -> "15"
|
| 14 |
+
case "-1" -> "8"
|
| 15 |
+
case "0" -> "7"
|
| 16 |
+
case "3" -> "4"
|
| 17 |
+
case "4" -> "3"
|
| 18 |
+
case "9" -> "-2"
|
| 19 |
+
attempts "8"
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
activity Clamp(Integer) -> Integer computes "if input < 0 { return 0 } else if input < 10 { return input } else { return 10 }" assembling {
|
| 23 |
+
choice "lower-branch" branch_layout at "0" intent "์์์ด๋ฉด 0์ ๋ฐํํ๋ค. Return zero for negative input."
|
| 24 |
+
choice "upper-comparison" operand_order at "1" intent "์
๋ ฅ์ด 10๋ณด๋ค ์์์ง ํ์ธํ๋ค. Check input below ten."
|
| 25 |
+
choice "middle-branch" branch_layout at "1" intent "์ค๊ฐ ๋ฒ์๋ ์
๋ ฅ์, ๊ทธ ์ด์์ 10์ ๋ฐํํ๋ค. Return input in the middle range, otherwise ten."
|
| 26 |
+
case "-1" -> "0"
|
| 27 |
+
case "5" -> "5"
|
| 28 |
+
case "11" -> "10"
|
| 29 |
+
attempts "8"
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
activity IsPositive(Integer) -> Boolean computes "return input > 0"
|
| 33 |
+
activity Invert(Boolean) -> Boolean computes "return !input"
|
| 34 |
+
activity Twice(Integer) -> Integer computes "return input * 2"
|
| 35 |
+
activity Decorate(Text) -> Text computes `return input + "!"`
|
| 36 |
+
activity Same(Text) -> Boolean computes `return input == "gooo!"`
|
| 37 |
+
|
| 38 |
+
bind Assemble.result -> Clamp.input
|
| 39 |
+
bind Clamp.result -> IsPositive.input
|
| 40 |
+
bind IsPositive.result -> Invert.input
|
| 41 |
+
bind Assemble.result -> Twice.input
|
| 42 |
+
bind Decorate.result -> Same.input
|