11
submitted 1 month ago by [email protected] to c/[email protected]

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

all 8 comments
sorted by: hot top new old
[-] [email protected] 16 points 1 month ago

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

[-] [email protected] 12 points 1 month ago
[-] [email protected] 8 points 1 month ago

it's crazy how efficient javascript has gotten

[-] [email protected] 6 points 1 month 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.

[-] [email protected] 12 points 1 month ago* (last edited 1 month ago)
while(1);

Not if I'm writing it.

[-] [email protected] 3 points 1 month ago

No assembly?

[-] [email protected] 1 points 3 weeks ago

Damn I'm polluting with my python apps

this post was submitted on 11 Jun 2025
11 points (70.4% liked)

C Programming Language

1150 readers
1 users here now

Welcome to the C community!

C is quirky, flawed, and an enormous success.
... When I read commentary about suggestions for where C should go, I often think back and give thanks that it wasn't developed under the advice of a worldwide crowd.
... The only way to learn a new programming language is by writing programs in it.

© Dennis Ritchie

🌐 https://en.cppreference.com/w/c

founded 2 years ago
MODERATORS