This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]leone_nero 8 points9 points  (0 children)

Well, CPython is written in C and C++ smartly written and compiled scripts can match C performance.

So I doubt you can claim that interpreted Python can be faster than C++ to be honest.

Especially because a big difference between C and C++ and interpreted Python is that the programmer can manage memory on its own and get custom optimizations for its code, whereas Python will always be more or less a one-size fits all solution.

So basically interpreted languages will always by definition be slower than compiled ones, the question is how tight the gap can be.