eli5: How is C still the fastest mainstream language?

726 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

Others have the majority of the answer covered, and there’s one additional angle that I think is important to highlight – C isn’t _inherently_ fast, it just has language features that make it well-suited for writing computationally efficient code and essentially enable you to trade development efficiency for execution efficiency. It’s not very hard to find/create examples of well-written code in other languages that is faster at a particular task than average or poorly-written C code, especially if the other language is one that was designed specifically for working on that kind of task.

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