Chose rustpython-parser over tree-sitter after measuring both on real LLM output

SprayPuzzleheaded533 · reddit · 2026-09-24

A developer building a local LLM desktop benchmark (Tauri + Rust) shares measured engineering decisions: tree-sitter silently tolerates missing Python indents that small models frequently produce, so rustpython-parser replaced it; Ollama's /api/generate silently drops non-snakecase options, prompting a regression test; a KV-cache size formula was validated against actual VRAM deltas (5% off); NVML sampling runs on its own thread with an "unavailable" fallback. MIT-licensed source available.

Original post →

More from coding & agent

coding & agent channel →