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.