I saw this website that shows the carbon footprint of a website on the planet.
It would be nice - if it were possible to do - to show the carbon footprint calculation (or an estimate) of the use of the program, at the end of compiling a Nim program.
Message Example:
...
Hint: 9814 lines; 0.838s; 144.633MiB peakmem; Debug build; proj: test.nim; out: test [SuccessX]
Hint: test [Exec]
Nim Carbon Footprint: Only 0.09g of CO2 is produced every time someone use this program.
The following aricle compares the different programming languages in terms of energy efficiency (table 4).
Where could we find Nim programming language in table 4, if it were part of the study?
+1 on measuring energy (Joules, Wh...) rather than CO2
Also, the bulk of energy usage of an application is in its runtime rather than compilation - by far.
Nim might be one of the most energy-efficient languages around, as it is very much correlated with CPU efficiency.
As the ratio of battery-powered devices keeps increasing (tablets, domotics, "iot"... ), energy efficiency could be a nice selling point for Nim. It would be nice to see benchmarks on the website!
https://github.com/kostya/benchmarks
includes energy use as a metric, which correlates 99.8% with running time (pearson coefficient) so I'm gonna go out on a limb and say go ahead and take runtime as a proxy for energy use.