News for hackers. Stuff that matters.
Re:Why do we need Flask, Celery, and Redis? (2019) by dnautics on Saturday April 18, 2020 @10:11PM (#22912886)
Why bother writing shared-memory parallel code if it makes your life so hard? Most of the time you're i/o bound, or network bound, or storage bound. Being compute bound is exceptionally rare these days.
Re:Why do we need Flask, Celery, and Redis? (2019) by throwaway894345 on Sunday April 19, 2020 @12:08PM (#22916753)
I do it when I have to do it. Most things are I/O bound, but sometimes things are compute bound. And since Python is about two orders of magnitude slower than Go (and Python also makes it much harder to optimize straight-line execution because it lacks semantics for expressing memory layout), you tend to need parallelism more often than you would in a fast language. Sometimes you can leverage pandas or write a small chunk in C, but very often those options aren’t available, and naively throwing c at the problem can make your performance worse.