Skip to content
Flintworks

Project8 July 2026

Learning Rust

View on GitHub

I started out writing C, and I loved it. A lot of that time went to competitive programming. C makes you allocate and free memory yourself, and I enjoyed that struggle. Then I spent about ten years in TypeScript and JavaScript, with some C#, and all three have a garbage collector that handles memory for me. I miss the struggle, and I miss writing code at the lowest level.

Coding agents can write low-level code, and my guess is that they already do it better than I would. I still want the skill for myself, so that I can dive deep whenever I want to. Learning Rust is the workspace I set up for that.

The workspace

The repository holds a curriculum that lists what to learn, a folder of exercises for each lesson, and a progress tracker. The routine has five steps: pick the next lesson, open its folder, write the code yourself, run cargo check and cargo test, then update the tracker. The README points to the Rust Book, Rust by Example, and the standard library documentation.

Since the point is to write the code myself, the agent's instructions tell it to teach. It asks questions before it answers, explains in three levels that start with a sentence or two, reviews code, and writes a solution only when I switch it to admin mode. The rules also describe my background in C#, C, and TypeScript for it to use in explanations.

Why Rust

Rust has no garbage collector, and its compiler checks how a program uses memory before the program runs. The memory struggle I miss from C is still there, and it happens at compile time.

My example is Jarred Sumner's July 2026 post Rewriting Bun in Rust, about a port done in 11 days with Claude agents. He gives the size of the job: "Excluding comments, Bun is 535,496 lines of Zig." He explains the move by the memory bugs that safe Rust rejects at compile time: "Compiler errors are a better feedback loop than a style guide." He reports the result both ways: "So far, Bun v1.4.0 fixes 128 bugs that reproduce in v1.3.14." He adds: "This rewrite introduced 19 known regressions, each of which has been fixed."

There's a future where many things that shouldn't be in JS will be in Rust, and I find that exciting.

The code is open source: Learning Rust on GitHub.