LOADING

From Micrograd to coppergrad: Building Neural Networks and Backpropagation from Scratch in Rust

In this talk, we’ll re-create the core ideas of Karpathy’s micrograd, but entirely in Rust.

Paweł Szulc
About This Talk

What happens when we take Andrej Karpathy’s legendary “The spelled-out intro to neural networks and backpropagation” — and rebuild it line by line in Rust?

In this talk, we’ll re-create the core ideas of Karpathy’s micrograd, but entirely in Rust. Together, we’ll build a tiny automatic differentiation engine and a simple neural network library - all from first principles. Along the way, we’ll uncover what backpropagation really is, why it works, and how it feels to express these mathematical concepts using Rust’s types, ownership, and safety guarantees.

This session is not just about Rust, and not just about neural networks — it’s where the two meet.

If you know Rust but have never built a neural net from scratch, you’ll finally understand how gradients flow and models learn.

If you know machine learning but not Rust, you’ll see how Rust’s design leads to clear, correct, and fast numerical code.

And if you love both - you’ll walk away inspired to experiment with tch-rs and other Rust ML tools.

Prerequisites: Basic Rust (or any programming language) and a vague memory of high-school calculus.

Outcome: You’ll leave understanding both how backpropagation works and how Rust helps you express it safely and efficiently.

more great talks

Might Be Interesting

Day 2
  —  
12:25 pm
arrow pointing right icon

Clean Code for Good Science: Rust in Research and Health

This talk explores what it means to write scientific software that lives up to the standards we expect of science itself.

Day 2
  —  
4:50 pm
arrow pointing right icon

Channels in Rust: The Art of Concurrency

We’ll take a deep dive into Rust channels — from synchronous channels to asynchronous channels — to explore how message passing enables reliable concurrent programming.

Day 1
  —  
4:15 pm
arrow pointing right icon

Why I Needed Rust: Finally, Infrastructure Automation I can sleep on

For infrastructure engineers, SREs, platform teams, and Rust developers who've felt the pain of configuration drift, failed deployments, and infrastructure code that simply doesn't scale safely.

Day 1
  —  
11:50 am
arrow pointing right icon

Are mutexes slow?

In this talk, we'll dive deep into what makes concurrency coordination costly, and explore some pathways to mitigate that cost.

Day 2
  —  
11:15 am
arrow pointing right icon

Rust performance debugging with TUIs and LLMs

In my session, I will present the https://hotpath.rs crate and explain how it compares to other profiling tools available.

See All Events
Join us!

We're looking for amazing speakers.
CFP is open till 10.01.2023

Fill in Call for Papers
location icon

Location

Centrum Konferencyjne POLIN, Poland
stay in touch icon

Follow Us

Contact Us