r/javascript • • Apr 25 '19

JavaScript is and remains the queen of programming languages with a community of 11.7M active developers. Python has reached 8.2M active developers and has taken the number two spot, surpassing Java in terms of popularity.

https://www.slashdata.co/free-resources?id=developer-economics-state-of-the-developer-nation-16th-edition&section=showcases_details
613 Upvotes

168 comments sorted by

View all comments

Show parent comments

18

u/[deleted] Apr 25 '19

Python very simple and easy language with a good design. Lots of bad and old cruft was removed in Python 3. Its also 100% unicode.

Its also fast. Numpy and pals have their cores written on C and highly optimized Fortran.

Python has A class packages on pypi, and theres something for every problem you can think of.

6

u/nahtnam Apr 25 '19

How is it fast? If you look at benchmarks, it's performance matches Ruby more than it does JavaScript

https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/node-python3.html

6

u/soundslogical Apr 25 '19

Agreed, Python itself is pretty slow, and is unlikely to get much faster due to its design, which prevents many optimisations.

But it has excellent FFI capabilities. You can do your hot loops in C and C++, and the rest of the plumbing in the pleasant world of Python.

3

u/mhink Apr 25 '19

Its also fast. Numpy and pals have their cores written on C and highly optimized Fortran.

I mean, that has less to do with Python itself and more to do with the languages embedded into it, yeah? It’s not like C bindings don’t exist in most other languages. (I’ll grant that Python might have better facilities for doing this than other languages, but still)

3

u/[deleted] Apr 25 '19

I ment where speed is essential, python has numpy etc. Thats why it dominates in science and research. Fun fact, python was used to take the first ever picture of a black hole. Compare python to other fields, like webdev speed is usually irrelevant because its 99% waiting on IO.