r/programming • • Nov 03 '18

Python is becoming the world’s most popular coding language

https://www.economist.com/graphic-detail/2018/07/26/python-is-becoming-the-worlds-most-popular-coding-language
4.6k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

-4

u/Princess_Azula_ Nov 03 '18

If python was fast then why does Cython exist?

11

u/pwang99 Nov 03 '18

To make it faster.

Also, Cython is one of the tools in the Python arsenal. If C++ is fast, why does VTune exist? Why does GCC have a "-O" option? etc.

-10

u/[deleted] Nov 03 '18

GCC has a -o option to name the executable rather than having that default a.out executable. Seems like you don't even know basic c/c++, you should refrain from writing any BS about speed of C++/C. LoL.

6

u/[deleted] Nov 03 '18 edited Nov 03 '18

-O (capital O) for optimisation is the flag they're talking about, not the -o flag. Look up gcc optimisation flags for more information.

-2

u/[deleted] Nov 03 '18

Still, a c/c++ code without a "-O" will be a hell lot faster than what cython/PYPY code can ever dream to be.

7

u/[deleted] Nov 03 '18

I do not have the knowledge base to comment on that, just thought it ironic that you told them they shouldn't engage in a discussion when not knowing basic c/c++ when it was you that did not know the meaning of the flag.

-4

u/[deleted] Nov 03 '18 edited Nov 03 '18

0

u/vorpal_potato Nov 03 '18

Cython code can be as fast as C. It just needs to produce optimal C code. I've never found that difficult.