Live data from Hacker News

Parallel – A command-line CPU load balancer written in Rust

github.com

41–50 of 65 posts

Re: Parallel – A command-line CPU load balancer written in Rust

#41

Earlier quoted context omitted.

parallel is awesome for when you want to want to run a number of jobs unknown in advance, such as using it as an xargs replacement: find . -type f -name | parallel --jobs 5 process_file That will run "process_file foo" for ever file in a directory with 5 processes running in parallel.

Not being a jerk, but what does parallel bring to the table that xargs doesn't? find . -type f -name | xargs -I {} -n 1 -P 5 process_file {}

You can have remote workers with parallel (not sure if you can do that with xargs or not).

    parallel --progress --wd '.' -S '4/fourworkers@blehworker.org,8/eightworkers@eightworkers.org,2/:'  "./complicated_command --param1={1} --param2={2} ::: $(some_shellcommand_to_generate_param1_values.sh) ::: $(some_shellcommand_to_generate_param2_values.sh)
It's very flexible, become my go-to for speeding up parallelizable work. Next step up would be Celery or Spark or something.

Re: Parallel – A command-line CPU load balancer written in Rust

#43
post #40
post #36

Earlier quoted context omitted.

Agreed. GNU Parallel does something similar and this is confusing. But this does claim to be a reimplementation of much of GNU Parallel's functionality. If it's compatible, maybe there isn't too much of an issue. In the interest of silly UNIXism, I hereby vote for the name "serial" instead. It's just like "more" and "less", right?

I believe it intends to support a subset of GNU parallel and be command-line compatible with that subset. And "perpendicular" would be a far better joke name, IMO. :P

subpar

Re: Parallel – A command-line CPU load balancer written in Rust

#44
post #3

Earlier quoted context omitted.

A rust beginner could also look at Jonathan Turner's lessons from solving first 12 Project Euler problems. [0] https://www.jonathanturner.org/2015/10/lessons-from-first-12...

>The owner of www.jonathanturner.org has configured their website improperly. To protect your information from being stolen, Firefox has not connected to this website. I added an exception as I pretty much always do but in case the owner of the site is around here, they might want to investigate this.

I've just pinged them, thanks.

Re: Parallel – A command-line CPU load balancer written in Rust

#45
post #3

Earlier quoted context omitted.

A rust beginner could also look at Jonathan Turner's lessons from solving first 12 Project Euler problems. [0] https://www.jonathanturner.org/2015/10/lessons-from-first-12...

>The owner of www.jonathanturner.org has configured their website improperly. To protect your information from being stolen, Firefox has not connected to this website. I added an exception as I pretty much always do but in case the owner of the site is around here, they might want to investigate this.

website owner here: odd, what configuration of firefox gives you that warning. When I connect with a recent OS X version, it seems to work okay.

Re: Parallel – A command-line CPU load balancer written in Rust

#46
post #45

Earlier quoted context omitted.

>The owner of www.jonathanturner.org has configured their website improperly. To protect your information from being stolen, Firefox has not connected to this website. I added an exception as I pretty much always do but in case the owner of the site is around here, they might want to investigate this.

website owner here: odd, what configuration of firefox gives you that warning. When I connect with a recent OS X version, it seems to work okay.

Firefox on Windows here. Looks like it's getting the certificate for github, but throwing an error because your domain isn't listed in that certificate. https://imgur.com/a/UeXtC

Re: Parallel – A command-line CPU load balancer written in Rust

#47
post #40
post #36

Earlier quoted context omitted.

Agreed. GNU Parallel does something similar and this is confusing. But this does claim to be a reimplementation of much of GNU Parallel's functionality. If it's compatible, maybe there isn't too much of an issue. In the interest of silly UNIXism, I hereby vote for the name "serial" instead. It's just like "more" and "less", right?

I believe it intends to support a subset of GNU parallel and be command-line compatible with that subset. And "perpendicular" would be a far better joke name, IMO. :P

Hitachi already made your theme song: https://www.youtube.com/watch?v=xb_PyKuI7II :)

Re: Parallel – A command-line CPU load balancer written in Rust

#48
post #46
post #45

Earlier quoted context omitted.

website owner here: odd, what configuration of firefox gives you that warning. When I connect with a recent OS X version, it seems to work okay.

Firefox on Windows here. Looks like it's getting the certificate for github, but throwing an error because your domain isn't listed in that certificate. https://imgur.com/a/UeXtC

Yeah, it's not set up for https. Do you see the same thing with http://www.jonathanturner.org/?

Re: Parallel – A command-line CPU load balancer written in Rust

#49

I always tended to autogenerate a makefile with fake goals like: g1: job1 g2: job2 and then one goal to depend on them all and I used make -j 4

From: https://www.gnu.org/software/parallel/history.html

> parallel dates back to around the same time. It was originally a wrapper that generated a makefile and used make -j to do the parallelization.

Re: Parallel – A command-line CPU load balancer written in Rust

#50

Earlier quoted context omitted.

parallel is awesome for when you want to want to run a number of jobs unknown in advance, such as using it as an xargs replacement: find . -type f -name | parallel --jobs 5 process_file That will run "process_file foo" for ever file in a directory with 5 processes running in parallel.

Not being a jerk, but what does parallel bring to the table that xargs doesn't? find . -type f -name | xargs -I {} -n 1 -P 5 process_file {}

Bigger list: https://www.gnu.org/software/parallel/man.html#DIFFERENCES-B...
Post reply on HN