The Rust Programming Language

The Rust Programming Language — Introduction

Ankit Tanna
Rustaceans
3 min readOct 5, 2023

--

Let’s learn about the brief history of how the Rust programming language originated.

Rust is a powerful programming language that has come into highlight in the past 7–8 years.

But after having series of lay-offs, this project was taken off the burner and put on the side. Until few years later, there was interest shown in this programming language by many big players like Microsoft and Google.

The Rust Programming Language, as per their website, has a motto of:

A language empowering everyone to build reliable and efficient software.

Rust official logo
Rust official logo

We will discuss following things?

  1. What is Rust?
  2. Who uses Rust?
  3. Why & why not use Rust?

What is rust?

Rust is a powerful programming language focusing on building reliable and efficient software. It allows you to write code which is very close to low level mean while maintaining abstraction of a high level programming language.

Compilation

Rust can compile the code in either Machile Level Code or Web Assembly which can run on browser.

Rust compilation options
Rust compilation options

Machine level code can be run as an app on Mac/Linux/Windows.

Who uses Rust?

Mozilla, Microsoft, Dropbox have been using Rust along with Lesser known organisations using Rust building OS like Tock, Bevy, Redox, etc.

You can find full list of the usages below:
https://www.rust-lang.org/production

There is a lot of diversities in the usage of Rust.

What can you build with Rust?

  • Web servers
  • Command-Line Interfaces
  • Native desktop applications
  • In-browser apps via WebAssembly
  • Performance-intensive libraries
  • Operating systems

WebAssembly will not be working on older browsers.

You can witness the power of Rust here: https://makepad.dev

Why use Rust?

  1. Speed
  2. Performance
  3. Going real fast

Theme is unlocking maximum speed from your hardware.

Programming languages like C (1972) and C++ (1985) were very efficient. C++ also supported OOP. But Rust, is quite efficient like C and C++ and also it’s reliable and ergonomic.

We’ll come back to these terminologies back again.

Errors in Rust are very much user-friendly as compared to C/C++:

user friendly error messages in Error vs C/C++

Rust shines where you want C/C++ lefels of performance. Along with this, you also get:

  1. Nice ergonomics
  2. A language server
  3. Automatic memory management
  4. Package manager
  5. Code formatter
  6. Concurrency
  7. Supports big code bases with confidence via compulation

Why not to use Rust?

  1. Rust is a big language
  2. Smaller ecosystem than C/C++
  3. Rust compiler is strict (satisfying/fighting the compiler)
  4. Rust has a slower iteration cycle than most languages
  5. Rust compiler is a bit slow
  6. Safer than C++
  7. Less safe than pure functional programming

It is:

the most loved programming language in 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023…

Let’s get started with Primitives in Rust. We will start with Primitives — String.

You can subscribe to my newsletter about The Rust Programming Language here. You can read about all the articles in this series here.

Rustaceans 🚀

Thank you for being a part of the Rustaceans community! Before you go:

  • Show your appreciation with a clap and follow the publication
  • Discover how you can contribute your own insights to Rustaceans.
  • Connect with us: X | Weekly Rust Newsletter

--

--