r/programming • • May 14 '21

Python programming: We want to make the language twice as fast, says its creator

https://www.tectalk.co/python-programming-we-want-to-make-the-language-twice-as-fast-says-its-creator/
780 Upvotes

260 comments sorted by

View all comments

Show parent comments

42

u/no_apricots May 14 '21

Many Python use-cases are async calls to C/CPP code anyway. So, plenty python implementations are more than performant.

I'm primarily a Go developer. No need to shit on Python.

13

u/[deleted] May 14 '21

If it's calling C/C++ it ain't the python that's performant

46

u/no_apricots May 14 '21

From a business logic perspective, yes it is.

-46

u/[deleted] May 14 '21

From a business logic perspective it's an inefficiency. Just call the cpp code with cpp and have one language and be done with it

36

u/no_apricots May 14 '21

That's not how business works which is probably why you don't work on that side of life.

27

u/Dr4kin May 14 '21

Python is much faster to write and most libraries are already done. Python is just the glue you use to connect then all

It is fast and simple to develop and in most use cases fast enough. Development time is expensive and even a higher server cost ist cheaper than longer development time.

Python is the second best language for everything and often times the second best language is still good enough

2

u/[deleted] May 14 '21 edited May 14 '21

[removed] — view removed comment

1

u/Dr4kin May 14 '21

Writing fast code also depends on a big option of dependencies. You can read data, analyse it, feed it into an ai model, host a Webserver and display the data with very little lines of code

TS is fast to write but very little languages come even close to the ecosystem python enjoys and that makes it fast to write

Most of these libraries are already written in c or c++ and if they do the heavy lifting the speed of python matters much less

-6

u/mohragk May 14 '21

You miss out on SIMD and other optimizations you can use when writing native cpp.

3

u/istarian May 14 '21

That assumes those are applicable to the work being done in Python, no?

4

u/no_apricots May 14 '21

Maybe. Still, 10% here and there doesn't matter in a business context. The majority, anyway.