r/Python • • Nov 13 '20

News Python swallows Java to become second-most popular programming language

https://www.theregister.com/2020/11/12/python_swallows_java_to_become/
2.3k Upvotes

205 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Nov 13 '20

[deleted]

10

u/gregy521 Nov 13 '20

But if you're running that app 1000 times a day, that sums to 30 and 200 seconds respectively. A much more appreciable difference.

Python is an extremely popular scientific computing language, too, and those don't care about 'every nanosecond', more the fact that cutting the runtime from 4 hours to 20 minutes is worthwhile.

3

u/psharpep Nov 13 '20

Sure, but if you'rr doing scientific computing in Python, you're using NumPy/Numba or similar, which gives runtimes on the order of C.

1

u/xigoi Nov 13 '20

If it takes 0.2 seconds, you can't serve more than 5 requests per second, which may be limiting.

3

u/mooburger resembles an abstract syntax tree Nov 13 '20

the real problem is that you're asking the app itself to do too much. Just about every production environment uses loadbalancers already. Why are we rehashing the same old arguments people made about RoR when it's obvious that the ecosystem & community support is what makes or breaks things?

1

u/SilkTouchm Nov 14 '20

Trading bots are bottlenecked by your latency towards the exchange's server. It's not really a cpu intensive task.

Also you might be exaggerating a bit with the nanoseconds. I don't think there's any webserver that can handle 1 billion requests per second.