gpu-lexer:约 27KB 的语言无关 WebGPU 语法高亮 gpu-lexer: ~27KB language-agnostic WebGPU syntax highlighter
语言无关的 WebGPU 高亮,没见过的语言也能猜类型。 A language-agnostic WebGPU highlighter that guesses unseen languages.
语言无关的 WebGPU 高亮,没见过的语言也能猜类型。 A language-agnostic WebGPU highlighter that guesses unseen languages.
HN https://gpu-lexer.vercel.app/ — Vercel Labs Shu Ding:先把源码切成词/空白/符号,再用极小 WebGPU 模型结合局部与全文上下文打标签;宣称对未见过的语言也能猜类型,并支持 HTML/Vue/Svelte 内嵌 script/style。站点自述为实验,以与 Shiki 标签一致率衡量(文中约 83%),非语法等价高亮器。公开页 200。 claims it can guess types for unseen languages and mixed HTML/Vue/Svelte script/style regions. Site frames it as an experiment scored by Shiki label agreement (~83% in copy), not a grammar-equivalent highlighter. Public page 200.
可直接玩或操作的教学游戏与 WebGL 演示。 Teaching games and WebGL demos you can play in the browser.
该类型下收录的公开 HTML 页面。 Public HTML pages listed under this type.
为什么推荐Why we recommend it 站点自述实验向、与 Shiki 一致率非客观正确性;本库不声称可替换生产高亮器。 Site frames an experiment scored by Shiki agreement, not objective correctness; not catalogued as a production highlighter replacement.
公开演示页 HTTP 200(2026-09-23)。HN item 49619464。预览为 Playwright 实拍首屏裁 3:2 WebP。 (item 49619464,2026-09-09,121pts) 预览为 Playwright 实拍首屏裁 3:2 WebP。Demo page HTTP 200 (2026-09-23). HN item 49619464. Preview is a Playwright above-the-fold capture cropped to 3:2 WebP. (2026-09-09, 121pts) HN item 49619464 at https://gpu-lexer.vercel.app/ — Vercel Labs (Shu Ding): tokenize into words/whitespace/symbols, then a tiny WebGPU model labels spans from local + whole-file context; preview is a Playwright above-the-fold capture cropped to 3:2 WebP.