Why Rust Is My Favorite Programming Language
There are many programming languages: Python, JavaScript, C++, Go, Rust, and plenty more. Each has its own strengths and weaknesses.
If I had to rank my preferences, Rust would be first, Python second, and JavaScript third. I do not think Rust is the best language for every situation. Python may be a better fit for some tasks, and JavaScript is often needed for web development. I use different languages depending on the work.
Still, Rust is my favorite because it fits the development values I care about.
1. Fine-grained control over system resources
My first reason for liking Rust is that it lets me manage memory and system resources precisely.
Rust is well suited to systems programming. It is not a variation or extension of C or C++; it was designed as an independent language. Rust uses ownership and borrowing rules to provide memory safety, preventing many memory errors in safe Rust code at compile time.
That does not mean every program written in Rust automatically uses less memory. Actual usage depends on data structures, algorithms, libraries, and allocation strategies. Even so, Rust is an appealing choice for developers who want to manage resources directly without relying on a runtime environment.
I sometimes build embedded or IoT software, as well as programs that interact closely with the operating system. Memory and hardware resource management matter especially in those environments. Python is also an excellent language, but I think a systems language like Rust is often a better fit for this kind of work.
Feeling resource limits while using Windows
As an aside, I currently use Windows as my primary operating system for a number of practical reasons. I would like to move my work environment to another operating system eventually, but for now I still need to use Windows.
When I build large projects or run several development tools at once, I sometimes feel the limits of my system resources. I cannot say whether the cause is Windows itself, the build tools, the project structure, or the amount of memory. The experience has simply made me think more about using limited resources efficiently.
2. Building and distributing executables
Rust projects are usually built and managed with Cargo. As a project grows, compilation can use a lot of CPU and memory, and build times can become long.
Once the build is complete, you can distribute an executable for a target operating system and architecture. Users generally do not need to install the Rust compiler or Cargo and build the program from source just to run it. Depending on how the program is packaged and what it depends on, additional files may still be required.
Build settings can also be adjusted to reduce executable size. That does not mean Rust executables are always smaller than those from other languages. Static linking, included libraries, and optimization settings can make them larger instead.
What I value is being able to measure and tune a program's runtime behavior and resource use.
Development cost and benefits for users
This is also the most personal reason I like Rust. Even if a build takes longer and uses more compute during development, I think that can be worth it if the finished program saves computing resources for many users.
For example, the cost of building a program might be somewhat higher, but if it reduces memory or CPU usage for thousands or tens of thousands of users, that may be worthwhile overall.
Of course, these benefits do not happen automatically just because a program is written in Rust. Performance still needs to be measured and optimized. What matters to me is not a particular language by itself, but a development mindset that considers the resources used by the people running the software as well as the convenience of the developer.
3. Memory safety without a tracing garbage collector
My third reason for liking Rust is that it does not rely on a conventional runtime garbage collector.
Garbage collection (GC) finds and reclaims memory that a program no longer uses. Languages such as Python, Java, and Go use different forms of automatic memory management. These approaches reduce the need for developers to free memory manually, but depending on the implementation, they can use additional CPU resources or affect latency. The impact varies with the language and how the program behaves.
Rust manages memory differently through its ownership system. Each value has an owner, and there are rules for moving ownership and using references. The compiler checks these rules to prevent errors such as accessing freed memory or freeing memory twice in safe Rust code. It also performs the necessary cleanup when a value's owner is no longer valid.
As a result, ordinary memory management does not require a separate tracing GC to run. This design can help make runtime behavior more predictable and resource management more direct.
Rust does not make memory leaks impossible. Memory may remain allocated in situations such as reference-counting cycles, and unsafe code changes the scope of what the compiler can guarantee. Still, catching many memory-safety problems at compile time in safe Rust is a major advantage.
4. I can live with the trade-offs
Liking Rust does not mean I think it has no downsides.
Compilation can take a long time and use significant system resources. Large projects may spend a lot of time compiling dependencies, optimizing, and linking. Ownership and the borrow checker can be a steep learning curve. Code that would be simple in another language may need to be redesigned around ownership and lifetimes in Rust.
For some projects, another language may have a stronger library ecosystem or better hardware support. Long build times are not an advantage in themselves.
Even so, I am willing to accept some of these costs. I see it as a reasonable trade-off when spending more time and resources during development may improve the finished program's reliability or runtime efficiency. The actual benefit still needs to be measured and optimized.
5. That is why I use Rust
I consider Rust for everything from utilities and server programs to systems software, embedded projects, and IoT. I also use Python or JavaScript when they are a better fit. Python is convenient for rapid development, automation, and its wide range of libraries; JavaScript plays an important role on the web. Each language has its strengths.
Still, Rust is my favorite. I care not only about the convenience of the person building a program, but also about the computing resources used by the people who run it. When possible, I want to build software that uses less memory, avoids unnecessary CPU work, and runs reliably.
Rust is not my favorite simply because it is fast. It is a language that helps me put the development values I care about into practice.
Related reading: Building a Keyboard and Mouse Switcher in Rust · Six Principles That Guide How I Design Software.