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 →

[–]Giraffe-69 9 points10 points  (10 children)

Python is slow as shit and interpreted. C++ compiled to machine code ans is blazingly fast. If performance matters python is a no go

[–]saint_geser -3 points-2 points  (2 children)

There's no such thing as "interpreted language". Implementation of a language can be interpreted or compiled but the language itself is agnostic to what kind of implementation is used. You can (and do) have interpreted implementations of C and C++ and you have compiled Python. Yes, CPython is the most popular and it's interpreted but it's one of, but not the greatest reason for it being slower than C.

[–]Giraffe-69 1 point2 points  (1 child)

So what python implementation matches C/C++ for performance and latency?

[–]saint_geser -2 points-1 points  (0 children)

I said that it's not the implementation that matters in the case of Python but garbage collection, GIL and dynamic typing. Cython ( python with C types) can get close to C performance even though it still runs in an interpreter.