100 points

Gentoo users would be really mad about this if they weren’t still building their web browsers and could get online

permalink
report
reply
26 points

Damn you qtwebengine!

permalink
report
parent
reply
1 point

It do be like that 😔…

permalink
report
parent
reply
12 points

And as soon as that’s working; they’ll break something else

permalink
report
parent
reply
34 points

Why does this option without specifying a number of threads even exist? It might as well be footgun mode.

permalink
report
reply
22 points

I’m pretty sure it’s “run as many threads as there are cores” mode, though if you’re running it in a terminal I always find it best to use nproc-1 or -2 so the machine actually stays usable.

permalink
report
parent
reply
25 points

My man pages specify it’s as many as possible limited only to the number of jobs.

permalink
report
parent
reply
21 points

Oof, that might as well be a fork bomb then

permalink
report
parent
reply
8 points

I don’t think I’ve ever used -j without specifying as many cores as I have, so it sounds completely reasonable.

permalink
report
parent
reply
24 points
*
5 points

One of Perl’s design principles was the Robustness principle, though it probably wasn’t known by that name at the time. (The name came about around the same time Perl was becoming a thing, something something zeitgeist something.)

Perl can be locked down and made to complain (with at least a couple of levels of pedantry) when things are wrong, but unlike most other languages, it doesn’t do so by default.

permalink
report
parent
reply
1 point

probably TECO, too

permalink
report
parent
reply
12 points

8

-j 8

permalink
report
reply
3 points

Those are rookie numbers!

permalink
report
parent
reply
12 points

It is driving me crazy that I have no idea what this means.

permalink
report
reply
38 points
*

I believe the left hand is a shell fork-bomb, on the assumption that anything that zany is probably malicious.

And the right hand is a way to tell Make to use up all available system resources:

"-j [jobs]’ ¶
‘--jobs[=jobs]’
Specifies the number of recipes (jobs) to run simultaneously. With no argument, make runs as many recipes simultaneously as possible. If there is more than one ‘-j’ option, the last one is effective. See Parallel Execution, for more information on how recipes are run. Note that this option is ignored on MS-DOS."

Edit: I think the make command is technically only a problem when run for a Makefile that tries to do too many things, and has at least one mistake in dependency controls. So… for every Makefile I ever encountered (or that I ever wrote!)

Yeah. They’re the same picture

permalink
report
parent
reply
25 points
*

You are correct, left hand is a fork bomb. Specifically, it creates and then runs a function named “:”. What this function does is pipe its output into itself while running in a background process, which instantly spawns infinite copies of itself. Technically I believe the : character could be any character as its just a name. The creator just picked a colon for aesthetics.

permalink
report
parent
reply
13 points

I always just kind of glazed over looking at that and just know “it’s a fork bomb” and basically what it does

With your explanation, I can now actually understand all the parts and how they work, it actually makes sense

permalink
report
parent
reply
5 points

Now I get why it does what it does and how it works. I never thought that the colon was the variable name but it makes so much sense!

permalink
report
parent
reply
6 points

I think it can also get weird when you call other makefiles, like if you go make -j64 at the top level and that thing goes on to call make on subprojects, that can be a looooot of threads of that -j gets passed down. So even on that 64 core machine, now you have possibly 4096 jobs going, and it surfaces bugs that might not have been a problem when we had 2-4 cores (oh no, make is running 16 jobs at once, the horror).

permalink
report
parent
reply
4 points

so without an argument to -j the number of concurrent jobs is unbounded???

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

I use Arch btw


Sister communities:
Community rules
  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

Community stats

  • 7.5K

    Monthly active users

  • 1.2K

    Posts

  • 65K

    Comments