Rainer Stropek

A Love Letter to Rust

What if you could eliminate entire classes of memory bugs before your code ever runs? Discover Rust's secret: the ownership model.

A Love Letter to Rust
#1about 5 minutes

Why Rust is so popular with developers and companies

Rust's popularity is driven by strong community appreciation, corporate sponsorship, and adoption for systems programming like the Linux kernel.

#2about 6 minutes

Reviewing common memory safety problems in other languages

Examples in C and C# demonstrate vulnerabilities like memory leaks, use-after-free, and double-free errors that Rust is designed to prevent.

#3about 6 minutes

How Rust's ownership rules prevent memory errors

Rust's compiler enforces strict ownership rules, where each value has a single owner, preventing memory issues like double-free at compile time.

#4about 8 minutes

Using borrowing and references for temporary data access

The borrowing mechanism allows functions to access data without taking ownership through immutable or mutable references, which are checked by the compiler.

#5about 8 minutes

Building custom types with structs and traits

Rust's type system uses structs for data aggregation and traits for defining shared behavior, enabling powerful, type-safe abstractions without classes.

#6about 6 minutes

Using macros, enums, Option, and Result patterns

Macros provide compile-time code generation, while powerful enums with associated data are used for essential patterns like Option for nullability and Result for error handling.

#7about 4 minutes

Exploring small features that improve developer productivity

Rust includes many quality-of-life features like variable shadowing, the error propagation operator, built-in documentation tests, and type inference.

#8about 2 minutes

Key resources for getting started and learning Rust

To begin learning Rust, you can use the official Rust book, practice with exercises on Exorcism, or join a community meetup.

#9about 3 minutes

Q&A on ideal project types and comparing Rust with Go

Rust excels in server-side applications, microservices, and command-line tools but is less mature for GUIs, offering more expressiveness than Go at the cost of a steeper learning curve.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
DC
Daniel Cranney
Building AI Solutions with Rust and Docker
In recent years, artificial intelligence has surged in popularity in the world of development. While Python remains a popular choice in the realm of AI, Rust - often known as Rust Lang - is quickly emerging as a formidable alternative.Rust programmin...
Building AI Solutions with Rust and Docker

From learning to earning

Jobs that call for the skills explored in this talk.

Rust Engineer

Staking Facilities GmbH
München, Germany

Remote
48-67K
API
Blockchain
Microservices