README: document xcl shaders --direct --threads, --timeout and --max-bytes #2699

Open
romeawayfromhome-rgb wants to merge 4 commits from upstream-pr/2709 into main
romeawayfromhome-rgb commented 2026-11-26 07:54:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-11-26T07:54:52Z.


What is in it
One README example line for the xcl shaders --direct sweep controls --threads, --timeout and --max-bytes, stacked on #2699. The flags are already listed in the built-in help (crates/xcl/src/main.rs), parsed in crates/xcl/src/shaders.rs, and default to up to 8 worker threads, a 10-second per-program timeout, and a 16384-byte program-size cap (--max-bytes 0 lifts the cap). README-only; no code, config or test changes.

Tested

  • Verified the flag names, defaults and cap behavior against crates/xcl/src/main.rs and crates/xcl/src/shaders.rs at current main.
  • Checked the README usage block, our open README PRs (#2450, #2657, #2699), and GitHub PR search for overlap; these three flags are not documented yet.

Not tested

  • No build or test run: documentation-only change.

AI use
AI assistance Muse Spark via Clifford; conductor Legendary Godking (romeawayfromhome-rgb).

<!-- greyfinch-sync:ivall/xcl:issue:5506146382 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2709). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-26T07:54:52Z. --- **What is in it** One README example line for the `xcl shaders --direct` sweep controls `--threads`, `--timeout` and `--max-bytes`, stacked on #2699. The flags are already listed in the built-in help (`crates/xcl/src/main.rs`), parsed in `crates/xcl/src/shaders.rs`, and default to up to 8 worker threads, a 10-second per-program timeout, and a 16384-byte program-size cap (`--max-bytes 0` lifts the cap). README-only; no code, config or test changes. **Tested** - Verified the flag names, defaults and cap behavior against `crates/xcl/src/main.rs` and `crates/xcl/src/shaders.rs` at current main. - Checked the README usage block, our open README PRs (#2450, #2657, #2699), and GitHub PR search for overlap; these three flags are not documented yet. **Not tested** - No build or test run: documentation-only change. **AI use** AI assistance Muse Spark via Clifford; conductor Legendary Godking (romeawayfromhome-rgb).
Foniass commented 2026-12-01 08:46:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:46:09Z.


Triage (#1607) – head 489ae2c

Stacked on #2699 (which is stacked on #2657 and #2450): the first three commits are those PRs, only 489ae2c belongs here. That is not a duplicate.
The added README line matches main: --threads, --timeout and --max-bytes are parsed in shaders.rs, the defaults are max_bytes: 16384 and timeout: 10, threads are available_parallelism().min(8), and max_bytes > 0 gates the cap, so 0 lifts it. No open or merged PR documents these flags. No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7305759074 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2709#issuecomment-7305759074). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:46:09Z. --- **Triage (#1607)** – head 489ae2c Stacked on #2699 (which is stacked on #2657 and #2450): the first three commits are those PRs, only `489ae2c` belongs here. That is not a duplicate. The added README line matches main: `--threads`, `--timeout` and `--max-bytes` are parsed in `shaders.rs`, the defaults are `max_bytes: 16384` and `timeout: 10`, threads are `available_parallelism().min(8)`, and `max_bytes > 0` gates the cap, so 0 lifts it. No open or merged PR documents these flags. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2709:upstream-pr/2709'
git switch 'upstream-pr/2709'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2709'
git switch 'upstream-pr/2709'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2709'
git switch 'upstream-pr/2709'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2709'
git switch 'main'
git merge --squash 'upstream-pr/2709'
git switch 'main'
git merge --ff-only 'upstream-pr/2709'
git switch 'main'
git merge 'upstream-pr/2709'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2699
No description provided.