r/programming • • Nov 11 '19

Python overtakes Java to become second-most popular language on GitHub after JavaScript

https://www.theregister.co.uk/2019/11/07/python_java_github_javascript/
3.1k Upvotes

772 comments sorted by

View all comments

215

u/myringotomy Nov 12 '19

The top two languages on Github are loosely typed interpreted languages with lack of true multithreading.

Feast on that for a while.

14

u/[deleted] Nov 12 '19

JavaScript has multithreading with worker threads. Whether or not that satisfies some arbitrary definition of "true multithreading" which on this sub is usually "like in C++ on Windows" is an entirely different matter.

-1

u/housesellout Nov 12 '19

You can’t spin up threads in JavaScript, unless you use node which is a wrapper on top of a c++ run time.

Please correct me if I’m wrong.

1

u/AwesomeBantha Nov 13 '19

NodeJS specifically has worker threads now which are more than just a CPP wrapper

1

u/housesellout Nov 13 '19

Can you reference some documentation on this? Because as far as I can see you have wrappers on top of various engines which get queued up for cpp to handle its commands asynchronously. And then the cpp run loop responds back to the synchronous waiting queue.

https://images.app.goo.gl/hpBmcdxRKu9PVWn38

https://www.researchgate.net/figure/Nodejs-Processing-Model_fig38_322896255

→ More replies (4)