YOU ARE VIEWING ONE ITEM FROM THE AICRIER FEED

PostHog SQL parser hits 70x speedup

AICrier tracks AI developer news across Product Hunt, GitHub, Hacker News, YouTube, X, arXiv, and more. This page keeps the article you opened front and center while giving you a path into the live feed.

// WHAT AICRIER DOES

7+

TRACKED FEEDS

24/7

SCRAPED FEED

Short summaries, external links, screenshots, relevance scoring, tags, and featured picks for AI builders.

PostHog SQL parser hits 70x speedup
OPEN LINK ↗
// 1h agoINFRASTRUCTURE

PostHog SQL parser hits 70x speedup

PostHog has replaced its ANTLR-based C++ SQL parser with a hand-rolled Rust implementation written entirely by Claude Code. The new parser is 70x faster on local benchmarks and up to 454x faster in production, verified through property-based testing and shadow deployments.

// ANALYSIS

This is a landmark case study showing that LLMs can write complex, high-performance systems code when paired with rigorous testing pipelines. It shifts the agentic coding narrative from simple scripting to structured, test-driven synthesis.

  • Replacing ANTLR's runtime graph-walking interpreter with native, hand-rolled Rust code yielded a massive 454x average speedup on production queries.
  • The developer's primary role shifted from writing code to building validation loops, utilizing Hypothesis for property-based testing to compare AST outputs with the old parser.
  • Brittle lookahead fixes by the LLM were solved through targeted prompt engineering, forcing the agent to load relevant grammar rules into context before editing.
  • The final result is a highly complex 16,000-line Rust parser (using a Pratt expression parser and speculative backtracking) written entirely by Claude.
  • This highlights a new development pattern: using parser generators to establish correctness (as an oracle) and letting LLMs generate the high-performance implementation.
// TAGS
posthogclaude-codeai-codingcoding-agentagentdevtooldata-toolsopen-source

DISCOVERED

1h ago

2026-06-24

PUBLISHED

3h ago

2026-06-24

RELEVANCE

8/ 10

AUTHOR

robbie-c