C is one of the top languages in terms of speed, memory and energy
https://www.threads.com/@engineerscodex/post/C9_R-uhvGbv?hl=en
Damn I’m polluting with my python apps
Where’s zig?
For those who don’t want to open threads, it’s a link to a paper on energy efficiency of programming languages.
Results
it’s crazy how efficient javascript has gotten
I’m assuming C is for compiled, V for virtual machine, I for interpreted.
Dart for sure is compiled, i think requiring a VM to run. It’s a bit weird, but definitely not interpreted, unless you transpile to JavaScript.
Also, couldn’t read the whole paper, but the numbers for Python are rather staggering. I remember reading on performance and there were massive differences between CPython, PyPy and a third one I can’t recall. And that’s surely to impact energy consumption.
while(1);
Not if I’m writing it.
No assembly?