Skip to content

docs(readme): overhaul — Performance section with pinned numbers, honest platform status, current architecture - #982

Merged
caomengxuan666 merged 2 commits into
masterfrom
docs/readme-overhaul
Oct 21, 2026
Merged

caomengxuan666 merged 2 commits into
masterfrom
docs/readme-overhaul

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

What changed

Owner-directed README overhaul. Every number below is pinned to the issue/PR that measured it — nothing invented. Docs only; no code changes.

1. New Performance section (EN + zh), all measured

2. Platform status made verifiable

3. Architecture & testing updated to current code

  • src/ tree now shows the real layout (bin/, expand/, fd/, jobs/, shell/); "40+ builtins" → 62 engine builtins per the test-guarded docs/builtins.md + the five hidden fast-path builtins.
  • Testing section: regression suite, console_window_gate, corpus replay runner; compatibility-suite instructions now match scripts/true-baseline.sh's own header.
  • Executor bullet describes the per-child argv dialect contract (the old "Windows/Git Bash path bridging" wording).

4. zh README rewritten to full parity with EN

The Chinese README was still describing the pre-Option-B path model, lacked the identity (#154) section, and claimed GNU Bash 5.3.0 — now a faithful translation of the overhauled EN.

Portal links (unixwin.dev) were already present (#968) — untouched. Last-updated stamp refreshed to 2026-10-19.

…est platform status, current architecture

- New Performance section, every number pinned to its measuring issue/PR:
  - Android-matrix interpreter triage closed with numbers (#607/#608/#609
    -> #665/#671/#679, #666, #672/#678; net ~1.06x GNU scalar assign)
  - array store O(n^2)->O(1) amortized (#618/#616: assoc 445x->9.9x,
    indexed 736x->3.8x vs GNU at 5000 keys; docs/performance.md ledger)
  - literal fast-path wave with measured deltas: #967 (177->155 ms),
    #966 (1.41x->1.10x), #974 (~11%), #959 (3.65x->3.16x), #958 (-10%),
    #956/#973/#954 family
  - export/unset economics: #916 measured costs stated, write lane landed
    (#917/#918/#920, #943 correctness rework), issue open on residual
  - Windows process economics: #913 one hidden console per session
    (~22 ms/spawn -> <=1 per session; tests/console_window_gate.rs),
    #884 tput inline arm (1165 ms -> 47 ms, 269-row oracle matrix),
    WinuxCmd#1269 twin (~17 ms -> ~0.4 ms in-process), #800 face B open
- Platform status made verifiable: Linux CI lanes + upstream-corpus replay
  job named; 19/24 Linux pass dated and cited (#500) instead of 'and
  climbing'; macOS now runs lib tests in CI, not just compiles
- Architecture tree updated to the real src/ layout (bin/expand/fd/jobs/
  shell added); builtin count 40+ -> 62 engine builtins per the
  test-guarded docs/builtins.md + hidden fast-path builtins
- Testing section: regression suite, console gate, corpus replay commands
- Compatibility baseline line updated to vendored Bash-5.3 patch 20
  (#957) with local+WSL 5.3.20 oracles (#978)
- zh README rewritten to full parity with EN (was still describing the
  pre-dialect path model, missing the identity section, claiming 5.3.0)
- Last-updated stamp refreshed
@caomengxuan666

Copy link
Copy Markdown
Member Author

Fact-check result: 1 blocker — a date that does not match its archived source

Docs-only diff confirmed (README.md + README.zh-CN.md, 0 code files). Every performance number spot-checked against its cited issue/PR matches — including #967 (177→155 ms), #966 (1.41x→1.10x), #974 (1.56x→1.39x), #959 (3.65x→3.16x + double side-effect), #958 (−10%), #916 (245 ms vs 33 ms, unset ~200x, still open), #618/#616 (445x→9.9x / 736x→3.8x per docs/performance.md), #607/#608/#609 closures, #913 (14 tests in tests/console_window_gate.rs, verified count), #884 (1165→47 ms, 269-row diff=0), WinuxCmd#1269 (~17 ms → ~0.4 ms, 3208-row replay), #957 (submodule pin 9c465866 = Bash-5.3 patch 20), ci.yml lanes (Ubuntu lib/cli_tests/marker goldens, Bash upstream test progress on ubuntu-latest running scripts/run-bash-upstream-tests.sh, macOS macos-latest lib tests), 335 test files, 62 builtins + the five hidden fast-path builtins, and the __RUBASH_ARGV_DIALECT=legacy escape hatch in src/executor/path.rs. zh-CN numbers are at parity with EN.

The blocker — "19/24 byte-identical (2026-09-26, #500)" (EN Platform status + compatibility table, same wording in zh-CN):

Suggested fix (one line, EN + zh): either date the pass from the archive — "(2026-09-27 wt4/linuxrun lane, ledger archived in #477/#581)" — or drop the date entirely and keep "#500" as the carrying PR. If a genuine 19/24 re-run exists (e.g. after the #225–#240 wave), cite that run's record instead; otherwise 17/24 with the archive citation is the defensible pairing.

Everything else in this PR survives verification — fix the date and this is merge-ready. (Non-blocking FYI for the sibling niubash PR: its "8 regression tests" for #884 matches #884's own body, but the file now carries 9 #[test] fns after later additions.)

…7 wt4/linuxrun, 17/24 per its own ledger

The "(2026-09-26, #500)" tag was wrong on both counts: 09-26 is the
earlier "not-yet-usable" judgment (first smoke 8/10, gap-ledger C4) that
the 2026-09-27 wt4/linuxrun lane explicitly declared obsolete, and #500
only carried the figure forward — it is not the measuring record. No
archived record supports 19/24: the lane's own corpus-slice table
(docs/LINUX-RUN-STATUS.md, deleted in #478, archived in #477 section 4
and #581) tallies 17 suites at 0 diff + trap/redir/glob/extglob/new-exp/
read/ifs-posix with diffs = 17/24. README now reads "17/24 byte-identical
(2026-09-27 wt4/linuxrun lane, ledger archived in #477/#581)" in both
the platform-status paragraph and the compatibility table, EN + zh-CN
at parity. Addresses review comment 6319063190 on #982.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@caomengxuan666

Copy link
Copy Markdown
Member Author

Blocker fixed in 88b29be4 — took the archive-dated option, with the number corrected to the lane's own tally.

What changed (EN + zh-CN, both spots — platform-status paragraph and compatibility table):

  • 19/24 byte-identical (2026-09-26, #500) → 17/24 byte-identical (2026-09-27 wt4/linuxrun lane, ledger archived in #477/#581)

Why 17/24 and not 19/24: I went looking for the 19/24 source before deciding. git log -S "19/24" shows the figure entered the README in 914cbb56 (2026-09-28) citing docs/LINUX-RUN-STATUS.md — but that ledger (deleted in #478, archived in #477 §4 / #581) tallies 17/24: 17 suites at 0 diff + trap/redir/glob/extglob/new-exp/read/ifs-posix with diffs. The only other "19/24" in history (52725a17, docs/issue-suite-diff-analysis.md) is an unrelated arithmetic-expansion probe matrix. Issue-tracker search finds no re-run record after the #225–#240 wave either. So 19/24 has no archived source and 17/24 with the archive citation is the defensible pairing, per the review's own suggestion.

2026-09-26 confirmed as the earlier "not-yet-usable" judgment (first smoke 8/10, docs/cross-platform-gap-ledger.md C4), explicitly declared obsolete by the 09-27 lane header.

@caomengxuan666
caomengxuan666 merged commit af09213 into master Oct 21, 2026
6 checks passed
@caomengxuan666
caomengxuan666 deleted the docs/readme-overhaul branch November 2, 2026 01:05
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