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
The project is still rough in spots, but it also fixes numerous bugs in the reference tools. The repo documents many bugs and quirks observed in Prettier, prettier-plugin-svelte, acorn-typescript, and Svelte's parser. I submitted some fixes this year, and there's a lot more I want to contribute.
0 reposts0 likes
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.
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