60
submitted 1 week ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 6 points 1 week ago* (last edited 1 week ago)

Regarding AI, some simple examples of likely computing expense:

  • performing 1 + 1 in assembly language: 1 CPU cycle
  • performing 1 + 1 in a high level interpreted language: maybe 10 CPU cycles
  • performing 1 + 1 using an LLM: millions of CPU cycles
  • asking "why was the rabbit an animal after 1 + 1": probably priceless, maybe a billion cycles
[-] [email protected] 4 points 1 week ago

Nowadays with JIT #1 and #2 are very close. There was less than a x2 performance gap when I compared a direct simple task in C and javascript.

About #3 no one does that.

#3 and #4 will be on the same scale, every token generated is roughly the same amount of CPU.

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

To be honest we lost that war when JavaScript dominated everything.

[-] [email protected] 2 points 1 week ago

PHP would like a word.

this post was submitted on 26 May 2025
60 points (95.5% liked)

Solarpunk technology

2936 readers
12 users here now

Technology for a Solar-Punk future.

Airships and hydroponic farms...

founded 2 years ago
MODERATORS