Hacker News new | ask | show | jobs
by seomis 3664 days ago
Why is it that Python's single-threadedness is always singled out over every other language in the general family? Ruby, PHP, Perl, and JS are all single-threaded (Perl ithreads and JRuby/Jython caveats notwithstanding). Celery itself is just a framework for fork management, something that has been available to these languages since their inception.
2 comments

And as a Rails dev I was thinking: "hey, somebody is taking a shot at Python's single-threadedness for a change".

I'm not familiar with Celery, I gather it is similar to Sidekiq/Que/Resque/DelayedJob/etc?

JavaScript's "logic" may be single-threaded, but it's asynchronous event loop solves a lot of problems that a single-threaded synchronous model has (like what Python has by default).
Asynchronous event loops aren't a core part of the JavaScript: They're from the DOM API and Node standard library. Though it is significant that nothing comparable exists for Python that has reached the same robustness and support.