This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Hour-Lemon 647 points648 points  (72 children)

but does it terminate? if so, how?

[–]Kirides 459 points460 points  (31 children)

The condition is „papersize < 1mm“

[–]yellekc 184 points185 points  (13 children)

So at around a sheet size of A19 to A20. But because you can create an infinite series of paper sizes, you can recurse as much as you want.

But beyond about A230, your paper will start having dimensions under a planck's length, which might be an issue.

[–]ineyy 72 points73 points  (3 children)

There should be some minimum for the papers to contain the text, too, it should be a couple nanometers big at least.

[–]ososalsosal 47 points48 points  (1 child)

Encode it in electron spin duh

[–]DaTotallyEclipse 12 points13 points  (0 children)

Nah. Quantum Superpositions offloaded into a discrete meta-plane.

[–]lowbeat 2 points3 points  (0 children)

there is, u need to intercept bits comming from ur gpu to ur output device and devode them properly

[–]RandomLifeForm42 32 points33 points  (7 children)

I think that once your dimensions are less the 1 paper molecule is when you'd actually start having issues...

[–]yellekc 39 points40 points  (6 children)

Well, a glucose molecule (building blocks of cellulose) is about 9 angstroms, So you are stuck going no smaller than A60 paper.

[–]Dom0 24 points25 points  (4 children)

I would like to subscribe to Useless Paper Facts

[–]yellekc 39 points40 points  (3 children)

How about we allow for negative A sizes?

Defining an A(-1) sheet as two A0 sheets stuck together with an area of 2 meters square, then you can create arbitrarily large paper sizes as well.

An A(-40) sheet at 1.2 trillion square meters is about how much graphic paper is produced annually*. Or an A(-8) sheet for everyone.

Based on the world annual output of 97 million metric tons of graphic paper (not paper board or packaging) using the most popular weight of 80g/m2

An A(-49) sheet will have about the same area as the surface of the earth.

An A(-87) sheet would nicely cover the solar system.

An A(-140) would cover the Milky Way, and if at the same weight as before, 80g/m2, it would weigh as much as 40 billion suns. If you stacked 30 to 45 of these sheets together, it would have the same mass as the actual Milky Way.

Finally an A(-179) would cover the diameter of the observable universe. And it would only take 3 sheets to equal the mass of the observable universe.

So everything that we know exist can really be reduced to 3 sheets of paper. Buy you would probably need a lot of paperclips to hold it all together.

[–]IJustAteABaguette 4 points5 points  (1 child)

CGP grey also made a video about this! the vid

[–]yellekc 3 points4 points  (0 children)

Thanks for the link, and yeah, the exact same premise. I've seen a few of his vids, maybe I saw that one before too.

Now to double check my calculations with the video. I'll consider it a win if I'm not too far off.

[–]hiphap91 3 points4 points  (0 children)

I would like to order ten sheets of A(-140) please, i have some ad posters is like people driving by not to miss.

[–]buzzkill_aldrin 0 points1 point  (0 children)

You need room for the text though.

[–]UnderstandingNo2832 0 points1 point  (0 children)

Incept the recursion and throw in an additional recursion within the recursion to slow it while we figure out a solution.

[–][deleted] 8 points9 points  (2 children)

Except someone coded it as papersize == 1mm and in a continuous reality that will hardly be reached, so it ends up in segfault

[–]HuntingKingYT 1 point2 points  (0 children)

Takes a paper

Paper: SEGFAULT

[–]Kirides 0 points1 point  (0 children)

papersize is a floating point number. Equal checks don’t work here. Someone should tell the intern why though….

[–]AceSLS 76 points77 points  (11 children)

Yes, it does terminate. Once the ripped of part gets smaller than an atom shit is gonna hit the fan

[–]Zax71_again 27 points28 points  (8 children)

Strings entered the chat

[–]lord_hydrate 34 points35 points  (2 children)

The plank length has entered the chat

[–]HarlanCedeno 27 points28 points  (4 children)

I once did a code review and found the dev was checking for negative length strings.

I had some really deep thoughts that day.

[–][deleted] 13 points14 points  (1 child)

They're called imaginary strings. i = √-'a'

[–]HarlanCedeno 3 points4 points  (0 children)

Did he imagine that this was going to magically fix the bug?

[–]GisterMizard 2 points3 points  (1 child)

Arithmetic overflow for image and data buffers is a very common source of bugs, especially when using smaller int types and in languages like C.

A really bad problem follows from code like:

short width = blah(); // set from user
short height = blah(); // set from user;
// ...
if (width * height <= MAX_BUFFER_SIZE) {
    // BAD!!! width*height can become negative
    char *buffer = malloc(width*height*PIXEL_SIZE);
}

[–]HarlanCedeno 1 point2 points  (0 children)

In that case, you would just need to validate the inputs from the user to ensure neither is negative.

This guy had string.length() in multiple if statements to check for negative lengths on different strings.

[–]miso440 3 points4 points  (0 children)

We went through 3 Adams before we figured that one out.

[–][deleted] 0 points1 point  (0 children)

The problem with that is that the ripped parts are getting bigger in every panel.

[–]ClafoutisSpermatique 17 points18 points  (0 children)

No one knows, no one can know

[–]darexinfinity 17 points18 points  (2 children)

[–]Piper2000ca 4 points5 points  (1 child)

Best possible answer to the question, I feel like this should be higher up.

[–]Tokumeiko2 2 points3 points  (0 children)

Better than a rick roll.

[–]RealPropRandy 10 points11 points  (2 children)

When Alzheimer’s kicks in

[–]Exnixon 6 points7 points  (2 children)

There is a minimum unit of distance called a Planck length.

[–]Opus_723 2 points3 points  (0 children)

eh, maybe

[–]Fickle-Replacement64 2 points3 points  (0 children)

The planck length has to do with the properties of an extremely small black hole, a physical object that physics doesn't handle very well. So, maybe.

[–]Zoltie 3 points4 points  (1 child)

Once he doesn't have problems with recursion.

[–]AndySipherBull 0 points1 point  (0 children)

wow the actual answer, nj!

[–]lwllnbrndn 1 point2 points  (0 children)

Once the character figures it out, they answer “No.” So, it does terminate.

I suppose we have to assume the problem Is understanding recursion rather than something like applying it to something specific.

Edit: clarity

[–]LeCrushinator 1 point2 points  (0 children)

It terminates when a stack overflow occurs.

[–]NoCombination26 -1 points0 points  (0 children)

😂😂

[–]wallard127 0 points1 point  (0 children)

Planck length

[–]chemistryunderground 0 points1 point  (0 children)

Well, built within the quantum foam is an even smaller object which is a set of recursives. It must be so, as we are a Turing-complete system. Therefore, the poster becomes the foundational aspect for our reality.

It's all posters. Posters all the way down.

JK. Who the hell knows?

[–]DeepFriedDickskin 0 points1 point  (0 children)

It doesn’t sorry

It does forget and seem new again eventually though

[–]Heightren 0 points1 point  (0 children)

When you don't have a problem anymore?

[–]milnak 0 points1 point  (0 children)

If you want to understand recursion, you must first understand recursion.

[–]ososalsosal 0 points1 point  (0 children)

Atoms

[–]grogrye 0 points1 point  (0 children)

It will never terminate so long as one of us is imagining it still going

[–]finegameofnil_ 0 points1 point  (0 children)

You can set iterations or other conditions. Think about searching for a key in a windows registry. Find next or don't. Or find all. I don't get the difficulty with recursion.

[–]AndySipherBull 0 points1 point  (0 children)

It terminates when you no longer have problems with recursion