Rust Glancer

2 months ago by codeinabox to c/rust

Rust Glancer, a functional LSP server for Rust which uses two orders of magnitude less RAM, is incredibly cool. Go check it out! This post started as a comment on lobste.rs, but I figured it out that it's better to publish it somewhat more prominently. Don't expect polished writing though!
fargeol 17 points 2 months ago

From https://github.com/rust-glancer/rust-glancer :

This project is being built with heavy use of LLMs. LLMs are used as a tool, not as a brain replacement.

I do consider the code to be my, and I am spending a lot of time caring about the code quality. So I consider it to be rather readable and maintainable. It might not be the idiomatic example of compiler-adjacent tooling (I don't have that much domain experience), but I am working on improving it as I work on it.

So if it is slop, then it is my slop, and the best way to help is to tell me what's wrong. This way I will be able to learn something and hopefully make the project better.

I don't know what to think about it.

path: 0 25440974, hotness: undefined, score: 17, children: 3
ddroid 7 points 2 months ago

@fargeol @codeinabox Haha same, but I guess they're atleast trying to care about code quality.

But hey, let me know your thoughts.

path: 0 25440974 25441061, hotness: undefined, score: 7, children: 0
flying_sheep 3 points 2 months ago

My wrist pain has gotten worse and worse last winter and spring, so I decided to try letting Claude do much of the writing. On my established code bases it's surprisingly not shit. I do get more done, but I'm also much more tired now that I basically do code review 90% of the time I used to code in.

It's much worse and needs a lot of handholding for new code bases though.

path: 0 25440974 25463568, hotness: undefined, score: 3, children: 0
araruna 1 point 2 months ago

Well... That's the guy who brought us rust-analyzer. I would like to think he deserves the benefit of the doubt.

path: 0 25440974 25490941, hotness: undefined, score: 1, children: 0
BB_C 7 points 2 months ago

Regarding the rust-glancer announcement itself, I hope the author is aware that lspmux (formerly ra-multiplex) exists, and zram. If lspmux didn't exist, then yes, editor restarts would have been annoying, but that has been a solved problem for a few years already.

Also, I'm not sure hitting SSD storage too much is good strategy in general, but maybe that's an overstated concern.

Otherwise, yes, RA could do better in memory consumption and some other aspects. And yes, the LSP protocol itself is not ideal.

In any case, introducing new ideas and approaches is always good, especially when there is no "fragmentation" concerns, which I think is the case here.

path: 0 25442211, hotness: undefined, score: 7, children: 0
Sibbo 3 points 2 months ago

Thanks for sharing, that's an interesting read!

path: 0 25440816, hotness: undefined, score: 3, children: 0
rust
rust

@programming.dev

login for more options
8325
1423
338

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

go to feed...