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 turns 1 year old at the end of the month. I originally published with a squashed history, but it now includes 47 commits condensing the pre-release history. It's my first serious LLM-generated project, and the benchmarks appear to justify the effort. I'll blog about it soon.
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