Hahaha, at least I can say the purpose of my posts is to find other people working on this in the Python world, and potentially interested in collaborating on some of those topics. That’s about it. Once enough of us stop arguing about whether there are improvements to be made, we can get on with it.
And yeah there’s certainly lots that can be done outside of digital tech and programming languages. But we have lots of devs who are going to be coding in Python, so we might as well help them make that coding low-impact. And who knows, along the way they might become knowledgeable and care more about emissions / environmental footprint outside tech too!
There’s honestly so little happening in this area of tech at the moment that I think there’s a tremendous opportunity for individuals to move the needle, and be the advocates for the larger institutional changes. Just a few practical examples from the list I shared initially:
- Doing a conference carbon footprint assessment for a PyCon is a one-person job, that as far as I know has never been done before. That kind of work has the potential to get hundreds of people reconsidering their travel habits.
- Continuous Integration optimizations, definitely, particularly for Python projects looking at the Python versions matrix as others have mentioned.
- I’ve not seen many Python projects report their carbon footprint. What’s it like for PyPI? What’s it like for NumPy code? I’m sure there are opportunities there to make big relative improvements – but we don’t even have good numbers to understand if we’re talking coffee cups or transatlantic flights.
Even excluding actual changes, it’s certainly possible for a few individuals to learn about methodologies to estimate the energy use and embodied emissions of any infrastructure, put the numbers together, and start proposing improvements.
One very concrete example (no public source to corroborate, sorry): A few months ago two colleagues of mine re-configured 30 of our internal Django apps to switch off outside of office hours. That’s removing 5-10 tons of CO2 emissions per year, not to mention lower hosting costs. That’s about 2-5% of our company’s carbon footprint right there.
In a similar fashion – in Europe, the UK NHS is one of the biggest employers (100k+ people?) and nhs.uk is one of the highest-traffic websites, reported around 1.2B page views / year. That site’s carbon footprint is probably on the order of 1000-2000 tons of CO2 per year. I’d hope they use a lot of caching, but I’m sure a speed bump to CPython, or to Jinja / the Django Templates language, or perhaps better support for newer image formats in Python – any of those things would bring sizeable improvements.
Anyway – at the scale of Django or Python more broadly, there’s millions of servers out there running this tech, so definitely any opportunities to reduce that footprint that is worth considering. Whether that’s by doing the same work on smaller servers, or making sure the servers use renewable energy, or doing less for equal results.
citation needed, I guess? The figures I have put digital infrastructure at around 400-800 TWh of global energy use per year. That’s around 2-4% of global electricity use, growing fast, cf. Thinking about using AI? report by the Green Web Foundation. Seems like an actual problem to me? For example if that increase in energy use means more work for coal-fired power plants.