Nilay Byju

I might give up on rust.

Rust is starting to be too much for me.

- 2 minute read

So, Rust is my main programming language. I’ve been using it for the last year and I enjoyed it a lot. But I’ve been facing a few issues with it lately and I don’t know if I will continue with the language any much longer.

The Story

Let me start with the root of my problems and what made me go against rust. I’ve been exploring multiple projects recently and most of them are low-level. I chose C as the language for these projects as it was easily the best low-level language out there. This is where I first started out with using a Language Server Protocol. And using an LSP really doubled my productivity. I was able to catch issues with my logic way before I even hit the compiler. And the compiler was blazingly fast at compiling compact and fast binaries.

The Issue

After working on these projects for a while, I came back to my rust projects. But it didn’t feel the same anymore. I found myself stuck wating for the rust compiler to finish compiling. And most importantly of all, not using an LSP felt weird. Knowing how much an LSP is useful, I setup rust_analyzer and began coding, and immediately fell face first into a frustrating issue. The LSP had some sort of latency that I could feel. And the worst of all, it seemed to eating up a lot of resources and slowing my system down. Instead of improving my productivity, it decreased it.

I just cant ignore it anymore after knowing how much of a good development experience I had with C. I am not arguing that C is better than Rust. Obviously not, and I did face many memory issues and segmentation faults. But the slow compiler and lsp is bugging me a lot. As much as I appreciate the memory safety, syntax, and community of rust, I hate these two issues just as much.

Solution

I don’t see any clear solution. Although many languages have fast compiliations and LSP, no language comes even close to the safety and convenience of rust. So it is very unclear whether I’ll continue with the language or not. Perhaps I’ll make a new post about what I ended up doing. Maybe not if I continue with rust.