Re:Celery, non-blocking code and quest against coroutines
by seomis on Thursday June 09, 2016 @11:52AM
(#11870195)
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.
[ Parent
| on HN ]
Re:Celery, non-blocking code and quest against coroutines
by Rafert on Thursday June 09, 2016 @12:07PM
(#11870300)
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?
Re:Celery, non-blocking code and quest against coroutines
by nawitus on Thursday June 09, 2016 @12:22PM
(#11870390)
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).
Re:Celery, non-blocking code and quest against coroutines
by seomis on Thursday June 09, 2016 @12:54PM
(#11870608)
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.