Skip to content

Ariadne: a read-lane expression the frame budget skipped is never a warning - #1082

Merged
transfix merged 1 commit into
masterfrom
fix/ariadne-reactive-budget-quiet
Nov 9, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/ariadne-reactive-budget-quiet

Conversation

@transfix

@transfix transfix commented Nov 9, 2026

Copy link
Copy Markdown
Owner

A read-lane expression that the per-frame budget skipped is no longer a warning. On the live nicotina page (arigl-web 3.7.12, real tx.wtf), a 10-post feed decoding pictures in wasm spends the 30 ms budget on its first frames. Each skipped expression became ari: reactive expr "…" skipped — per-frame budget exhausted through warn_once, and the page's ariadneWarning showed it to the user. A skip isn't the document's fault.

Every read-lane path now handles a skip the same way: last frame's value, or the fail-safe one where the expression never ran. There is no warning.

path used by on a skip
predicate visible_when, enabled_when, disabled_when last frame's answer (already, since #1052), else hidden / disabled. Before, a predicate skipped before it ever ran also warned.
eval_text computed bind: / text, a computed src: last frame's text, else empty
eval_text_or_literal tooltip last frame's text, else empty. It used to show the expression's own source for that frame.
eval_options computed combo options last frame's list, else empty
eval_count repeat: last count (already), else 0, and no longer a warning
  • Real errors still warn, once each: a parse error, a runtime error, an unbound function, or the step or time cap.
  • Runtime::reactive_skip_count() counts the skips, for a host that wants to log them.
  • The engine's outcomes (StringOutcome, StringListOutcome, IntOutcome) now say skipped, as Outcome did.
  • Memory: the last values are kept per expression (per {i} instance), like the predicates and counts already were. A map entry is copied only when its value changes.

Docs: ARIADNE.md §2.1 (what a skipped expression shows, and that a skip is never a warning), and the header comments on set_reactive_frame_budget / take_reactive_warnings.

Test: ariadne_media_test's AriadneReactiveBudget.ASkipIsNeverAWarning. With set_reactive_frame_budget(0.0) from the first frame, it covers:

  • a predicate, a computed text, a tooltip, combo options and a repeat count all skip, and take_reactive_warnings() stays empty;
  • the fail-safe values: hidden, empty, 0;
  • last frame's values once the expressions have run and the state has moved on;
  • a broken repeat count still warning, once.

This is separate from the Loop and badge: PRs, so it can go into a release on its own.

…arning

On the live nicotina page (arigl-web, real tx.wtf) a 10-post feed decoding pictures in wasm spends
the 30 ms read-lane budget on its first frames, and each expression it skipped became
"ari: reactive expr ... skipped - per-frame budget exhausted" through warn_once, which the page's
ariadneWarning shows the user. A skip is not the document's fault.
- Every read-lane path takes a skip the same way: last frame's value, else the fail-safe one, and
  no warning. predicate (visible_when / enabled_when / disabled_when): last answer, else hidden /
  disabled (one skipped before it ever ran warned). eval_text (computed binds, src): last text,
  else empty. eval_text_or_literal (tooltip): last text, else empty, not the expression's own
  source. eval_options: last list, else empty. eval_count (repeat:): last count, else 0.
- Real errors (parse, runtime, unbound, step / time cap) still warn once.
- Runtime::reactive_skip_count() counts the skips, for a host that logs them.
- The engine's String/StringList/Int outcomes say skipped, as Outcome did.

Docs: ARIADNE.md section 2.1; the set_reactive_frame_budget / take_reactive_warnings comments.
Test: ariadne_media_test's AriadneReactiveBudget.ASkipIsNeverAWarning.
@transfix
transfix merged commit 14756af into master Nov 9, 2026
49 of 52 checks passed
@transfix
transfix deleted the fix/ariadne-reactive-budget-quiet branch November 9, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant