News for hackers. Stuff that matters.
Re:Why do we need Flask, Celery, and Redis? (2019) by throwaway894345 on Saturday April 18, 2020 @04:21PM (#22910782)
This comment makes it sound like Go and Python are pretty much in the same class because neither is perfect. I invite anyone who thinks this way to write considerable (shared-memory) parallel code in both languages and see which they prefer.

As for Go's "set of problems with parallelism", they're pretty much just that sharing memory is hard to do correctly without giving up performance. No languages do this well; Rust and Haskell make it appear easier by making single-threaded code more difficult to write--requiring you to adhere to invariants like functional purity or borrowing. If you're writing Python, you very likely have values that are incompatible with these invariants (you want to onboard new developers quickly and you want your developers to write code quickly and you're willing to trade off on correctness to do so).

Go is absolutely best-in-class if you have typical Python values.

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.
Re:Why do we need Flask, Celery, and Redis? (2019) by marcosdumay on Saturday April 18, 2020 @06:28PM (#22911649)
> Go is absolutely best-in-class if you have typical Python values.

"Best in class" is not a relative term. Neither Go nor Python are appropriate choices for highly parallel intercomunicating code. Yes, Python is more limited than Go here, but hardly makes a difference when you avoid it.

Haskell and Rust do make it easier, by forcing developers to organize their code in a completely different way. Erlang does the same, with a different kind of organization. None of those languages are more difficult to program in, but yes, they are hard to learn.

Re:Why do we need Flask, Celery, and Redis? (2019) by jatone on Sunday April 19, 2020 @09:34AM (#22915768)
> Neither Go nor Python are appropriate choices for highly parallel intercomunicating code.

thats an extraordinary claim which needs evidence.

Re:Why do we need Flask, Celery, and Redis? (2019) by marcosdumay on Sunday April 19, 2020 @10:36AM (#22916172)
Extraordinary?

Name any single Go feature aimed at helping parallel computing.