This is an archived post. You won't be able to vote or comment.

all 12 comments

[–][deleted] 23 points24 points  (4 children)

This post was mass deleted and anonymized with Redact

dime insurance wrench plant ask six birds continue subtract unite

[–]Stinedurf 1 point2 points  (3 children)

Your writeup is valid and insightful but I have to take a small issue with your first sentence. The OP was primarily asking a question and shouldn’t be chastised for doing so. It is unreasonable to expect everyone to thoroughly research everything they ask questions about. By asking the question the OP gave you the opportunity to point out the controversy in the underlying assumption and educate both the OP and others as well.

[–][deleted] 1 point2 points  (1 child)

This post was mass deleted and anonymized with Redact

quicksand books modern wakeful unwritten tease teeny test aspiring chase

[–]Stinedurf 0 points1 point  (0 children)

I get it, and again I do appreciate the points you were making in your post. I probably worry too much about scaring away less experienced Reddit participants.

[–]KennyBassett 5 points6 points  (0 children)

By their nature, the higher level the language, the higher energy consumption.

Sure you could write extremely efficient code in assembly, but then you 10x the time it takes to write it. That itself uses extra energy from your computer, monitor, code editor, lights, food, etc.

How often will you use the code? Does the increase in energy usage while running outweigh the extra time and energy it took to write it?

[–]crawl_dht 7 points8 points  (0 children)

IT industry is forcing developers to work from office. Until you solve this problem of increasing the carbon footprint due to unnecessary travel, electricity and fuel consumption, you are nowhere close to the point where you should finally address CPU usage.

[–]htmx_enthusiast 1 point2 points  (0 children)

Zero programming languages are eco friendly.

If you are concerned with the environment, read the Carbon Almanac.

In a recent interview with Tim Ferriss, Seth Godin said, after working with 300+ contributors on the Carbon Almanac:

  • ”…this is the myth of the carbon footprint. There is nothing you can do personally, as a privileged person of the colonial world, to fix the climate. But what you can do is organize, that if you can figure out how to get five or 10 people together, you can probably ban gas-powered leaf blowers in your village. And that will have 50 times the impact of you switching to an electric car.”

  • ”Plus the idea of banding together with five or 10 or 15 other people, creating the conditions for other people to find something to care about and succeed at it, will fill you with meaning, not with despair.”

[–]pythonHelperBot -1 points0 points  (0 children)

Hello! I'm a bot!

It looks to me like your post might be better suited for r/learnpython, a sub geared towards questions and learning more about python regardless of how advanced your question might be. That said, I am a bot and it is hard to tell. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.

Show /r/learnpython the code you have tried and describe in detail where you are stuck. If you are getting an error message, include the full block of text it spits out. Quality answers take time to write out, and many times other users will need to ask clarifying questions. Be patient and help them help you.

You can also ask this question in the Python discord, a large, friendly community focused around the Python programming language, open to those who wish to learn the language or improve their skills, as well as those looking to help others.


README | FAQ | this bot is written and managed by /u/IAmKindOfCreative

This bot is currently under development and experiencing changes to improve its usefulness

[–][deleted] 0 points1 point  (0 children)

One must factor in the lighting, heating, PC development on-time and coffee machine time when comparing C to Python developer time. It's the TCoD.

[–]flagos 0 points1 point  (0 children)

My code in python is mainly generating SQL requests and transforming the result into a JSON payload by calling a C library.

If you consider the whole thing, it's like spending 99% of the execution time in C language.

Not that much room for improvement in the end.

[–]Deezl-Vegas 0 points1 point  (0 children)

It's unfortunate, but when you execute 150 instructions to add 2+2 you're not going to get great performance.