DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Why should you consider adding Rust to your stack?
Leonardo Bonetti
Leonardo Bonetti

Posted on

Why should you consider adding Rust to your stack?

Rust is a high-level language with low-level performance, which brings us to our first ready:

Performance

Unlike languages like C or C++, developing in rust is extremely fast and particularly satisfying, with the compiler extremely efficient in pointing out problems in the code, it becomes your friend and not your enemy (As I particularly felt developing applications in C around mid-2012 ).
It's a memory-safe language, forget the problems with null pointers and etc, garbage collector doesn't exist here because of the Ownership strategy.
Everything in the language is aimed at giving you the necessary possibilities to create the most performative systems possible with the practicality of interpreted languages like JS

Expand your technical vision

The market demands more and more speed of delivery from developers and languages ​​like JS/TS help us a lot at this point, it has gigantic communities and many ready-made solutions, which hardly a JS developer will worry about concurrency problems, thread starving, efficiency in memory allocation, etc.
Each technology has its place and will better serve different situations, in terms of productivity, JS/TS is undoubtedly the best possible solution, depending on the needs of the system, it guarantees a fast and concise delivery, the problem starts when we tend to use the same technology for EVERYTHING.
Chances are, if you decide to learn RUST, you won't use it on your entire system, but rather create services to meet very specific demands that require extraordinary performance and security (You can even do everything in Rust, but as I said, each technology has its place and it would not be smart to do so in most situations).
I will exemplify with my work case, my company builds systems for financial solutions, in the case of a brokerage firm, 80% of the system is CRUDs, and for these 80% nothing better than a super productive language, but the 20% that is the order book used in trading and user balance control where atomicity and performance have to be guaranteed, that's where Rust shines, it gives you options that in the comfort of working so long with interpreted languages, you end up forgetting that exist, it brings you closer to the most basic fundamentals of building a computational system, giving you possibilities and a security that no other interpreted language will provide you.

Opportunities

The Rust ecosystem is infinitely smaller compared to JS/TS, although I've been a language lover since 2019, I'm just now feeling full security in bringing it to my company's stack, as it's getting more and more mature, but far from being extremely comprehensive, this means a fertile environment for growth opportunities, the reasons mentioned above make Rust a very desired language, but there is a great shortage of professionals and tools to help development.

Top comments (0)

🌚 Life is too short to browse without dark mode