eli5: How is C still the fastest mainstream language?

728 views

I’ve heard that lots of languages come close, but how has a faster language not been created for over 50 years?

Excluding assembly.

In: 2072

19 Answers

Anonymous 0 Comments

There are a few ways to look at coding. One is from an electrical engineer centered view and the other is from a mathematical centered view. C comes from designing software with the hardware in mind. So it doesn’t stray far from the underlying details. That keeps if fast. As long as your language doesn’t take you too far from the hardware, its going to be fast. But creating a new language syntax without solving any problems gets you nowhere.

But there are many modern programmers who want to solve problems without really caring how the underlying hardware works. So extra layers are added to the languages to allow for this. But layers slow things down. But for many cases it doesn’t matter.

Modern languages get fine tuned all the time to get the best of both worlds but you can’t escape the fact that the closer to machine instructions your are the faster your program runs.

You are viewing 1 out of 19 answers, click here to view all answers.