ganeshn2blog.
← Back to the journal
Reflection · Rust ·

Why I’m drawn to Rust

Low-level control, thoughtful memory management, and the reasons teams are rebuilding software in Rust.

I love Rust because it brings me closer to how a computer actually works. Memory, performance, and the instructions a processor executes become part of the conversation. That level of control makes the language fascinating to me.

Rust can compile to native machine code. I write Rust source, and the compiler translates it into instructions for the target processor. I do not have to write those instructions by hand to build software that runs close to the hardware.

But native compilation is only part of the appeal. What interests me most is how Rust combines that capability with a careful approach to memory.

Understanding who owns the data

Every piece of owned data has someone responsible for it. Ownership can move, and other parts of a program can borrow access. The compiler checks whether those relationships are valid before the program runs.

Consider a piece of text. One function might need to read it, while another needs to change it. Rust asks us to make that difference explicit. Borrowing allows access without necessarily copying the data or transferring ownership.

These rules can make a small program feel demanding at first. Yet the questions behind them are useful: Who owns this value? Who can change it? Will it still exist when this reference is used?

Rust manages memory without requiring a tracing garbage collector. Owned resources are normally cleaned up when their owner is dropped. The checks happen during compilation, while the cleanup happens as the program runs. I find that distinction especially interesting: the compiler helps establish the rules before execution begins.

Why teams rewrite software in Rust

Rewriting working software is a serious investment. Teams have to preserve behaviour, test compatibility, and learn a different way of expressing their designs. Rust becomes attractive when its strengths address a concrete problem: memory safety, unpredictable response times, or the cost of running a busy service.

Discord offers one example. In 2020, its engineering team described rewriting the Read States service from Go to Rust. This service tracks which channels and messages people have read. The team had traced periodic response-time spikes to garbage collection in that particular implementation. Their Rust version removed those spikes in testing, and further tuning improved CPU use, memory use, and latency. It was a focused rewrite of one service, rather than a replacement of the entire Discord application.

Security is another reason. Ubuntu 25.10 adopted sudo-rs, a Rust implementation of the tool that allows authorised users to run commands with elevated privileges. For software with that responsibility, preventing memory-corruption mistakes is valuable. Rust’s safety checks can reduce that class of risk, although permission rules and other application logic still need careful review.

Ubuntu 25.10 also shipped Rust implementations of familiar utilities such as ls, cat, and cp through rust-coreutils. These replacements show how Rust can reach the everyday foundations of a system. They also show why compatibility matters: a replacement must handle the behaviours that existing scripts depend on, and performance improvements vary by operation.

These examples help explain the interest in Rust. Some teams want more predictable performance. Others want stronger memory-safety guarantees in important tools. The reason for a rewrite should be specific enough to test.

Fast software still needs thoughtful design

My curiosity about concurrency adds another layer. Starting thousands of tasks sounds impressive, but it raises practical questions. How much work should run at once? What happens to unfinished tasks after the first useful result arrives? How should failures be handled?

A language can help prevent certain mistakes, but the design still matters.

The same is true of performance. Rust offers strong foundations for fast software, but a fast language does not automatically make every application fast. Algorithms, allocations, database queries, and unnecessary work still shape the result.

A reason to keep learning

That is what keeps me interested. Rust gives me a reason to look beneath the surface—to understand where data lives, how work is shared, and what a program asks of the machine.

There is plenty left for me to learn. That is part of why I want to keep going.