Show HN:我用兩天時間,結合 AI 將 svelte-check 速度提升了 30 倍

Hacker News·

一位開發者推出了 svelte-check-rs,作為 svelte-check 的直接替代品,它結合了 Rust、並行處理和 tsgo,將 CLI 診斷速度提升了 30 倍,特別針對 AI 編碼代理和 CI 管道進行了優化。

Drop-in replacement.Native speed.

Rust parser + parallel transforms + tsgo type-checking.
Same CLI. Same output. Faster feedback.

Built for agentic coding

svelte-check is built on Language Server Protocol infrastructure—optimized for IDEs with persistent connections, incremental updates, and interactive editing. Great for autocomplete and hover info. Slow for one-shot CLI checks.

svelte-check-rs is a batch-first CLI. No LSP. No language service overhead. Just fast, parallel diagnostics for CI pipelines and AI coding agents.

Keep using the Svelte VS Code extension for IDE features. Use svelte-check-rs when you need fast CLI feedback. Still on Svelte 4? Stick with svelte-check.

Why it's fast

Rust Parser

Zero-copy lexer and AST built for Svelte 5 runes. No Node.js startup overhead.

Parallel Transform

Svelte to TypeScript via rayon. All CPU cores. Source maps preserved.

tsgo Compiler

Microsoft's native Go port of TypeScript. 10x faster than tsc.

Install

CLI Reference

Core

Diagnostics

Performance

tsgo

Image

Benchmark Methodology

Production SvelteKit monorepo. Stats are source files checked for diagnostics; TypeScript also loads the full node_modules dependency graph for type resolution.

Hacker News

相關文章

  1. AI 將 GPU Shaders 移植到 Rust 的速度提升 30 倍

    9 個月前

  2. 透過AI編寫10萬行Rust程式碼的學習心得

    4 個月前

  3. Show HN:為使用AI程式碼助手的開發者提供的兩本Rust書籍

    3 個月前

  4. Show HN:Lux – 以 Rust 編寫的 Redis 替代方案,速度提升 5.6 倍且 Docker 映像檔僅約 1MB

    大約 1 個月前

  5. 適用於 AI 代理的無頭瀏覽器自動化 CLI (Rust)

    3 個月前