TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: As a developer, do you consider the carbon footprint of your apps?

42 点作者 lnalx将近 2 年前
Hi there,<p>I&#x27;m terrible at addressing the current environmental challenges.<p>This morning, I discovered the Website Carbon Calculator [0] and tested all the websites I&#x27;ve created. To my surprise, some of my websites turned out to be disastrous.<p>Until now, I hadn&#x27;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)<p>I don&#x27;t want to engage in the cliché of “greenwashing”, but rather aim to make a positive impact as a developer.<p>What are your thoughts? Were you already aware of this?<p>[0] https:&#x2F;&#x2F;www.websitecarbon.com&#x2F;<p>[1] https:&#x2F;&#x2F;www.wholegraindigital.com&#x2F;blog&#x2F;website-energy-efficiency&#x2F;<p>(I&#x27;m not affiliated with any of the website I quote)

27 条评论

gizmo将近 2 年前
Frankly, I think efforts like these are misguided.<p>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&#x2F;breakage&#x2F;crashes) that web apps are the only way to deliver software that just works.<p>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&#x2F;7. A slightly faster personal blog isn’t even a drop in the bucket.<p>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.<p>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.
评论 #36280351 未加载
评论 #36280170 未加载
评论 #36280002 未加载
000ooo000将近 2 年前
I can&#x27;t help but feel that the performance of software with regard to its impact on the climate is a long way down the list behind far more effective but also polarising ideas such as abstaining from the consumption of animal products, limiting the number of children one has, etc.<p>I ran the websitecarbon.com calculator against my org&#x27;s public website. For 10k&#x2F;y visits, about 42kg of CO2 is emitted. Dubious how that&#x27;s calculated, but let&#x27;s say it&#x27;s off by 10x and the emissions are closer to 420kg. Apparently, the average Australian emits 17t&#x2F;y of CO2. If I were going to attempt to reduce my carbon footprint, there&#x27;s probably something far more valuable I could be doing than worrying about 20kb of JS.
评论 #36281299 未加载
torginus将近 2 年前
First of all, that &#x27;carbon calculator&#x27; website is total bunk. How the hell do you tell how much work needs to be done in the back-end to display your page?<p>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?<p>I&#x27;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.
PaulKeeble将近 2 年前
Certainly for desktop software and user utilities I take consideration of power consumption and idle load especially. There is a strong overlap with performance but also there is being a well behaved application that doesn&#x27;t consume resources when the user isn&#x27;t directly doing anything.<p>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&#x27;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.
lrpe将近 2 年前
This seems like a good way to shift the blame for climate change to individual people who are powerless to do anything to stop it.
评论 #36281607 未加载
phito将近 2 年前
To be really honest, no, not at all.
solanpaa将近 2 年前
I’d be happy to include carbon footprint considerations in the projects I work on, but often clients are not willing to pay for it.
CommanderData将近 2 年前
I was wondering this wheb I realised Amazon&#x27;s FireStick does not actually sleep like you would expect an Android device would. My monitor &#x2F; display stays switched on, the stick is working in the background according to CPU monitor.<p>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.<p>I do wonder if the developers knew how big an impact they have when developing a device used by so many.
manuel_w将近 2 年前
Rockstar Games for sure didn&#x27;t. They were &quot;performing nearly 2 billion (largely pointless) item checks before each game.&quot; [0] Patching them out reduced load times by several minutes.<p>HN discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26296339">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26296339</a><p>[0] <a href="https:&#x2F;&#x2F;www.eurogamer.net&#x2F;rockstar-officially-implementing-fan-made-fix-that-massively-reduces-gta-online-load-times" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.eurogamer.net&#x2F;rockstar-officially-implementing-f...</a>
RedNifre将近 2 年前
Of course not, my software does not put CO2 or CO2 equivalents into the atmosphere.<p>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&#x27;t have to buy the certificates), or they will switch to a different software that consumes less of their expensive coal power.<p>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&#x27;t have to worry about where the power for your software comes from, since it&#x27;s all accounted for already and if your software really costs too much electricity, the market will regulate it.
评论 #36280122 未加载
评论 #36280186 未加载
shoo将近 2 年前
If the webapp is attached to an associated business, it&#x27;d be a more useful exercise to consider the carbon footprint of the whole business, especially in terms of scope 1,2,3 emissions.<p>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 &amp; energy projects back the bank&#x27;s financing. The carbon footprint of the bank&#x27;s website &#x2F; webapps will be completely insignificant compared to the scope 3 emissions associated with the real world impact of how the business actually makes money.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Carbon_accounting" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Carbon_accounting</a>
jalict将近 2 年前
I have been to a few talks and likely about the footprint of making and running modern video games (and companies).<p>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.<p>I am not actively persuading it at the moment. But I have been aware about and been sharing knowledge with people of those ideas.<p>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.
Jemm将近 2 年前
Indirectly, any good coder should be considering the impact of their work on the cost of computing each operation. We do this less so now that compute power is so high but it should still be on our minds.
Jumziey将近 2 年前
I think the issue is that any energi i spent on trying to make my apps have a less of a co2 footprint would be better spent engaging in climate questions instead, preferbly using ones profession.<p>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.<p>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
erokar将近 2 年前
It doesn&#x27;t cross my mind.
mschild将近 2 年前
Not entirely. Besides the ones I build for work, I have a few systems running in a local server that I wrote, but I already optimized my home electricity network to use as little as possible.<p>For work, I don&#x27;t have all that much choice. Obviously, I try to write as efficient code as reasonable, but I have no input on where it&#x27;s hosted.
monkin将近 2 年前
Looks like a new term for website optimisation? Which, more or less, anyone building anything online should do anyway. But forcing any environmental meaning behind in doesn&#x27;t feel right.<p>It&#x27;s like sorting waste that will end up in the general landfill.
perilunar将近 2 年前
Yes, but only indirectly. I just try to make sites that small and efficient. I just tested them all in websitecarbon.com: one was 98%, one was 100% (rounding up I presume), and the rest were 99%.
xupybd将近 2 年前
How does this compare to say switching to n electric car?<p>I think it&#x27;s important people focus their efforts on the low hanging fruit. What&#x27;s the biggest impact at the lowest cost.
is_true将近 2 年前
Nope, I just try to avoid doing the same computations over and over again.<p>Cache all the things.
peter-m80将近 2 年前
No.
Traubenfuchs将近 2 年前
I call this kind of clownery &quot;climate masochism&quot;. If you really want to do something for the environment, don‘t have children and become part of the voluntary human extinction movement.<p>Anything else is nothing but lipstick on the pig.
评论 #36280258 未加载
activiation将近 2 年前
I try to make them efficient... So indirectly yes.
konspence将近 2 年前
No.
lemper将近 2 年前
no. and I don&#x27;t care at all as long as the highest per capita of carbon producing countries keep pushing other parties to lower their carbon footprint while keeping their wasteful lifestyle.
Am4TIfIsER0ppos将近 2 年前
No because climate change is a lie and a conspiracy to make you poorer. Maybe you shouldn&#x27;t be writing horribly inefficient software regardless of your beliefs.
theo32将近 2 年前
Actually I do consider it. I make sure it has the biggest footprint possible. After all, all the top apps and websites do, don’t they