io@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 2 days agowith a break statement right?piefed.cdn.blahaj.zoneimagemessage-square40fedilinkarrow-up1587arrow-down115file-text
arrow-up1572arrow-down1imagewith a break statement right?piefed.cdn.blahaj.zoneio@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 2 days agomessage-square40fedilinkfile-text
minus-squareio@piefed.blahaj.zoneOPlinkfedilinkEnglisharrow-up12·edit-21 day agonot sure but for it to be a fork bomb you need something like & in ur pseudo code to go on to the next call rn the first call of f within the loop never completes so the second doesn’t happen. So this is “just” infinite recursion pls don’t scream at me should i be wrong. edit: i meant “completes” not “compiles”
minus-squareA_norny_mousse@feddit.orglinkfedilinkarrow-up2·1 day agoNo you’re right. I also attempted to write pseudocode; not sure bash will even do this without curly brackets.
not sure but for it to be a fork bomb you need something like
&in ur pseudo code to go on to the next callrn the first call of
fwithin the loop never completes so the second doesn’t happen. So this is “just” infinite recursionpls don’t scream at me should i be wrong.
edit: i meant “completes” not “compiles”
No you’re right.
I also attempted to write pseudocode; not sure bash will even do this without curly brackets.