tsv 0.6 is out, near-production-ready formatters/parsers for TypeScript/JS, CSS, and Svelte - 2.2x faster than oxfmt for TS single-threaded, 3.6x CSS - wasm builds for browsers (oxfmt ships none) - CLI formatting is 3x faster than rsvelte-fmt - vscode/openvsx extension tsv.fuz.dev/docs/benchma...
Post
tsv.fuz.devbenchmarks - tsv.fuz.devPrecise language tools for TypeScript/JS, CSS, and Svelte in Rust: a formatter that closely follows Prettier and a drop-in for Svelte's parser.
Next I'm experimenting with rearchitecting to Zig-inspired data-oriented parsing - mitchellh.com/zig/parser - which should get tsv closer to Yuku's perf, and then I may have a fork of Svelte that replaces acorn/acorn-typescript with a useful speedup. HTML and JSON support soon after that.
mitchellh.comZig Parser
Feedback welcome! The hardcoded formatting style is for simplicity and to avoid depending on a JS runtime for Prettier-compat config, which has perf costs and deployment downsides. Extensions: marketplace.visualstudio.com/items?itemNa... open-vsx.org/extension/fu... Repo: github.com/fuzdev/tsv
github.comGitHub - fuzdev/tsv: precise language tools for TypeScript/JS, CSS, and Svelte in Rustprecise language tools for TypeScript/JS, CSS, and Svelte in Rust - fuzdev/tsv
0 reposts1 like