Hacker News Viewer

How AST-grep Rewrote Tree-sitter in Rust and Made It 30% Faster

by herrington_d on 7/26/2026, 5:51:03 PM

https://astgrep.com/blog/tree-sitter-rust-rewrite

Comments

by: trickypr

&gt; incremental old-tree reuse were removed<p>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.

7/26/2026, 10:26:10 PM


by: AlexeyBrin

Reading the article is like climbing a <i>load-bearing wall</i> to quote their last phrase.

7/26/2026, 9:26:54 PM


by: senderista

I’m always so disoriented by wondering how to interpret the pronoun “I” in these AI-generated articles.

7/27/2026, 1:18:16 AM


by: 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.

7/27/2026, 12:22:22 AM


by: 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.

7/27/2026, 1:39:18 AM


by: greatsage_sh

[flagged]

7/27/2026, 1:05:02 AM


by: froh

[flagged]

7/26/2026, 9:41:46 PM