Top
Best
New

Posted by matklad 21 hours ago

Rust Glancer: Rust LSP using 100x less RAM(rust-glancer.github.io)
https://matklad.github.io/2026/08/21/rust-glancer.html
359 points | 72 commentspage 2
cjg007 2 hours ago|
[flagged]
13639366668 4 hours ago||
[flagged]
skavi 17 hours ago||
Waiting for RA to build up the full in memory data structure for a large workspace is so painful. Honestly, I'd just assumed that was the only way and didn't realize Rust Rover was different.

Does anyone have experience using that? Any tradeoffs?

hn4jkltkab 7 hours ago||
[dead]
762236 17 hours ago||
Why don't people explain their acronyms? What is a Rust LSP?
xixixao 17 hours ago||
People communicate with regards to the audience they expect.

This is why Rust (it’s a systems programming language) and LSP (the language server protocol invented by VS Code) are not explained in the article.

I am hoping I don’t have to define the words I used, but if in doubt, Google or ChatGPT are your friends.

762236 17 hours ago||
It makes sense to always explain acronyms. I always do to avoid random people reaching out for more explanations
sfdlkj3jk342a 16 hours ago|||
> It makes sense to always explain acronyms.

It does up until a point. Would you say the same about "AI"? What about "LLM"?

On HN (Hacker News), I expect that most would find a definition for AI or LLM to be redundant today. LSP is borderline in my opinion, especially when the context of Rust is already given.

francislavoie 17 hours ago|||
Language Server Protocol, it's what your IDE (like VSCode or other) uses to do linting, syntax checking, and "go to reference" stuff.
Fnoord 16 hours ago|||
A Rust https://en.wikipedia.org/wiki/Language_Server_Protocol
tiagod 4 hours ago|||
Why don't people use Google for such incredibly simple questions instead of asking the comment section?
762237 3 hours ago||
It wasn't a request for information, since you can obviously look it up. It was a critique on people's inability to imagine their audience, particularly once it scales.
IshKebab 17 hours ago||
LSP is a well known term among programmers these days.
762236 16 hours ago||
Not if an LLM writes your code. I get thousands of lines of high quality Rust per day without ever stepping into VScode.
wtetzner 16 hours ago|||
Then why not just ask the LLM to explain what LSP stands for?
nasso_dev 16 hours ago||||
what's an "LLM"? ;3
polyaniline 16 hours ago||||
How do you know it's high quality?
762236 16 hours ago||
I made myself an expert at Rust before I started using LLM's, and I review the code.
verandaguy 16 hours ago|||
You made yourself an expert in Rust and have never heard of an LSP?

This seems surprising to me given that Rust was one of the first languages to broadly advertise a toolchain and editor integrations which rely on the technology.

762237 14 hours ago||
I just put VScode in vim mode and rely on its basic symbol completion. My goal has always been to write as little as possible by thinking out the minimum solution. The simpler the code, the easier it is to reason about and to maintain.
polyaniline 15 hours ago|||
Props to you. I've been writing Rust for around 7 years now and I couldn't QA 1000s of lines per day.
762237 14 hours ago||
We sample it, and upon finding problems, adjust the system to eliminate that class of problems in the future.
verandaguy 14 hours ago||
Did you just create a new account so you could keep arguing with people?
762237 3 hours ago||
Yes. HN is groupthink central, and enforces it through down votes, which marks the account as low quality, which then turns off commenting for that account. It is a classic negative feedback loop that enforces the groupthink. You can tell how many accounts I've created by the account number.
verandaguy 1 hour ago||
... Right.
AdieuToLogic 15 hours ago||||
> Not if an LLM writes your code. I get thousands of lines of high quality Rust per day without ever stepping into VScode.

LSPs are orthogonal to both LLMs and VSCode. For example, see Metals[0].

0 - https://metals-lsp.org/

0x457 15 hours ago|||
Very little quality, let alone high-quality, code is written in VSCode.
IshKebab 9 minutes ago|||
You've got to re-evaluate... something if you genuinely believe that. Pretty much the same level of sanity as "very few good films use CGI".
yk_42 14 hours ago|||
This is an astonishing assertion. Can you back that up with evidence?
juntz 10 hours ago||
wonderful IDEA! Often two much ram cost using nvim with LSP, it may be work!

Forking it!

phplovesong 8 hours ago|
Hostile fork!
juntz 3 hours ago|||
I will appreciate for your generous sharing,it will help me much.

Learning how to communicate here is the most important things right now for me. But I have no idea about how is the polite here. I want to express more just like all the others but I don't know how to do.

if you would like to help me, thanks a lot!

juntz 3 hours ago|||
Oh I'm sorry for that...I just want to express the appreciation. So if you don't mind, could you tell me why this would looks like some Malicious comments.

I'm new for the opensource project, if there any impolite for the "fork",I would like to apologize for everyone here

peterfirefly 8 hours ago|
> It can use very little memory (target <100mb for reasonable projects).

We live in a strange world.

Narishma 1 hour ago|
What do you mean?