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

Programming

21351 readers
369 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

cross-posted from: https://lemmy.world/post/31184706

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

you are viewing a single comment's thread
view the rest of the comments
[–] Colloidal@programming.dev 5 points 3 weeks ago (8 children)

The code is ultimately ran in a JS interpreter. AFAIK TS transpiles into JS, there's no TS specific interpreter. But such a huge difference is unexpected to me.

[–] TCB13@lemmy.world 1 points 3 weeks ago (7 children)

Its really not, have you noticed how an enum is transpiled? you end up with a function... a lot of other things follow the same pattern.

[–] Colloidal@programming.dev 2 points 3 weeks ago (3 children)

Nope, have not noticed because I hate JavaScript with a passion. Thanks for educating me.

[–] Feyd@programming.dev 2 points 3 weeks ago

Just FYI the example that person gave would absolutely not explain a huge performance difference. I don't think they understand what they're looking at.

load more comments (2 replies)
load more comments (5 replies)
load more comments (5 replies)