5 ms·
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-thread
by seomis 10y 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.
- nawitus 10y agoJavaScript'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).
- seomis 10y agoAsynchronous 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.
- Rafert 10y agoAnd 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?