Rust: Ownership Explained, Memory Safety

If you have ever spent hours digging through Windows Error Reporting logs trying to decipher a sudden BEX64 crash, or watched an application completely lock up due to a mysterious memory access violation, you have been the victim of poor memory management. In traditional systems programming languages like C or C++, developers have to manually allocate and free memory. If they forget to free it, the program bloats and crashes (a memory leak). If they free it too early and try to use it again, the application violently terminates (a use-after-free error, often throwing that dreaded 0xc0000005 exception code). ...

June 9, 2026 · Gregory Bryant

Rust: Control Flow, Making Decisions with If, Else, and Loops

Programs are not just top-to-bottom lists of instructions. For software to be useful, it needs to react to data, make decisions, and repeat tasks. A game needs to keep running until the player quits. A server needs to respond differently to an admin than to a guest. The mechanisms that guide a program through these decisions are called Control Flow. Let’s go over how Rust handles branching logic (if/else) and repetition (loops). We will also build a classic beginner project: a number-guessing game that utilizes an infinite loop and conditional breaking. ...

June 4, 2026 · Gregory Bryant

Rust: Variables and Immutability

If you are coming to Rust from languages like Python, JavaScript, or C++, you are used to variables acting exactly as their name implies: they vary. You declare a variable, assign it a value, and change that value whenever the program’s logic dictates. Rust takes a different, highly intentional approach. In Rust, variables are immutable by default. Once a value is bound to a name, you cannot change it. This might feel restrictive at first, but it is one of the foundational design choices that allows Rust to guarantee memory safety and thread safety without sacrificing speed. Let’s explore how variables work in Rust, why immutability is the default, and how to safely bypass it when you need to. ...

June 3, 2026 · Gregory Bryant

Rust: Cargo and the Anatomy of "Hello, World"

Welcome to day one of writing Rust. You are stepping into a language that powers everything from massive web servers to the core utilities of operating systems. If following from our previous post, you are ready to dive right in. Otherwise, checkout Setting up your development environment . Let’s start with a break down on how Rust projects are structured and get your first program off the ground. Meet Cargo: Your New Best Friend In some languages, compiling code, managing dependencies, and formatting your files require three or four different tools. Rust simplifies this with Cargo. ...

June 2, 2026 · Gregory Bryant

Rust: Setting up your development environment

To get into Windows application programming with Rust, you need a few core dependencies before you can start compiling code. Because Rust interacts closely with the Windows operating system, it relies on Microsoft’s C++ build tools behind the scenes. Here is the checklist to install Rust on a Windows machine. ...

May 21, 2026 · Gregory Bryant