by lnalx on 6/11/23, 8:56 AM with 50 comments
I'm terrible at addressing the current environmental challenges.
This morning, I discovered the Website Carbon Calculator [0] and tested all the websites I've created. To my surprise, some of my websites turned out to be disastrous.
Until now, I hadn't been concerned about the carbon footprint of my apps, but having access to this information encourages us, as developers, to take responsibility for the performance of what we build. This article [1] details how to reduce this footprint when building websites, serving as a great starting point for considering how we can minimize our impact (e.g. using less JavaScript)
I don't want to engage in the cliché of “greenwashing”, but rather aim to make a positive impact as a developer.
What are your thoughts? Were you already aware of this?
[0] https://www.websitecarbon.com/
[1] https://www.wholegraindigital.com/blog/website-energy-efficiency/
(I'm not affiliated with any of the website I quote)
by gizmo on 6/11/23, 9:57 AM
We are collectively rewriting desktop apps to run in the browser, where not only it runs 50x slower than on the desktop, but all data has to be downloaded time and again from servers. The amount of waste here is staggering. And yet, desktop apps have so many issues (installation/breakage/crashes) that web apps are the only way to deliver software that just works.
Web developers can, and should, build light and fast websites. But the average person runs spotify, youtube, netflix and other streaming services pretty much 24/7. A slightly faster personal blog isn’t even a drop in the bucket.
And waste from computing, bad as it may be, pales into comparison to the waste of a “quick trip to the store” with a 4 ton truck.
As software engineers the best thing we can do is to write good software that lasts and that solves real problems. Climate guilt really doesn’t come into play here.
by 000ooo000 on 6/11/23, 11:11 AM
I ran the websitecarbon.com calculator against my org's public website. For 10k/y visits, about 42kg of CO2 is emitted. Dubious how that's calculated, but let's say it's off by 10x and the emissions are closer to 420kg. Apparently, the average Australian emits 17t/y of CO2. If I were going to attempt to reduce my carbon footprint, there's probably something far more valuable I could be doing than worrying about 20kb of JS.
by torginus on 6/11/23, 10:16 AM
How does it tell apart if a site lazy-loads, meaning it might do less work on first load, but does way more total traffic to render all the information the user requests?
I'd wager the majority of energy is spent in the backend, where the majority of the energy will be spent between microservices ping-ponging each other.
by PaulKeeble on 6/11/23, 9:52 AM
Its a common reason why I get rid of open source self hosted apps. If they hammer the disk all the time or seem to constantly impact the CPU when they shouldn't be then it gets replaced. I want my NAS asleep unless it has to be doing something. Its a consideration I raise bugs around and its something all software I have ever written takes account of.
by lrpe on 6/11/23, 11:33 AM
by phito on 6/11/23, 9:16 AM
by solanpaa on 6/11/23, 9:21 AM
by CommanderData on 6/11/23, 3:37 PM
Considering at least 150+ million devices have been sold (not sure if that includes Fire TVs) and most of these devices stay switched on even when the TV is switched off. Just a single watt of saving may equate to a coal power station. The power bricks are rated for 5v x 1a.
I do wonder if the developers knew how big an impact they have when developing a device used by so many.
by manuel_w on 6/11/23, 9:29 AM
HN discussion: https://news.ycombinator.com/item?id=26296339
[0] https://www.eurogamer.net/rockstar-officially-implementing-f...
by RedNifre on 6/11/23, 9:31 AM
What matters is keeping the atmosphere balanced or even remove greenhouse gases from it. The way to do it is to have serious carbon certificates, as in coal power plants need to buy carbon certificates before they emit CO2 and the certificates get destroyed after, Brazil gets certificates for having a rain forest, which they can auction off internationally to motivate them to not destroy the rain forest and also to make planes fly etc. If my software costs too much electricity, it will either mean that people switch to cheaper electricity (renewables, since they don't have to buy the certificates), or they will switch to a different software that consumes less of their expensive coal power.
If all green house gas emissions have to be set off by certificates first (or by 1.1x the certificates, to lower the green house gas levels), you won't have to worry about where the power for your software comes from, since it's all accounted for already and if your software really costs too much electricity, the market will regulate it.
by shoo on 6/11/23, 11:42 PM
E.g. suppose you have a business like a large bank that lends a lot of money to finance residential and commercial property development, as well as expansionary fossil fuel projects. This business may have extremely large scope 3 emissions after attributing some of the greenhouse cases generated by these real estate & energy projects back the bank's financing. The carbon footprint of the bank's website / webapps will be completely insignificant compared to the scope 3 emissions associated with the real world impact of how the business actually makes money.
by jalict on 6/11/23, 9:20 AM
It is on my mind, and I have become more aware about how game design and implementations can facilitate over consumption. Small example is to have vsync enabled by default for all users, just so you don’t have users GPUs spinning at max speed.
I am not actively persuading it at the moment. But I have been aware about and been sharing knowledge with people of those ideas.
One nice side effect of reducing carbon footprint of these things is that it usually becomes cheaper to run as well :) similar to how accessibility seems to benefit a lot more people than what you target.
by Jemm on 6/11/23, 11:06 AM
by Jumziey on 6/11/23, 9:48 AM
Ie doing stuff like writing applications that scrapes metrics and show how green the energi grids are realtime, doing real time stuff around planes current climate effect given the amount of planes up in the air etc.
If thats not an option just vote with climate in mind and engage in public discussion around these issues would probably have a lot more potential
by erokar on 6/11/23, 9:17 AM
by mschild on 6/11/23, 9:20 AM
For work, I don't have all that much choice. Obviously, I try to write as efficient code as reasonable, but I have no input on where it's hosted.
by monkin on 6/11/23, 9:24 AM
It's like sorting waste that will end up in the general landfill.
by perilunar on 6/13/23, 4:02 AM
by xupybd on 6/11/23, 10:22 AM
I think it's important people focus their efforts on the low hanging fruit. What's the biggest impact at the lowest cost.
by is_true on 6/11/23, 12:11 PM
Cache all the things.
by peter-m80 on 6/11/23, 9:27 AM
by Traubenfuchs on 6/11/23, 10:22 AM
Anything else is nothing but lipstick on the pig.
by activiation on 6/11/23, 3:17 PM
by konspence on 6/11/23, 9:24 AM
by lemper on 6/11/23, 1:49 PM
by Am4TIfIsER0ppos on 6/11/23, 12:09 PM
by theo32 on 6/11/23, 9:10 PM