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

Programming

24798 readers
312 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
[–] pHr34kY@lemmy.world 3 points 7 months ago (10 children)

I thought the idea of TS is that it strongly types everything so that the JS interpreter doesn't waste all of its time trying to figure out the best way to store a variable in RAM.

[–] Colloidal@programming.dev 4 points 7 months 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 7 months 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 7 months ago (2 children)

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

[–] Feyd@programming.dev 2 points 7 months 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.

[–] TCB13@lemmy.world 1 points 7 months ago (1 children)
[–] Colloidal@programming.dev 2 points 7 months ago

Thanks! I hate JavaScript even more now 😄

load more comments (4 replies)
load more comments (4 replies)
load more comments (5 replies)