Talk:Python (programming language)/Archive 11: Difference between revisions

Content deleted Content added
m Archiving 2 discussion(s) from Talk:Python (programming language)) (bot
m Archiving 2 discussion(s) from Talk:Python (programming language)) (bot
Line 106:
 
An explanation of how features unique to each platform can be accessed would be useful. [[User:FreeFlow99|FreeFlow99]] ([[User talk:FreeFlow99|talk]]) 16:59, 6 March 2024 (UTC)
 
== Climate change ==
 
This page should mention that programming languages like Python that are not compiled into native executable code (e.g., they are interpreted or compiled into byte code that is run in a virtual machine) require more processor cycles for the same results compared to native executables. Therefore they use more power to execute, and they contribute more to climate change. Given the ubiquity of Python, a vast amount of power is wasted on interpretation or byte-code execution. [[Special:Contributions/209.145.84.194|209.145.84.194]] ([[User talk:209.145.84.194|talk]]) 20:08, 28 March 2024 (UTC)
 
:Do you have a source which describes this? The correlation between interpreted languages and climate change is not something I have seen described before. —<span style="font-family:Poppins, Helvetica, Sans-serif;">[[User:Panamitsu|Panamitsu]]</span> [[User_talk:Panamitsu|(talk)]] 23:59, 28 March 2024 (UTC)
::I've seen this mentioned before (don't have any immediate links) and it probably has some validity. But, I agree with Panamitsu that to actually include this we need good sources (I think more than one unless it's a really solid one) that discuss this and do a pretty complete analysis. Since this isn't unique to Python and there are other tradeoffs beyond just how the final applications are run. [[User:Skynxnex|Skynxnex]] ([[User talk:Skynxnex|talk]]) 13:21, 29 March 2024 (UTC)
 
::I can find a few reliable sources which suggest that Python does indeed use much more energy for the same tasks when compared with compiled languages like C.<ref>{{cite journal |last1=Abdulsalam |first1=Sarah |last2=Lakomski |first2=Donna |last3=Gu |first3=Qijun |last4=Jin |first4=Tongdan |last5=Zong |first5=Ziliang |title=Program energy efficiency: The impact of language, compiler and implementation choices |journal=International Green Computing Conference |date=November 2014 |pages=1–6 |doi=10.1109/IGCC.2014.7039169}}</ref><ref>{{cite journal |last1=Pereira |first1=Rui |last2=Couto |first2=Marco |last3=Ribeiro |first3=Francisco |last4=Rua |first4=Rui |last5=Cunha |first5=Jácome |last6=Fernandes |first6=João Paulo |last7=Saraiva |first7=João |title=Ranking programming languages by energy efficiency |journal=Science of Computer Programming |date=May 2021 |volume=205 |pages=102609 |doi=10.1016/j.scico.2021.102609}}</ref><ref>{{cite journal |last1=Koedijk |first1=Lukas |last2=Oprescu |first2=Ana |title=Finding Significant Differences in the Energy Consumption when Comparing Programming Languages and Programs |date=June 2022 |pages=1–12 |doi=10.1109/ICT4S55073.2022.00012 |journal=2022 International Conference on ICT for Sustainability (ICT4S)}}</ref> However, I find no studies examining a link with climate change. This could be because demonstrating such causality would, I imagine, be very difficult. I do wonder what the impact of language choice is, though, relative to e.g. the total power draw of all electronics in a country—it might be an interesting exercise to estimate how many GW (or perhaps only MW?) could be saved in your country by rewriting all Python programs in C. — [[User:Jumbo T|Jumbo T]] ([[User talk:Jumbo T|talk]]) 13:27, 29 March 2024 (UTC)
::Even if true that interpreted or VM run Bytecode compiled languages require more processor cycles, then the proper place for that discussion would be on the pages for those execution environments rather than on specific languages pages. I would also like to see the citations for that. But creating a link to climate change is an additional leap that again would require evidence. It's quite possible that despite requiring more processor cycles to run similar code there are other features that make it more efficient in practice, or even that python is a more amenable language for the creation of control systems for products that combat or mitigate against climate change - to be clear, that is a hypothesis without evidence but it does caution against a simplistic narrative: Python -> Byte code -> more cycles -> worse for environment. [[User:Crispyhull|Chris]] ([[User talk:Crispyhull|talk]]) 09:06, 2 April 2024 (UTC)
 
 
 
{{reftalk}}
 
== Naming ==
 
Python is named so, because the (long) code of the language looks like a snake/python. [[Special:Contributions/49.37.96.186|49.37.96.186]] ([[User talk:49.37.96.186|talk]]) 15:06, 28 June 2024 (UTC)
 
:{{Not done}} You have not provided [[WP:V|verification]] from a [[WP:RS|reliable source]] for this claim. This appears to be [[WP:OR|original research]]. [[User:Peaceray|Peaceray]] ([[User talk:Peaceray|talk]]) 18:36, 28 June 2024 (UTC)