Memory Safe Programming with Rust


Course Number: RUST-110
Duration: 2 days (13 hours)
Format: Live, hands-on

Memory Safe Rust Training Overview

Accelebrate's Memory Safe Programming with Rust training course gives attendees a thorough and practical understanding of memory safety, a concept that often poses a challenge for new Rust developers. While programmers with experience in other languages quickly grasp many Rust features, understanding and applying ownership and borrowing rules can be a steeper climb.

This advanced Rust course demystifies the Rust memory model and teaches attendees how to integrate it into their coding practice seamlessly. By the end of this Rust course, students have a deep understanding of memory safety in Rust and will be able to apply it to their projects immediately.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Understand Rust’s philosophy of memory safety
  • Work with memory leaks and dangling pointers
  • Review concepts such as the stack and heap
  • Understand ownership and borrowing
  • Work with references and mutability
  • Use smart pointers
  • Build self referential structures

Prerequisites

This course assumes prior experience with Rust programming language. The course focuses on upskilling Rust developers to understand and apply Rust’s memory safety concepts.

Outline

Expand All | Collapse All

Introduction
  • How Memory is Managed on a Computer
  • How the Operating System Views Memory
  • How Memory is Allocated in a Process
  • How Programming Languages and Runtimes Manage Memory
  • Pitfalls with manual memory management in languages like C or C++
  • Pitfalls with garbage collection in languages like Python or C#
  • Memory Leaks and Dangling Pointers
  • Ensuring Memory Safety at Compile Time
  • Rust’s Approach to Safe Memory Management
  • Other Safe Memory Management Approaches
Memory Management
  • Variables and their Data
  • Variable Addresses and Data Addresses
  • Mutability of Variables and their Data
  • Variable and Data Ownership
  • Rust’s Approach to Variables and their Data
Rust Memory Model
  • Ownership and Borrowing
  • References and Mutability
  • Stack Allocation vs Heap Allocation
  • Smart Pointers
  • Thread Safety through Atomics and Locks
  • Unsafe Rust
Smart Pointers
  • What are Smart Pointers?
  • When to use Smart Pointers?
  • Unknown Size at Compile Time
  • Self-Referential Structures
  • Interior Mutability
Smart Pointer Types
  • Box
  • Rc, Weak, and Arc
  • Cell and RefCell
  • RwLock and Mutex
Conclusion

Training Materials

All students receive comprehensive courseware covering all topics in the course. Courseware is distributed via GitHub through documentation and extensive code samples.

Software Requirements

  • A free, personal GitHub account to access the courseware
  • Permission to install Rust and Visual Studio Code on their computers
  • Permission to install Rust Crates and Visual Studio Extensions

If students cannot configure a local environment, a cloud-based environment can be provided.



Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan