Budgeted multiple-values forwarding (401)
Private tail values calls with at least two arguments may now forward their handles to the immediate call-with-values consumer when at least two instruction charges remain. Those charges preserve the bridge opcode and consumer application. At a denied or near-limit boundary, the original packet path runs without modifying the destination. Unlimited execution keeps the retained400 handoff. External evaluation control, bounded owners, active native execution, single-step control and other ineligible callers retain their previous paths.
The only runtime change is the eligibility predicate in scheme/values_forward.v. The existing buffer, ownership rules, finish_call and iterative application loop are reused. No fields, allocation, recursion, compiler changes or GC dependency are added. Options keeps its default one-million-step instruction budget.
The separate repeated-call allocation fixture retains 12,433 bytes at 100 iterations and 1,121,233 bytes at 10,000 on retained400 under that default budget. This revision retains 1,233 and about 1,234 bytes across all four configurations. These are fixed producer/consumer allocation checks, separate from the prepared performance workloads.
All 93 focused checks pass per ordinary/native sanitizer/Boehm configuration (372 checks). The two added tests cover zero/one/two remaining instruction charges and bounded retained allocation with the default budget. Existing independent single-step comparisons cover each limit, result, error and side effect; continuation, large-argument, nested-consumer, ownership and rejected-handoff cases also pass. All four baseline probes pass per configuration; no failing functional baseline is claimed.
Final qualification passes 422 ordinary and 351 native checks per sanitizer/Boehm mode, plus two CLI checks and one default-build budget check (1,549 checks). Exact compatible focused groups seed the full gate only after source/log hash checks; new combinations compile again. Completed phases and checkpoints are preserved.
All six exact production C outputs differ from their retained400 counterparts only in the handoff budget predicate among the audited helpers. Application, both dispatchers, cached closure entry, activation, finish_call, charge, push and file-return C match after narrowly normalizing discard identifiers. The before/after default-budget measurement function also matches and explicitly keeps the 1,000,000-step limit. Standard production layouts match retained400 in all four variants (Function: 368 bytes). Symbol-bounded assembly and CFG evidence are retained; incomplete CFGs have no quantitative instruction totals. Code eligibility and allocation checks do not establish elapsed speed.
The unchanged frozen36 comparisons use the same idle Intel Mac mini, Guile 3.0.10, guild -O2/default JIT, 24 runtime plus 12 mock-WM workloads, both collectors, original batches, five warmups and pinned inputs/oracles. Each engine has 5,760 observations, 31 retained rounds plus uniformly excluded round0, 144 separate preparations and 46 passing4-vs400 scaling groups (minimum elapsed growth20x). All 4,608 before/after native hit/deopt pairs match; ordinary interpreter native/cache counters are zero. Native warmup/measured compilations are zero. Builds, tests, preparation, timing and analysis run separately under the shared Mac lock from hash-verified snapshots. Every workload and regression remains in the equal-weight geometric means.
The extra default-budget comparison uses only the original frozen values-consumer-1k workload and its original12-call batch/five warmups. Before and after use the same separate interpreted driver with default 1M steps. It records 160 observations (31 retained rounds plus round0), four separate preparations and four 1-vs12 scaling groups requiring 8x elapsed growth to stay within the budget. Its results are never merged into frozen36. R7RS compatibility and smoke timings also remain separate; no full R7RS performance aggregate is claimed.
Ratios above one favor the candidate or Vile. Confidence intervals use 2,000 deterministic paired-round percentile resamples; frozen36 seed 393031 and separate budget-case seed 401031. These intervals describe the observed process variation, not unseen programs. The overall interpreted 1.5x-over-Guile goal remains unmet.
| Engine | Suite | GC gain vs400 | Arena gain vs400 | Guile/Vile GC | Guile/Vile arena |
|---|---|---|---|---|---|
| interpreter | wm | 0.9992x | 1.0004x | 0.2702x | 0.2635x |
| interpreter | runtime | 0.9988x | 1.0016x | 0.1750x | 0.1721x |
| interpreter | all36 | 0.9989x | 1.0012x | 0.2023x | 0.1983x |
| native | wm | 0.9999x | 0.9992x | 0.6568x | 0.6455x |
| native | runtime | 0.9990x | 0.9999x | 1.5321x | 1.5805x |
| native | all36 | 0.9993x | 0.9997x | 1.1553x | 1.1726x |
| Engine | GC gain interval | Arena gain interval | Guile/Vile GC interval | Guile/Vile arena interval |
|---|---|---|---|---|
| interpreter | 0.9982–0.9998x | 1.0003–1.0023x | 0.2020–0.2026x | 0.1980–0.1986x |
| native | 0.9952–1.0009x | 0.9983–1.0011x | 1.1498–1.1572x | 1.1698–1.1745x |
The unlimited comparison is effectively unchanged: interpreted GC takes about 0.11% longer, while arenas gain about 0.12%. Native changes are below 0.1%, with intervals including parity. The separate positive-budget values case gains 39.6% with GC and 25.0% with arenas; Guile still runs that case about 96x faster than GC Vile. This revision is retained for its default-budget allocation reduction and targeted speed gain.
Separate default-budget values workload
| Comparison | Ratio | 95% interval |
|---|---|---|
| gc_gain | 1.3963x | 1.3884–1.4012x |
| arena_gain | 1.2495x | 1.2446–1.2540x |
| guile_over_gc | 0.0104x | 0.0104–0.0104x |
| guile_over_arena | 0.0108x | 0.0108–0.0108x |
Observed regressions
All measured losses remain included; these cases exceed 5% elapsed regression. Causes are unproven.
| Engine | Suite | Workload | Collector | Elapsed increase |
|---|---|---|---|---|
| — | — | No case exceeds 5% | — | — |
interpreter / wm
| Workload | 400 GC ms | 401 GC ms | Guile ms | GC gain | Arena gain |
|---|---|---|---|---|---|
| wm-callback-chain | 4.360300 | 4.355582 | 0.638750 | 1.001x | 1.000x |
| wm-config-load-tree | 4.965107 | 4.954292 | 9.187250 | 1.002x | 1.007x |
| wm-event-dispatch | 2.735940 | 2.730668 | 0.217750 | 1.002x | 0.998x |
| wm-focus-cycle | 4.023542 | 4.024788 | 0.378250 | 1.000x | 1.002x |
| wm-hooks | 2.638080 | 2.635162 | 0.354250 | 1.001x | 0.999x |
| wm-keybindings | 1.085599 | 1.093087 | 0.280000 | 0.993x | 1.003x |
| wm-lifecycle | 0.957801 | 0.958536 | 0.129250 | 0.999x | 1.000x |
| wm-macro-config | 4.442101 | 4.440627 | 5.268250 | 1.000x | 0.999x |
| wm-reload-live | 7.053810 | 7.110671 | 8.136750 | 0.992x | 1.003x |
| wm-session-replay | 6.387464 | 6.391242 | 8.070250 | 0.999x | 0.998x |
| wm-tiling-layout | 1.727707 | 1.726500 | 0.109750 | 1.001x | 0.997x |
| wm-workspace-move | 1.184090 | 1.184780 | 0.174250 | 0.999x | 0.997x |
interpreter / runtime
| Workload | 400 GC ms | 401 GC ms | Guile ms | GC gain | Arena gain |
|---|---|---|---|---|---|
| bignum-fib-200 | 0.032473 | 0.032496 | 0.005417 | 0.999x | 1.003x |
| bytevector-fill-4k | 0.731214 | 0.738236 | 0.086167 | 0.990x | 1.010x |
| callcc-escape-1k | 0.008613 | 0.008623 | 0.006667 | 0.999x | 1.002x |
| closure-5k | 0.504544 | 0.503712 | 0.015560 | 1.002x | 1.003x |
| closure-mutate-2k | 0.277258 | 0.277157 | 0.008417 | 1.000x | 1.001x |
| datum-read-write-200 | 1.207010 | 1.198937 | 2.260125 | 1.007x | 1.002x |
| dynamic-wind-200 | 0.122656 | 0.122711 | 0.012667 | 1.000x | 1.000x |
| fib-20 | 4.290654 | 4.292708 | 0.310840 | 1.000x | 1.000x |
| flonum-sum-2k | 0.474000 | 0.473987 | 0.095917 | 1.000x | 1.000x |
| goops-allocate-200 | 0.079703 | 0.079442 | 0.054750 | 1.003x | 1.003x |
| goops-dispatch-1k | 0.735167 | 0.733900 | 0.110125 | 1.002x | 1.003x |
| hashtable-count-1k | 0.414586 | 0.415646 | 5.943333 | 0.997x | 1.010x |
| higher-order-2k | 0.348940 | 0.348787 | 0.006333 | 1.000x | 1.000x |
| integer-divmod-5k | 0.813058 | 0.817560 | 0.168167 | 0.994x | 0.999x |
| list-3k | 0.854901 | 0.854464 | 0.060000 | 1.001x | 1.000x |
| list-map-1k | 0.099089 | 0.100209 | 0.048500 | 0.989x | 1.001x |
| list-reverse-2k | 0.414932 | 0.416048 | 0.060833 | 0.997x | 1.004x |
| rational-harmonic-80 | 0.093479 | 0.093626 | 0.049250 | 0.998x | 1.000x |
| string-build-1k | 0.040124 | 0.040403 | 0.043083 | 0.993x | 1.001x |
| string-scan-4k | 0.604935 | 0.605091 | 0.043750 | 1.000x | 1.002x |
| tail-sum-10k | 0.071076 | 0.071041 | 0.033650 | 1.000x | 0.996x |
| unicode-scan-1k | 0.164063 | 0.164125 | 0.011750 | 1.000x | 0.998x |
| values-consumer-1k | 0.424989 | 0.425209 | 0.004417 | 0.999x | 1.001x |
| vector-update-2k | 0.373008 | 0.373022 | 0.016167 | 1.000x | 1.000x |
native / wm
| Workload | 400 GC ms | 401 GC ms | Guile ms | GC gain | Arena gain |
|---|---|---|---|---|---|
| wm-callback-chain | 0.476309 | 0.476474 | 0.638500 | 1.000x | 1.001x |
| wm-config-load-tree | 4.653087 | 4.649816 | 8.979250 | 1.001x | 0.988x |
| wm-event-dispatch | 0.785790 | 0.786296 | 0.215750 | 0.999x | 0.998x |
| wm-focus-cycle | 0.473780 | 0.474233 | 0.378500 | 0.999x | 1.000x |
| wm-hooks | 2.005401 | 2.003305 | 0.355000 | 1.001x | 1.002x |
| wm-keybindings | 0.927316 | 0.927410 | 0.280750 | 1.000x | 0.997x |
| wm-lifecycle | 0.838966 | 0.839809 | 0.125750 | 0.999x | 1.001x |
| wm-macro-config | 4.402252 | 4.394578 | 5.297000 | 1.002x | 1.002x |
| wm-reload-live | 4.782289 | 4.792903 | 8.132000 | 0.998x | 0.998x |
| wm-session-replay | 4.844579 | 4.843426 | 8.083250 | 1.000x | 1.004x |
| wm-tiling-layout | 0.259054 | 0.258807 | 0.113750 | 1.001x | 0.999x |
| wm-workspace-move | 0.187057 | 0.187146 | 0.176750 | 1.000x | 1.000x |
native / runtime
| Workload | 400 GC ms | 401 GC ms | Guile ms | GC gain | Arena gain |
|---|---|---|---|---|---|
| bignum-fib-200 | 0.042269 | 0.042354 | 0.005500 | 0.998x | 1.001x |
| bytevector-fill-4k | 0.083255 | 0.083213 | 0.086167 | 1.001x | 0.999x |
| callcc-escape-1k | 0.090850 | 0.090911 | 0.006750 | 0.999x | 1.001x |
| closure-5k | 0.002128 | 0.002128 | 0.015550 | 1.000x | 1.000x |
| closure-mutate-2k | 0.002841 | 0.002849 | 0.008417 | 0.997x | 1.001x |
| datum-read-write-200 | 1.604514 | 1.595770 | 2.265375 | 1.005x | 1.004x |
| dynamic-wind-200 | 0.000435 | 0.000438 | 0.012750 | 0.993x | 1.003x |
| fib-20 | 0.146912 | 0.146978 | 0.311020 | 1.000x | 0.996x |
| flonum-sum-2k | 0.002378 | 0.002378 | 0.096167 | 1.000x | 1.000x |
| goops-allocate-200 | 0.084015 | 0.083947 | 0.054625 | 1.001x | 0.999x |
| goops-dispatch-1k | 0.766766 | 0.766744 | 0.110375 | 1.000x | 0.999x |
| hashtable-count-1k | 0.438519 | 0.439466 | 5.968250 | 0.998x | 1.001x |
| higher-order-2k | 0.004070 | 0.004062 | 0.006333 | 1.002x | 1.000x |
| integer-divmod-5k | 0.007917 | 0.007921 | 0.168167 | 1.000x | 1.000x |
| list-3k | 0.007210 | 0.007212 | 0.060060 | 1.000x | 0.999x |
| list-map-1k | 0.133084 | 0.133565 | 0.048417 | 0.996x | 0.999x |
| list-reverse-2k | 0.068554 | 0.068538 | 0.060917 | 1.000x | 1.001x |
| rational-harmonic-80 | 0.103971 | 0.103418 | 0.049250 | 1.005x | 0.997x |
| string-build-1k | 0.043840 | 0.044215 | 0.042833 | 0.992x | 0.991x |
| string-scan-4k | 0.095252 | 0.095677 | 0.043833 | 0.996x | 1.012x |
| tail-sum-10k | 0.005606 | 0.005605 | 0.033690 | 1.000x | 1.000x |
| unicode-scan-1k | 0.035601 | 0.035587 | 0.011750 | 1.000x | 0.996x |
| values-consumer-1k | 0.001554 | 0.001558 | 0.004417 | 0.997x | 1.001x |
| vector-update-2k | 0.058960 | 0.059097 | 0.016167 | 0.998x | 1.001x |
Build:vile-resume.35o52qt1. Final gate:vile-resume.ly5ziroo. Preparation/measurement:vile-resume.dcnyj7xn. Recovery:validation/budget-values401/. Source/patch, six production binaries/C/ASM/CFGs, raw matrices/caches, frozen inputs, allocation records and baseline/focus/full results are preserved.