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

top 7 comments

sorted by: hot top controversial new old
[โ€“] 17 points 1 year ago (3 children)

For those who don't want to open threads, it's a link to a paper on energy efficiency of programming languages.

  • source
  • hideshow 3 child comments
  • [โ€“] 13 points 1 year ago (2 children)
  • [โ€“] 6 points 1 year ago

    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.

  • source
  • parent
  • [โ€“] 13 points 1 year ago*
    while(1);
    

    Not if I'm writing it.

  • source
  • [โ€“] 3 points 1 year ago

    No assembly?

  • source
  • [โ€“] 1 point 1 year ago

    Damn I'm polluting with my python apps

  • source