Skip to content

docs(readme): evidence-first restructure with cross-platform identity (EN+zh) - #500

Merged
caomengxuan666 merged 2 commits into
masterfrom
docs/geo-crossplatform
Oct 10, 2026
Merged

caomengxuan666 merged 2 commits into
masterfrom
docs/geo-crossplatform

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

What

README 重构:证据先行、砍短(~230 行 → 149 行,EN/zh 同构),跨平台身份前置。仅动文档,代码/CHANGELOG 零变更;#495 的文风决策在保留的段落中原样延续。

GitHub 仓库元数据(已通过 gh repo edit 直接生效,不在本 PR 内)

新 description:

A from-scratch GNU Bash 5.3-compatible shell engine in Rust — embeddable, byte-level compatibility measured against GNU's own 83-suite corpus. Native Windows, Linux & macOS builds; Android cross-compile checks in CI. No POSIX emulation layer.

  • 草稿中的 "Android/OHOS targets in CI" 修正为 "Android cross-compile checks in CI":rubash 的 ci.yml 只有 Android aarch64/armv7 两条 check 腿,OHOS 仅在注释中镜像 niubash#210 的门,无自己的腿,不写。
  • topics 新增:linux macos cross-platform android openharmony gnubash;保留原 10 个,共 16(上限 20 内)。注:openharmony 按指示保留为检索词,但 rubash CI 无 OHOS 腿(同上),如需撤除说一声即可。

README 修改点(EN + zh 同步)

  1. 首屏跨平台身份:tagline 加 "cross-platform / Windows-first / native Linux and macOS builds";intro 段保留全部原有 claim(headless 引擎、非 shell 产品、参考 CLI、niubash 嵌入)。
  2. 83/83 golden 头条占位:ci golden 车道(最后一条上游切片快照重录)落地前,首屏留 HTML 注释空位,注释内写明落地后的措辞与 "当前实测 82/83 不得提前写"。
  3. 证据块(主体):
    • 生态 SOURCE 实测置顶(owner 点名的从未展示卖点):nvm.sh v0.40.x 全文逐字节干净、bash-it 全仓 221/221 组件 + 完整框架端到端加载、oh-my-bash 22 libs/252/252/5 主题 PS1、bash-completion 452/452、git-completion 140/140、modernish 166/166、configure 巨物、git t/test-lib.sh——每行链接测量 issue;
    • GNU 83 套件 true-baseline 台账(82/83 + nameref 残余已审计 + 3427→−99%),与 83/83 金线分列,不混仪器。
  4. 性能如实写:数组追加 O(n²) 修复 14.8x([perf] 数组追加与算术循环是脚本执行的热点(micro-benchmark 报告) #437);nvm 解析 852x → 个位数倍([perf] 解析吞吐残余(#130/#155/#176/#178 关闭后):nvm.sh -n 852x / nvm load 379x / configure 头 357x / 全量 configure 超时 / flat8000 123x / nst1 96x / rep40 65x #241、[perf] Incremental reader deep system: batch tokenizer re-lexes O(buffer) per appended line (nvm -n 720x / OpenSSH -n timeout residual) #281);近平价 cmdsub 1.2x / spawn 0.9-1.5x([perf] 执行器热路径残余(#156/#157/#158/#186 关闭后):read 循环 106x / fn 调用 94x / s+=x 77x / 展开 76x / 算术 50x / 内建循环 52x / 启动 13x #242);开口子热点直接链接 open issue,逐探针数据可复现(scripts/run-perf-suite.sh)。无 blazing fast。
  5. 平台矩阵(对齐 ci.yml/release.yml 实证):Windows x64 主平台 / Linux x86_64-gnu(CI 全量 + tarball + 19/24 实测)/ macOS aarch64(darwin runner 真实执行 + tarball)/ Android 两条 check 腿。平台缺口链接 docs/cross-platform-gap-ledger.md。
  6. FAQ(GEO,3 条 skinny):Does Rubash require WSL? → No;Is compatibility measured or claimed? → Measured;Can I embed it? → Yes(库 crate,niubash 即嵌入方)。每条 1-2 句自包含。
  7. Identity 压成 3 行:persona 语义 + rubash --identity + 指向 SKILL.md(rubash#154 披露节)与 docs/platform-identity.md。
  8. Quick Start 代码块字节不变;"Full functionality requires Windows today" 改为 "Windows 全栈 + Linux/macOS 可构建运行"(消除与新首屏的矛盾);footer 日期更新。

砍去内容去处(零信息丢失清单)

原 README 内容 去处
Architecture 树 + 五子系统 bullet docs/architecture.md(新增,逐字保留)
Subshells without fork 全节 docs/architecture.md(逐字保留)
Testing 节(3 条命令 + bashdb 循环句) docs/architecture.md §Testing the engine(逐字保留);cargo test --lib 亦留在 README
Development Principles 4 条 docs/architecture.md §Working rules(逐字保留);方法论另见 AGENTS.md
"Why native matters" 段 docs/platform-identity.md(新增,逐字保留)
"Paths are first-class / argv 方言契约" 段 docs/platform-identity.md(逐字保留)
"Platform status — cross-platform, Windows-first" 段 docs/platform-identity.md §Platform status narrative(逐字保留);数字事实进 README 平台矩阵
Identity and Compatibility 全节(persona 全表 + 披露面 + hidden builtins) docs/platform-identity.md(逐字保留);SKILL.md 披露节不动
"Measured, not claimed" 段 内容并入 README 证据块 GNU 语料小节
完全通过的 82 套件名单 #477 台账归档 + git 历史(父提交 7be6a79 可查);README 内注明去向
Beyond the GNU suite 表 10 行 README 证据表全量保留(Linux 19/24 行移入平台矩阵 Linux 行)
zh 版第 21 行路径段(#495 前旧变体) 被 EN #495 方言契约版取代,canonical 版在 docs/platform-identity.md;旧文本随 git 历史保留

验证

caomengxuan666 and others added 2 commits October 10, 2026 16:46
… (EN+zh)

README cut from ~230 to 149 lines, restructured around evidence:
- ecosystem SOURCE block first (nvm.sh/bash-it/oh-my-bash/bash-completion/
  modernish/configure), every row linking its measurement issue
- GNU 83-suite true-baseline kept as the measured ledger (82/83, audited
  residual); 83/83 golden headline left as a placeholder comment until the
  ci golden lane lands
- honest performance section (14.8x array-append fix #437, nvm parse
  852x -> single-digit #241/#281, open gaps linked)
- platforms matrix aligned with ci.yml/release.yml facts (Windows primary,
  Linux+macOS builds, Android cross-compile check legs)
- 3-item FAQ (WSL/measured/embed), cross-platform tagline, zh synced

Cut detail moved losslessly into docs/architecture.md and
docs/platform-identity.md; every moved span is listed in the PR body.
@caomengxuan666
caomengxuan666 merged commit 41de831 into master Oct 10, 2026
6 checks passed
@caomengxuan666
caomengxuan666 deleted the docs/geo-crossplatform branch October 10, 2026 08:49
caomengxuan666 added a commit that referenced this pull request Oct 21, 2026
…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 added a commit that referenced this pull request Oct 21, 2026
…est platform status, current architecture (#982)

* docs(readme): overhaul — Performance section with pinned numbers, honest 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

* docs(readme): date the Linux corpus pass from the archive — 2026-09-27 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>

---------

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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