Back to Browse

Programming for Lovers in Python: Parallel Programming Part 1

482 views
Streamed live on Apr 20, 2026
1:44:14

This video is part of Programming for Lovers in Python and begins to explores parallel programming in Python. 00:00 Start screen 05:42 Welcome and news from the AIMBE induction 07:55 Warm-up: what do you do that nobody else does? 10:26 Why parallel programming belongs in an intro course 11:38 What is parallel programming? 16:13 Concurrency vs parallelism 19:08 Which problems are easy to parallelize? 23:38 Why we'll start with summing a list 25:39 Let's code: setting up the parallel folder 26:29 How many cores does your computer have? 30:20 Summing a list across two processes 42:25 Writing the partial_sum worker function 51:02 Starting processes and concurrency in action 56:26 Joining processes and reading from the queue 1:05:11 Generalizing to any number of processes 1:12:24 Slicing the data across workers 1:19:19 Why join needs its own loop 1:22:56 Why our "parallel" function still looks serial 1:27:24 Writing the timing_comparison function 1:33:48 The serial version wins… because of overhead 1:42:19 Looking ahead to other parallel applications, and happy coding ❤️ The material accompanies Chapter 6 of Programming for Lovers on "Parallel Programming in Python". It accompanies the code along shown below. [coming soon!] ⸻ About Programming for Lovers Programming for Lovers is an open online course where you write code to answer real scientific questions, built on award-winning teaching from Phillip Compeau, Professor at Carnegie Mellon University. ▶ Sign up for the mailing list to receive course materials, reminders, and earn a certificate: http://eepurl.com/iC9DSg ▶ Free course materials and companion resources: https://programmingforlovers.com ▶ Practice problems and autograded exercises for this code-along: https://cogniterra.org/course/766/promo ▶ Join the Philomath community on Discord: https://discord.gg/n5ZKySCKU4 ⸻ Philomath Membership All lectures and recordings are free and open. If you’d like to participate more deeply—through office hours, bonus sessions, and community support—you can become a Philomath member here: https://philomath.memberful.com Membership supports the instructors and helps keep Philomath open.

Download

0 formats

No download links available.

Programming for Lovers in Python: Parallel Programming Part 1 | NatokHD