Live data from Hacker News

Neat Parallel Output in Python

bernsteinbear.com

41–47 of 47 posts

Re: Neat Parallel Output in Python

#42
I don't like the wild use of globals, even if they are "guarded" by locks. And then, oh boy there're locks! But, it surely works, so that's nice. It would be cool to have a small lib that solves this nicely :thinking:...

Re: Neat Parallel Output in Python

#47

I prefer using a purpose-built tool like GNU parallel. Parallel's only purpose is to run things in parallel and collect the results together. The advantage is you only have to learn to use it once, rather than learn to do this again and again in all the different languages/tools you might use.

Try:

    parallel --latestline seq ::: {1..10}0000000
(Requires version 20220522)
Post reply on HN