How AST-grep Rewrote Tree-sitter in Rust and Made It 30% Faster
herrington_d
85 points
15 comments
July 26, 2026
Related Discussions
Found 5 related stories in 296.6ms across 14,941 title embeddings via pgvector HNSW
- Making ast.walk 220x Faster palashawas · 104 pts · June 16, 2026 · 61% similar
- A Better R Programming Experience Thanks to Tree-sitter sebg · 112 pts · April 16, 2026 · 60% similar
- Show HN: LiteParse v2, now in Rust 100x faster pierre · 11 pts · May 28, 2026 · 59% similar
- Grit: Rewriting Git in Rust with agents cbrewster · 113 pts · June 09, 2026 · 58% similar
- We rewrote our Rust WASM parser in TypeScript and it got faster zahlekhan · 155 pts · March 20, 2026 · 54% similar
Discussion Highlights (6 comments)
AlexeyBrin
Reading the article is like climbing a load-bearing wall to quote their last phrase.
trickypr
> incremental old-tree reuse were removed Maybe I am missing what they meant here, but isn’t the entire point of tree-sitter that you can reuse old trees to make edit updates faster? It is seems quite probable that all the performance gains came from optimising for fixed files with no error recovery, at the cost of how ts is actually used.
gumby
Even this AI generated article hs a hard on for rust. If all references to switching to rust were eliminated the article would be the same.
senderista
I’m always so disoriented by wondering how to interpret the pronoun “I” in these AI-generated articles.
nullbio
ast-grep is a great tool. Really helps with agentic work. I wish the LLMs were trained to use it by default. Would make them incredibly powerful.
why_only_15
I really don't like this. Don't post your AI-generated articles here. https://www.pangram.com/history/fce67fb4-4f6a-4eb4-a323-5048...