Native Shell
Native Shell:AI 生成的 UI,在你的应用中原生呈现,覆盖每个平台。iOS、Android、macOS、Windows 与 Linux 上的应用、GPUI 应用与网页在运行时加载已签名、沙箱隔离的 TSX 模块并绘制 th
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Portable CLJC search workspace model
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Portable CLJC model for kotoba-lang/search.
search.model scores a small in-memory document map (O(corpus)).
search.postings is the :search serving plane: term → sorted doc-ids,
AND by intersection, rebuildable from documents or datoms. Query cost is
posting length, not corpus size.
Pages editor: https://kotoba-lang.github.io/search/
The Pages UI is local to kotoba-lang and does not redirect to external hosts.
kbb -M:test
Two capability-free kernels, compiled by amu and verified by RUNNING the
artifact on both backends (js-browser and wasm32), not by compiling it.
src/search/bounded_index.kotoba ports search.model's index structure
— the name-keyed document registry (doc-id → {:title :body} record) and the
closed field-weight table — as the canonical bounded typed-map ([:map :string [:record …]], ≤31 entries) plus closed keyword membership.
See migration/bounded-index-and-weights-v1.edn.
src/search/bounded_search.kotoba ports the search machinery: the
tokenizer (a-z0-9 plus the Japanese ranges \u3040-\u30ff and
\u3400-\u9fff, with each CJK run replaced by its overlapping bigrams),
term-count, and score-doc over the closed weight table. It is
parity-tested against the .cljc oracle
(test/search/bounded_search_kotoba_parity_test.cljk)
and has its own self-check, which returns failures × 1000 + checks-run —
a count, never a boolean, because a boolean cannot tell one regression apart
from a build that ran nothing. Both backends answer 52.
See migration/bounded-search-machinery-v1.edn.
kbb -M:kotoba compile src/search/bounded_search.kotoba \
--target js-browser --output target/bs.mjs --fuel 8192
kbb -M:kotoba compile src/search/bounded_search.kotoba \
--target wasm32 --output target/bs.wasm --fuel 8192
node scripts/verify-bounded-search.mjs target/bs.mjs target/bs.wasm \
<amu-checkout>/runtime/browser-host.mjs
Two things this port measured, both of which were previously recorded as blockers and are no longer:
string-code-point-at exists. This README used to say the tokenizer
"needs a per-code-point string primitive the compiler does not yet expose".
That was an implementation state written without a date, and it went stale:
the primitive is an admitted language builtin and lowers on both targets
(amu 9092ee34). It genuinely was rejected by the amu pin this repo
carried (f6ee539e, "operation has no admitted lowering"), so deps.edn's
:kotoba pin was moved forward with that reason beside it.tokenize cannot return a
vector of tokens and search cannot return a sorted document list. The
kernel exposes the indexed face instead (token-count, and
token-start / token-end / token-text for the nth token) — the shape
bounded-text's segment-text / segment-count-text already use for
split. search stays the CLJC oracle.score-doc returns [:result :i64 :string] and refuses on U+0130 and
U+212A, the only two non-ASCII code points that lower-case into [a-z0-9]
(enumerated over all of Unicode on both hosts) and therefore the only inputs
where the kernel's ASCII-only fold can disagree with the oracle. A score of
0 is a real answer; a refusal must never be readable as one.