Skip to content

Latest commit

 

History

History

02-programming-foundations-and-memory-model

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Phase 02 — Programming Foundations & Memory Model

Internalize the machine model: what a pointer really is, what the stack does, how Rust ownership works.

Lessons: 18  ·  Estimated time: ~20 h 0 min Phase capstone artifact: A tiny manual-memory library plus ownership demos.

Lessons

# Lesson Status Time
01 What Is a Program, Really (Compilation, Linking, Loading) ✅ ~60 min
02 Values, Types, Variables, Scope ✅ ~45 min
03 Control Flow — Branches, Loops, Recursion ✅ ~60 min
04 Functions, the Stack, and Calling Conventions ✅ ~75 min
05 Pointers, Addresses, and Indirection (in C) ✅ ~75 min
06 The Heap — malloc, free, fragmentation ✅ ~75 min
07 Arrays, Strings, and Bounds ✅ ~60 min
08 Structs, Unions, Bitfields, Alignment ✅ ~60 min
09 Errors — Returns, errno, exceptions, Result types ✅ ~60 min
10 Ownership and Borrowing — the Rust model ✅ ~75 min
11 Lifetimes, References, RAII ✅ ~75 min
12 Generics, Traits, Polymorphism ✅ ~75 min
13 Modules, Packages, Linkage ✅ ~45 min
14 The Preprocessor and Macros (C, Rust) ✅ ~45 min
15 Build a Pool Allocator (from scratch in C) ✅ ~90 min
16 Build a Bump and Arena Allocator (in Rust) ✅ ~90 min
17 Defensive Programming — Asserts, Invariants, ASAN/UBSAN ✅ ~60 min
18 Phase Capstone — A Tiny Manual-Memory Library ✅ ~75 min

Legend: ✅ Complete  ·  🚧 In Progress  ·  ⬚ Planned

How this phase fits

See ../../ROADMAP.md for the full curriculum and prerequisites. See ../../LESSON_TEMPLATE.md for the shape every lesson follows.