Speed of languages | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Speed of languages

Which language is faster than others? I think it's assembly. But my question is here: how much faster? Does it really feel different? And which one is the fastest in trending and new languages?

9th May 2019, 6:00 PM
AZunderstars
AZunderstars - avatar
7 Answers
+ 10
Interpreted languages will never be as fast as compiled ones. Probably we can also say garbage collected languages are less fast than ones with manual memory management. So if you need max performance you will choose C, C++, or more recently, Rust. Assembly is too tedious to write by hand. That being said optimizers have gotten crazy good. Javascript, which should be a "slow" language, can get close to native performance, because Google has spent millions of dollars on making the V8 engine fast and optimizing the hell out of js code. But I agree with Dragonxiv. A bad C program will never outperform a well-written Lua/perl/php... program. Also almost all of the time speed is not a problem. All languages are "fast enough" for almost anything.
9th May 2019, 7:03 PM
Schindlabua
Schindlabua - avatar
+ 4
It is more important how good you are in a language. If you cant use a language than you will never make it fast.
9th May 2019, 6:17 PM
Dragonxiv
Dragonxiv - avatar
+ 4
Languages are not fast or slow. Algorithms are. If you talk about execution time it's a matter of your system, the compiler used and your cleverness in coding. You can't blame a language for that.
9th May 2019, 9:15 PM
Daniel Adam
Daniel Adam - avatar
+ 3
Schindlabua Daniel Adam Dragonxiv thank you. I will continue learning MY favorite language(python). Like I said earlier, this qustion's answer does not effect on my learning. I'm just curious about that. Thanks again🤗
10th May 2019, 8:01 AM
AZunderstars
AZunderstars - avatar
+ 2
Dragonxiv I know. But I'm really curious about that. It will not impact on my programming language.
9th May 2019, 6:46 PM
AZunderstars
AZunderstars - avatar
+ 1
Basic language like machine language assembly,
10th May 2019, 5:08 PM
Saman Mokhtabad
Saman Mokhtabad - avatar
- 1
😕
16th Jan 2020, 3:37 PM
Shakor Fateh