Sustainable Coding: Why Your "Hello World" Matters
summary
A tiny Python loop that pings a server every 500 ms and a for loop that reallocates a list each iteration are shown to multiply waste at scale, costing CPU cycles, electricity, cooling water and measurable CO2. CodeCarbon wraps processes, estimates energy from CPU/RAM/GPU and hardware specs and plugs into local runs and CI/CD to show before/after gains. Practical fixes include avoiding heavyweight libraries for simple stats, choosing the right data structures and measuring changes; alternatives mentioned are Pyool, CodeCarbon, Intel RAPL and powertop.
AI-written summary · about
chapters (9)
- 0:00Sustainable coding intro
- 2:30Sustainable coding principles
- 5:21Why sustainable coding matters
- 7:06Small code choices impact
- 9:54Measuring energy waste
- 10:58CodeCarbon for tracking
- 12:44Sustainable coding tips
- 14:32AI and sustainable code
- 15:38Q&A
related talks
31mTrack your code's CO2 emissions with Code Carbon
38mBetter Coding for the Climate?!
26mSaving the world, one line at a time
55mCode that Won't Heat the Planet: Engineering Sustainable Software for a Better Future
28mReduce the environmental footprint of your Python programs
16mGreen Code: Transforming DevOps for a Sustainable Future
32mFighting Climate Change by Building Sustainable Software
34mCarbon Footprint–Aware Software Development
