Behind the Commit · Episode 3 · 14 November 2025 · 18 min

How To Make Web More Sustainable? – Chat with Thibaud Colas

Mia Bajić talks with Thibaud Colas about digital sustainability and the carbon footprint of the web.

Thibaud Colas is Product Lead and Engineering Manager at Torchbox, Wagtail product lead, and, at the time of recording, President of the Django Software Foundation. They discuss why the internet's energy use matters, how to measure a website's carbon footprint, how performance relates to emissions, whether the choice of programming language makes a difference, Django's and Wagtail's plans to reduce their footprint, and what AI companies and cloud providers should be more transparent about.

About the guest

Thibaud Colas

Product Lead and Engineering Manager at Torchbox, Wagtail product lead, and President of the Django Software Foundation.

Chapters

Links & Resources

Full Transcript
[00:00]

Just having the browser on people's devices, and you know, the browser is very well optimized. It's written in Rust maybe. I don't know. If you actually think at the scale of our industry of Python,

[00:11]

all of the servers that you need to have to power this software-- Django in Rust? You know, we actually had this as one of our April's fools blog post ideas. And currently it's written in Python.

[00:22]

And we think it would make a lot of sense for that specifically to be written in another language, like Rust. We know everyone loves to convert things to Rust these days. So far, we talked about web. There's the whole AI space.

[00:37]

Lots to say about the carbon footprints of AI. And when I say those three things, again, like the big elephant in the room is AI, I think we should expect way more transparency, not from open source developers, but from those businesses

[00:48]

that build those models. Did you know that every website has a carbon footprint? What if even the smallest code changes in tools we all use could have a big impact? In this episode, I talk with Thibaud Colas.

[01:00]

His product lead in engineering manager at Torchbox, product lead for Wagtail, and president of the Django Software Foundation. We talked about digital sustainability and what we can do to make the web greener.

[01:14]

Python developers are aware and care a lot about performance, but what about carbon footprint? Yeah, good question. Well, when you think of the impact of your software, think first of all as a Python dev, you think of the users,

[01:30]

maybe devs, maybe people that aren't technical, that the software supports. But you don't necessarily think about the impacts on the planet. And I think that's because technology, software, you know, we don't really see where it runs.

[01:43]

It's very intangible. But if you actually think at the scale of our industry of Python, all of the servers that you need to have to power this software and how much energy is needed both to create those devices and keep them on the internet,

[02:00]

it's a lot of energy. And even though it might not be flying twice a day, levels of energy, it definitely adds up. So, yeah, when it comes to running Python code, you think of how it is, you think of the CPU,

[02:14]

and that CPU needs the server and needs the electricity to power it. Right. And is this question that matters to a lot of developers? They often get those questions or any discussions. So, you think this is an niche topic that people don't really talk about.

[02:30]

I ask, because this starts with performance, and every other Python dev asks, oh, should we be rewriting this in Rust? Because every dev also cares about performance. But very few people actually think about the carbon impacts.

[02:45]

And I don't think it's necessarily because they don't care. It's just not aware. When they think of carbon, they think of flying, maybe the car, maybe if they have a company that thinks about those things, maybe they think of commuting, the office space,

[02:58]

they don't necessarily think of the sites and apps that they build with the software. So, to me, the type of thing where, once people start to think about this, they realize that if they are software that are quite a large scale, maybe the software itself is a bigger deal than all those other aspects.

[03:16]

One example I can give you, Mozilla, the Mozilla Foundation, they manage the Firefox browser, and they were one of the first ones to report not just the carbon footprint of the Mozilla Foundation, but also of Firefox, the browser, as it's used on people's devices.

[03:34]

And I don't know if you can guess how much the Firefox usage is of Mozilla emissions. It's 98% of their organization footprints is just people running Firefox. So, when you start to think through that... The browser and do nothing there.

[03:50]

Just having the browser on people's devices. And the browser is very well optimized. It's written in Rust, maybe? I don't know, but even with all of that in place, it has a big energy footprints.

[04:03]

And it matters if you care about the climate, but also if you have it on your phone and you want a longer battery life, simple like that. And what is the impact on the web software and websites in general on carbon footprint?

[04:15]

Because when talking about carbon footprint, we often talk about industries, flying corporations, but I wonder how much impact does software have on it? Yeah, for websites specifically,

[04:31]

there is this quite well established methodology called Sustainable Web Design SWD. And it divides website emissions in three categories. It considers the servers, how much energy they use, the user's devices that display the website's pages

[04:49]

and the network in between. And you realize that when you start to crunch through the numbers, that's all those things matter. And sexually, the user's devices that have the highest emissions.

[05:00]

Because if you think about it when a server creates a page, it can cache it and display the same page for a thousand people. But when someone opens the page, they're going to do that once, maybe twice and so on. So that adds up pretty fast.

[05:14]

For Django, for example, I'm involved with the Django Foundation as the president this year. And I estimate there's only 500 to 500,000 to a million Django projects out there. And those projects, the average footprint is only

[05:29]

other of a ton of CO2 per year. So you can clearly see how fast the numbers add up, even though people don't necessarily think of Django as an energy intensive. So many websites that run on Django, it would be improved Django itself. Then the overall impact would be very big.

[05:50]

And what is the current state of carbon footprint in the Django ecosystem? The current state is, I think, first and foremost, we have to have more developers invested into this and thinking about it and more companies as well.

[06:08]

There are quite a few very big Django users out there that have quite clear climate commitments. I think of people like the NHS in the UK, the biggest UK employer. They have a very large sites with billions of billions, sorry, of page use per year. And they have climate commitments.

[06:26]

So it's really crucial for those people that the tech they select missed those commitments. And when it comes to open source contributors, I think it's worth saying that they definitely have a clear stake and opportunities to reduce that footprint.

[06:41]

So when you think of individual actions, there's activism, but they could also be contributing to a product like Django and reducing its footprints by improving its performance. And what are some gaps in Django or some areas for improvements? Oh, there's so many.

[06:56]

I mean, you know, I think it's still quite early days for this industry. I think the biggest gap to start for starters is just having those methodologies to measure emissions. So far, we talked about web. There's the whole AI space.

[07:13]

Lots to say about the carbon footprint of AI. But one thing that's really clear is that it's very easy to measure. And I think people should start to ask for those measurements a bit more. So how is it measured? If you have a website somewhere and I deploy it to cloud or anywhere,

[07:28]

how do I measure carbon footprint of my website? The simplest way to get started if you want like a kind of approximation, is to measure the weight of the pages. And the sad truth is the number, the weight of the pages across the web is going up and up and up every year.

[07:45]

And that's really just, you know, heavy, more heavy weight pages are slower to load on your own devices. So there's that to get started. Then if you want more precise measurements, you're going to look at measuring the CPU usage of the site,

[07:59]

measuring the memory use, how many servers are needed, and you need to start to investigate also not just like how much resources, but also where in the world those resources are used. So you know, if you have a data center that's powered by uniable energy, it's going to emit much less carbon than one powered by gas, paraphones.

[08:18]

So going back to Django, what are some future plans about it? Because you said there are lots of things that can be improved. Do you have any road make or any plan to improve it? Or... My wish, my dream, would be to get the whole Python community

[08:35]

to align on this and make it happen. For Django itself, I'm actually part of another project called the Wagtail CMS, where we did produce a roadmap. So Wagtail is just one of many Django packages. Wagtail powers on the order of 20,000 sites, including the NHS one.

[08:53]

And for Wagtail, we spend some time creating a roadmap of 10 items, which we think are the most important to make progress on this. And those 10 items, roughly speaking, I believe there is six that are improvements to Wagtail itself. There is the rest that are about awareness in the community.

[09:09]

So something I'd like to see for Django in particular, we have ways to make Django much smaller and still very useful. You know, these days, people really like frameworks like FastAPI that are much smaller in footprints, from the series energy use, but just amount of code.

[09:25]

And I think Django could address that need better and lower is footprint at the same time. And what about languages? Different languages have different footprint, right? For sure.

[09:36]

And Python is one of the worst ones, isn't it? Does it mean that we should consider using more other languages? It's a good question. I definitely think that, you know, if you do data processing, it makes sense to convert some of that code into C or Rust.

[09:56]

We know everyone loves to convert things to Rust these days. And, but the thing is, we already know that, because we already care about improving performance, yeah, about reducing costs. But I think when it comes to reducing the footprints,

[10:09]

there's lots of room to do things in Python still. So if you want an example, one I really like, is image processing and reducing the size of images. Of course, you're going to use a C library to do that. That's very well optimized.

[10:24]

But the integration from that to Python, we have to have it written in Python. And having those integrations with those newer formats for images is a type of thing that makes a difference. So you're not planning to rewrite Django in Rust?

[10:41]

You know, we actually had this as one of our April's fools, blog post ideas. And we thought it was just like slightly too, you know, it might feel quite real for people. So I guess for Django in Rust, we actually have concrete plans.

[10:54]

I can't say like plans as in we have any commitments. But definitely interests. I don't know if you know when it comes to serving Django, you combine it with a web server. There's one called Granian, as written in Rust,

[11:06]

and has a fair bit more optimized footprints than others. And another thing is the Django template language, currently is written in Python. And we think it would make a lot of sense for that specifically to be written in another language like Rust.

[11:22]

So Lilly Foote, one of Django's steering council members, she's working on that. At the moment, I believe it's more of a side project. But definitely one that we could see moving to Django core in the future. So what are some other tips how to reduce it except of Rust?

[11:39]

I mean, you know, I don't know if in your personal life, some people spend lots of time about this, you know, there's the reduce, reuse, recycle, mantra. So definitely this is the right mindset in my opinion. And I think I would add one before in our case,

[11:56]

which is measure just to have a sense of where any change might move the needle. And when we say reduce, I think it's really important to be clear that we're not necessarily asking people to completely scale down and stop doing technology, just thinking of where the tech is most useful, focus on that, and the bloats that just makes your device run slower,

[12:16]

that makes your battery drain faster, like remove those bits. And how can we raise awareness? Because if you go to conferences, if you read blogs, this is not really a topic for mainstream tech media. I think it's starting to get mainstream in the context of AI actually,

[12:34]

because people really see the buildup in data centers, and how the big cloud players, you know, they had those quite clear net zero commitments that are starting to get watered down a bit. And I think that's actually a space where awareness is raising. But I guess to your point in the Python world,

[12:50]

I think what actually works is aligning this with performance concerns. So I mentioned images, things like the A with image formats, it has SEO benefits. It makes your users really happy if the sites load faster. So lots of good reasons to do this.

[13:06]

And the carbon, lower carbon is just one of them. I think the other thing is things like Python performance improvements. So in Python 3.11, I believe, we had quite good performance bumps across pretty much any Python projects. When we talk about those things, also talking about the reduced energy

[13:24]

use, which again is good for costs in the servers, but also the climates. And I don't know if you follow with the latest 3.14 Python developments, there's a free threading walk in the way. That as well could have a big impact. So I think combining that walk with benchmarks on energy use, go a long way.

[13:45]

And if I would like to learn more just to get started, or if I were a maintainer having my own project, where can I read about it more? My favorite resource by far is knowing the Python world. You come for the tech and you stay for the community, I think.

[14:04]

And there's a community for software practitioners who care about climates. It's called climate action tech. It's an online community that's very easy to join, completely free. And you're just in this server with like-minded people to chat about those different topics.

[14:22]

And you're there with the experts, and other people who are interested, and who share the right resources. So climate action tech would be my go-to. And I think the other one I would recommend is lots of people these days. They care about AI.

[14:34]

There's excellent reporting on the carbon footprint of AI from Stanford, but I think people will find it really interesting. And if I would like to contribute somehow, is there anything that I can do? I would love for us all to coordinate more. And in my mind, the best way would be for you to find those folks on the climate action tech,

[14:57]

get in touch with them and discuss for your specific projects what moves the needle. So right now, if I think of contributing, there is this, I don't know if you know the W3C who do accessibility standards. They're also working on a sustainability standard. And I think they could really use feedback from web devs.

[15:15]

And being able to be part of those standards is also a big opportunity for people. It's quite a new field. I think it's a lot of room to grow your query in that. So yeah, climate action tech, reviewing those standards, giving the feedback and just connecting with people. And you mentioned that there are some standards, but is there anyway,

[15:32]

how can we make open source developers or in general, developers accountable for the footprint of the tools they create? Accountability, that's a tough topic, Mia. I don't know if we can definitely make people accountable because you know, when you put software

[15:50]

out there as open source, you don't necessarily think a lot about any commitments to your users afterwards. I think it's definitely worth thinking of what you can do, but I would say it as in more think through how people will use the software and try and set them on the happy path. So to me, if you want to start to move totally towards accountability,

[16:13]

what's the most helpful actually is just transparency and sharing the results and sharing the numbers. So for Wagtail, for example, we try hard to publish our footprints, not just of our project organization, but also the Wagtail sites up there, but we start on a yearly basis. I would expect the same from Django because we have quite a serious foundation.

[16:33]

And eventually I'd love to see the same from Python as well. And when I say those three things, again, like the big elephant in the room is AI, I think we should expect way more transparency, not from open source developers, but from those businesses that build those models that change our society. And is there anything that we can do in regards to businesses, big tech, corporations,

[16:55]

cloud providers? Yeah, I think it's just, you know, understanding the benefits of those providers and the tools they provide and of their AI models, but also understanding the impact on the planet, the society, and I guess asking for more, raising your standards.

[17:12]

When it comes to AI, for example, I try and push people towards local models because it really forces them to be more aware of the, I guess, how big of a server you have to have to run them and also how much energy it takes to run them. And once you have that kind of feedback loop of actually wanting to reduce those numbers, you naturally do it.

[17:33]

Thank you for coming. Thanks for having me.

Behind the Commit is a podcast hosted by Mia Bajić. All episodes.