Waffelson@lemmy.world to linuxmemes@lemmy.world · 6 months agoI like C programs for their speedlemmy.worldimagemessage-square77fedilinkarrow-up1500arrow-down117
arrow-up1483arrow-down1imageI like C programs for their speedlemmy.worldWaffelson@lemmy.world to linuxmemes@lemmy.world · 6 months agomessage-square77fedilink
minus-squareGissaMittJobb@lemmy.mllinkfedilinkarrow-up23·6 months agoThere are a few reasons for this, some of the most important being: The languages were not designed with speed primarily in mind and as such made some design decisions that fundamentally cannot be optimized around Authors of programs in these languages prioritize things other than performance when writing the programs. Speed is not just about processors becoming faster - this is a large part of why DSA is important to learn as a programmer.
minus-squarePossibly linux@lemmy.ziplinkfedilinkEnglisharrow-up2arrow-down1·edit-26 months agoThey do have optimizations however they are interpreted at runtime so they can only be so fast Frankly you won’t notice much unless the program is doing something computation heavy which shouldn’t be done in languages such as JavaScript and Python
There are a few reasons for this, some of the most important being:
Speed is not just about processors becoming faster - this is a large part of why DSA is important to learn as a programmer.
They do have optimizations however they are interpreted at runtime so they can only be so fast
Frankly you won’t notice much unless the program is doing something computation heavy which shouldn’t be done in languages such as JavaScript and Python