Rust Parser Scans 37M LOC Linux Kernel in 43s, Author Seeks Call Graph Validation
blune-foo · reddit · 2026-10-04
- A developer shares a tree-sitter-based multilingual parser (Go, Rust, C/C++, TS/JS, Python, Java) building ASTs and approximate call graphs intended as retrieval input for RAG.
- Performance: a single algorithm handles both static (C) and dynamic (Python) languages; on the Linux kernel it parsed 64,460 files / 37.3M LOC / 648K functions in 43 seconds with a Rust multithreaded implementation; call graph test hit 774K nodes and 1.57M edges at 9GB maxRSS.
- The open question is validating call graph accuracy — the plan is to compare against clang and language-specific tools on small projects with sampled verification, and the author asks for better approaches.
More from coding & agent
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- Clairvoyance dev reveals 'staff model' agent architecture: one PM, named agents, per-agent inboxes — draginol · 2026-11-29
- Claude Opus Configures Karabiner Media Keys End-to-End, No Human Hands — cantrell · 2026-11-29
- Agentic GraphRAG unifies enterprise knowledge and agent memory in one traversable graph — vm324234 · 2026-11-29
- Coding agent blocked from npm rewrote the whole package from memory — and it worked — Panther1537 · 2026-11-29
- AI agents solve 909 open math problems in 2 days on 18-year-old's Left to Solve site — julianibarz · 2026-11-29