Rust Glancer: Rust LSP using 100x less RAM(rust-glancer.github.io)
264 points by matklad 15 hours ago | 54 comments
tl;dr: Rust Glancer is an alternative Rust LSP that targets under 100MB of RAM by ditching rust-analyzer's incremental salsa/rowan architecture in favor of a frozen analysis model persisted to disk and invalidated on save. It trades some keystroke accuracy and completeness for dramatically lower memory usage and instant re-indexing on restart, with indexing benchmarks roughly matching or beating rust-analyzer. Built over 4 months with heavy (but reviewed) LLM assistance, it already supports type inference, Chalk-based trait solving, and common LSP actions, and is usable as a daily driver despite missing features.
HN Discussion:
  • Appreciates the author's responsible and healthy approach to LLM-assisted development
  • Criticizes rust-analyzer's refusal to use disk cache given high RAM/CPU usage
  • ~Expresses dismay that 100MB is considered low memory usage today
  • Curious about alternatives like Rust Rover and asks about tradeoffs
  • Complains about unexplained acronyms like LSP