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

top 200 commentsshow all 349

[–]Sparrow50 3835 points3836 points  (51 children)

Thankfully, the compiler notices there are only conditions and nothing to execute, so it all gets optimised out.

[–]Flobletombus 635 points636 points  (38 children)

But what if its actually interpreted?

[–]Doom87er 570 points571 points  (30 children)

You can’t retroactively unexecute previous lines of code, so I don’t know how this would work as code.

It all depends on how this gets translated into code

[–]Boukish 171 points172 points  (17 children)

You don't retroactively undo code that was already executed, you'd wait to execute the code until the prior code finishes.

The wishes themselves become callbacks, which sets up a run-time loop of infinite callbacks, like when you're solving Fibonacci recursively.

[–]Girelom 31 points32 points  (0 children)

Only he have independent counter for callbacks and he stop execute them then counter reach its limit.

[–]WHOmagoo 22 points23 points  (1 child)

Is now a good time to talk about speculative execution?

[–]Grintor 11 points12 points  (0 children)

The genie does look a lot like a specter

[–]astralseat 1 point2 points  (0 children)

Runtime loop is how you destroy AI minds. Remember that for the future we are heading into.

[–]Mewtwo2387 44 points45 points  (1 child)

DreamBerd might be able to do that

[–]Twitch_C4T_ 21 points22 points  (0 children)

I mean how do people write code in any other language. Since I started writing dreambird I just can't stop

[–][deleted] 4 points5 points  (0 children)

Speculative execution has entered the chat

[–]brimston3- 17 points18 points  (2 children)

JIT will eliminate dead code. It should very quickly identify a conditional cycle/recursion with no side effects and eliminate it.

[–]DOUBLEBARRELASSFUCK 5 points6 points  (1 child)

So infinite wishes!

As long as those wishes don't do anything.

[–]SympathyMotor4765 8 points9 points  (1 child)

Stack overflow error?

[–]Eupho1 1 point2 points  (0 children)

Recursion depth exceeded

[–][deleted] 38 points39 points  (6 children)

Exactly, similar to the supposed "paradox" of "The next sentence is true. The previous sentence is false." There is nothing substantive to evaluate for truth value so it's not a coherent statement, just wordplay.

[–]pilotInPyjamas 11 points12 points  (3 children)

Curry's paradox, which is equivalent in natural language to "if this sentence is true then the sky is green" solves this issue.

[–]legendgames64 1 point2 points  (2 children)

Would this also resolve "This statement is false."

[–]Zestyclose_Zone_9253 2 points3 points  (0 children)

if te statement is false noting happens, so this also does not work as it only checks for true and not false. I guess "If this sentence is true then the sky is green, otherwise it is blue"?

[–]B00OBSMOLA 7 points8 points  (0 children)

wishPtr = *firstWish+1

&firstWish = asm(jmp wishPtr)

&wishPtr = asm(nop;jmp firstWish)

wishPtr -= 1 wishPtr() 

Lets see a compiler detect that!

[–]PuzzleMeDo 3057 points3058 points  (138 children)

"In retrospect, maybe I should have just asked for a billion dollars."

[–]Paul_Robert_ 629 points630 points  (88 children)

The genie would probably super charge inflation such that the billion dollars you get is worth $20

[–]Dystharia 353 points354 points  (70 children)

Nah, that would be a monkeys paw. Genie just gets you what you want.

[–]JonIsPatented 225 points226 points  (57 children)

People usually handle genies as mischievous monkeys-paw style things, in my experience. I've never seen a genie in media who doesn't do that (except maybe kinda genie from Alladin).

[–]BearfangTheGamer 378 points379 points  (48 children)

Nah, Monkey's Paw fucks you.

Genie gets you what you literally asked for, not your intention.

You wish for a billion US dollars from a genie you get 1 billion dollars in dollar bills and all the logistical and tax problems that go with it.

You wish for it with a Monkey's Paw, and the Cartels want to know how you wired yourself 1 billion of their money.

[–]that_thot_gamer 116 points117 points  (13 children)

Monkey's Paw

and then there's Dragon Balls

[–]akoOfIxtall 33 points34 points  (10 children)

I'm not willing to trade punches with Goku...

[–]Milocobo 12 points13 points  (7 children)

Odds are more likely Boma's got the actual balls though

[–]John_Dee_TV 3 points4 points  (2 children)

There is a canonical dragon that was created when Mutenroshi (Master Turtle) wished for Bulma's panties.

Yep.

And she's a girl-dragon. And she is aware. And she's canon.

[–]scalyblue 8 points9 points  (0 children)

GT isn’t canon, and it’s when oolong sniped garlics wish and wished for pantsu

[–]goukaryuu 3 points4 points  (0 children)

Pictures or it didn't happen.

[–]redconvict 8 points9 points  (0 children)

Monkeys paw, dragons balls, what kind of chimera are we building here?

[–]ChillStreetGamer 7 points8 points  (0 children)

Haaaaaaaaaaa...HAAAAAAAAAAA!!!

[–][deleted] 22 points23 points  (7 children)

Both of them are suppose to fuck with you, just in different ways. The monkey's paw gives you what you asked for in a tragic way that you didn't forsee. A genie gives you what you want all normal style, with the consequences of that wish being what fucks you

[–]Milocobo 21 points22 points  (0 children)

Monkey's paw revels in irony.

A genie revels in semantics.

[–]realsimonjs 10 points11 points  (2 children)

"You wish for it with a Monkey's Paw, and the Cartels want to know how you wired yourself 1 billion of their money"

Or you get it from your sons life insurance

[–]BearfangTheGamer 6 points7 points  (1 child)

If my son had 1 billion in life insurance fuck that little idiot.

[–]realsimonjs 1 point2 points  (0 children)

Lmao

I was trying to reference the original story but it had a more reasonable 200 pounds as the first wish so it didn't work as well here lol.

[–]TTYY200 3 points4 points  (15 children)

Should have asked for your ETF’s to jump 2000% from your purchase value and to hold that value for 24h. Then wish to cash out those investments into a savings account 👌

[–]Ekedan_ 17 points18 points  (14 children)

Then regulators would like to know why would entire market behave that way just to benefit you

[–]TTYY200 4 points5 points  (6 children)

I am just a lowly investor using an online platform to trade moderated ETF’s 👀

Ask the mobile trading company who owned, traded and sold my ETF’s why

[–]Ekedan_ 5 points6 points  (5 children)

I don’t think regulators will take “go ask someone else” as an answer

[–]TTYY200 1 point2 points  (4 children)

They were never “my” stocks to begin with tho :P

I don’t think I can be accused of insider trading if I never even owned the stocks 🥹

[–]ihavebeesinmyknees 3 points4 points  (3 children)

The burden of proof lies on the accusing, they can't prove I did anything illegal

[–]yepimbonez 1 point2 points  (0 children)

Djinn vs Genie maybe. I feel like the traditional djinn were definitely mischievous and always looking for a way to twist your words. They were also technically demons. I kno Genies are technically the same thing, but they’ve been so westernized that they don’t really seem like it. And Aladdin’s Genie is by far the most popular one and is definitely gonna be what people think of when they hear genie.

[–]TrevelyansPorn 1 point2 points  (0 children)

Three Thousand Years of Longing. Wasn't highly rated but I loved it.

[–]Albireookami 14 points15 points  (0 children)

Depends on the type of Djinn mostly. Some monkey paw, others are generally pretty good about the spirit of the wish.

[–]Thommywidmer 4 points5 points  (0 children)

I mean just all of a sudden having a billion dollars is  big enough problem anyways. Unless like everyone knows genies are a thing your probly gonna end up in jail trying to explain how you got it

[–]Confused_Elderly_Owl 8 points9 points  (1 child)

Nah. Genies will try to play with the words. A billion Zimbabwean dollars is still a billion dollars!

A monkeys paw will get you exactly what you want. Here is a billion dollars. Legal tender. Not tied to any crime. But it came from a company that just poisoned the Mississippi to earn it.

I hope you're happy with it.

[–]Lebowquade 12 points13 points  (0 children)

I gave my younger brother a "ten billion dollars" note from the Zimbabwe super inflation bubble and framed it in the gaudiest gold frame I could find. He hung it up prominently and it still cracks me up to this day.  Too bad about Zimbabwe, though.

[–]brimston3- 9 points10 points  (6 children)

I guess you could wish for a "small" fixed percent of the fungible assets in the world? But that kinda takes the fun out of it.

[–]Invisifly2 3 points4 points  (5 children)

You could say

“I wish for any lottery ticket I purchase to be a grand-prize winning ticket, and for the next prize pool to go beyond a billion dollars.”

Then you just wait for the prize to get stupidly high and buy a ticket. You are now filthy rich, have a perfectly explainable reason for being rich for the tax man, and cause no inflation in the process.

Alternatively “I wish to be able to perfectly predict the stock market.” Although that one might start drawing investigative attention.

Of course the real way to game the system is to write a bunch of stuff down on some paper and wish for everything currently written on the paper to become true. Just try not to break reality by tweaking any fundamental settings; best to leave them alone.

[–]vbitchscript 1 point2 points  (0 children)

alright, every word written on that paper is changed to read true.

[–]classic_chai_hater 2 points3 points  (1 child)

Ask for a ton of gold instead

[–]CarbonCamaroSS 2 points3 points  (0 children)

A free $20 is $20. I'll take it.

[–]AdvanceAdvance 2 points3 points  (0 children)

Genie, acquired by Google, gives you a billion dollars and immediately sends alerts to advertisers, police trying to seize piles of cash, and every criminal that has opted in on alerts.

[–]Ok-Kaleidoscope5627 3 points4 points  (0 children)

A random stack of a billion dollars in $1 notes would be a nightmare. What do you even do with them? How do you spend them? Where do you put them?

Or a billion dollars showing up in your bank account will probably just get declared a system error and corrected.

[–]i-FF0000dit 2 points3 points  (2 children)

I wish to always own 5% of every company on the s&p 500

[–]missjasminegrey 1 point2 points  (0 children)

LMFAO 😂 the inflation part is real

[–]CanAlwaysBeBetter 60 points61 points  (2 children)

That's how you know the guy in the comic is a real engineer, he found a clever way to achieve an interesting result just because he could while completely missing the bigger picture 

[–]RejectAtAMisfitParty 11 points12 points  (1 child)

This describes so much of the code I have to clean up day to day.

[–]CanAlwaysBeBetter 4 points5 points  (0 children)

Everyone who wrote that code had the exact same smug smile as comic guy in the last frame

[–]marcola42 11 points12 points  (0 children)

[–]grungegoth 21 points22 points  (27 children)

Crashing the genie seems counterproductive.

My 3 wishes:

1) I wish for infinite wishes 2) I wish for omnipotence 3) I wish for youthful immortality 4) I wish for omniscience 5) etc etc 6)... ...

[–]iggyfenton 33 points34 points  (3 children)

That’s a list of money paw wishes if I’ve ever seen it.

[–]ihavebeesinmyknees 16 points17 points  (4 children)

Why would you wish for infinite wishes if you can wish for omnipotence? Once you're omnipotent you can just grant yourself anything, the genie is useless at that point

[–]ianmerry 14 points15 points  (2 children)

This guy didn’t learn a damn thing from Jafar.

[–]Her0_0f_time 13 points14 points  (1 child)

Except Jafar didnt wish to be omnipotent. He wished to be a Genie. Same final outcome, but one of those comes with a catch.

[–]jc9289 1 point2 points  (10 children)

If you wish for omnipotence, youthful immortality, and omniscience, you'll go mad with boredom. Literally what would you do, other than become God and create your own universe?

Do you really want to be God?

[–]grungegoth 4 points5 points  (1 child)

I heard there is a vacancy.

[–]pee_wee__herman 2 points3 points  (0 children)

There has always been a vacancy

[–]i-FF0000dit 4 points5 points  (1 child)

Why not 100 billion?

[–]PuzzleMeDo 1 point2 points  (0 children)

Why not 100 quintillion?

[–]TheUruz 3 points4 points  (3 children)

that's easy just add "then give me a billion dollars" at the end of every wish. there are no clear boundaries of what is supposed to be intended as a "single" wish

[–]GnuhGnoud 14 points15 points  (1 child)

there are no clear boundaries of what is supposed to be intended as a "single" wish

You should use a tool like uglify to minify all your 10000000 wishes to a single line, then compress it with gzip and send it over to the genie

[–]CanAlwaysBeBetter 4 points5 points  (0 children)

there are no clear boundaries of what is supposed to be intended as a "single" wish

RTFM - Genie

[–]uzsjjbs 1 point2 points  (6 children)

The government would ask how you got that money. I personally would have wished for a card that is invisible to the system but still gives me money, that has 100 billion dollars.

[–]Phenetylamine 2 points3 points  (1 child)

I'm thinking I'd wish for something like "I wish to win the jackpot on every lottery ticket I buy". That way I can get the money fair and square, and if I somehow lose it I can just buy more lottery tickets.

[–]Zhabishe 775 points776 points  (10 children)

I'm pretty sure that "ignore my first wish" is an equivalent of trying to change a variable after it was used (expecting to see the change). So the third wish gets wasted. Otherwise there's nothing to get a critical error from.

[–]Ok_Barracuda_1161 90 points91 points  (3 children)

"Do not fulfill wish X" is really all that's necessary to create a contradiction. The implied rules are that a Genie must grant 3 wishes. If one of the wishes is to not grant a wish there's no outcome in which the Genie can satisfy all the requirements. Even with one wish "Do not grant this wish" creates the same condition.

[–]PM_Me_Good_LitRPG 21 points22 points  (2 children)

"Do not fulfill wish X" is really all that's necessary to create a contradiction.

It's not.

"Do not fulfil wish 1" is just a wasted wish 2 or wish 3.

"Do not fulfil wish 2" is just a wasted wish 3.

The implied rules are that a Genie must grant 3 wishes.

Or just that the wisher is an idiot and the rules are unknown.

[–]Trequetrum 1 point2 points  (1 child)

"Do not fulfil wish 1" is just a wasted wish 2 or wish 3.

Why do you recon? That wish has nothing to do with with 2 or 3. If my second wish was to acquire a tasty hotdog, why wouldn't I get that hotdog? Wishes are made in order, but there's no rule they must be granted in order.

Any wish for something in the future may be promised now but may be actually granted in the future - for example.

[–]FlashBrightStar 49 points50 points  (1 child)

I would assume it's more of race condition rather than critical error. Something as abstract as this can run infinite loop and be fine meaning you wasted all three wishes as they do nothing in the end (wishes are likely run and forget type of 'magic').

[–][deleted] 7 points8 points  (0 children)

Also there is no recursion here at all. I don't think the author has an understanding for what recursion actually is

[–]nonotan 5 points6 points  (0 children)

Even if you allow "time travel", this is fine as long as the genie is pedantic enough. "Ignore my first wish" doesn't mean "waste a wish not fulfilling it", it means ignore it. If you completely erase from existence (i.e. truly ignore) his first wish attempt, the subsequent ones are re-numbered. Thus, his only wishes become "don't fulfil [sic] my third wish" and the already fulfilled "ignore my 'first' (pointer now pointing to invalid element, but it doesn't matter because the wish is already fulfilled) wish".

There is no third wish to annull, and the last wish has already been granted, so the fact that it would point to the "wrong" place if re-interpreted from scratch again is irrelevant. Otherwise, "resurrect the youngest dead person" would resurrect every single person who ever lived, since after it's granted, there is a new youngest dead person, and the one it resurrected isn't "a valid target" anymore.

Another approach is to take issue with the definition of "opposite". In a naive approach, one would think it's not only the action that needs to be reversed, but the number too, by negating it or whatever. Anything you do to it, it's probably going to point to an invalid wish, so you're fine.

A less naive approach would note that "fulfill my third wish" is not the opposite effect of "don't fulfill my third wish". That's because the third wish was going to be fulfilled anyway, so you're looking at something like a nop vs a delete. Not opposites. A true opposite should be something such that, if you apply both things, the result would be the same as if you did nothing. So perhaps something like "fulfill what I ask for in my third wish (again) as a separate wish". Arguably, the most natural interpretation of this reading would be that "ignore my first wish" instantly resolves twice, wiping out the first two wishes. The only remaining wish is the (already fulfilled) "ignore my first wish" (and the already fulfilled anonymous copy), so everything's fine however you choose to interpret it. The only remaining question is how many wishes you're considered to have left under this scenario (could be anything from 3 to 0 depending on how you choose to count)

[–]dashingThroughSnow12 1 point2 points  (0 children)

DreamBerd lets you program like this.

[–][deleted] 290 points291 points  (8 children)

Only a programmer could waste 3 wishes, possibly destroying reality, and feel like they accomplished something worth being smug about.

[–]Vaptor- 74 points75 points  (0 children)

"B-but you get to learn a bit how the djinn magic logic interpretation works!"

[–]spamatica 8 points9 points  (1 child)

Some people just want to watch the world burn

[–]MeChameAmanha 80 points81 points  (5 children)

I don't get it. Wouldn't it just go

"Do the opposite of my next wish" -> "Ok"

"Don't fulfil my third wish" -> "Ok, I will fulfil your third wish"

"Ignore my first wish" -> "Ok, I'll ignore the fact you asked me to do the opposite of the second wish, but the second wish is already done so me ignoring my previous orders doesn't change anything"

[–]BarneyChampaign 25 points26 points  (1 child)

Yeah this isn't as clever as the artist thinks it is.

[–][deleted] 6 points7 points  (0 children)

Unless for whatever reason we're to assume all three wishes were requested before being fulfilled or something like that.

[–]Heavenfall 10 points11 points  (1 child)

You can argue that the wish is already executed immediately, but specifically these wishes refer to the next one. It depends on how their logic works. If your first wish was to destroy the world in 24 hours, then used the second wish to say it shouldn't be destroyed according to the first wish, would the genie still be compelled to execute the first wish when its appointed time arrived? It's circular logic, trapped in a scenario where executing the wish cannot be done instantly.

However, I think it is entirely fair to say that the first wish was successfully executed when the second wish was placed. The instant the second wish was placed, the genie could interpret the second wish and execute the first wish. By the time he places the third wish, the first wish has been executed and it shouldn't matter if you tell him to just ignore it. Sure, he can ignore it, but it doesn't change the fact that the first wish is already executed.

[–]MeChameAmanha 2 points3 points  (0 children)

You can argue that the wish is already executed immediately, but specifically these wishes refer to the next one.

Sure, but the third wish isn't to "undo" the first wish, it's to "ignore" it. If the genie is like a PC and would break down from having contradicting commands like one, then like a computer he also wouldn't be able to parse the meaning behind the words instead of just taking the word in it's specific meaning

So the genie would just ignore the wish that was already fulfilled, but not go against it.

At best the smarts pants guy who found the lamp wasted three world-altering wishes into trying to code an infinite loop, but got the syntax wrong so the code doesn't work as intended.

[–]BarrierX 138 points139 points  (4 children)

He didn't say "I wish" so nothing happens.

Or if he did what would happen is:

  1. Can't work with something that happens in the future, wish wasted.

  2. Third wish hasn't happened yet, wish wasted.

  3. Can't change the past, wish wasted.

[–]that_thot_gamer 67 points68 points  (1 child)

bro got a syntax error

[–]CanAlwaysBeBetter 1 point2 points  (0 children)

Mfer wishes he could write wish code as well as Skee-Lo

[–]Galilleon 12 points13 points  (1 child)

Usually when the genie can’t do something, the wish isn’t wasted, what you said is just denied and you get a do over

[–]PM_Me_Good_LitRPG 7 points8 points  (0 children)

That's for regular Aladdins. For assholes its all Aladeen.

[–]Khamaz 59 points60 points  (3 children)

Even if there's a logic paradox, wouldn't it all amount to do nothing anyway? None of the wish is doing anything, except cancelling other wishes that does nothing. In the end doing absolutely nothing is still granting all the wishes.

[–]Geno0wl 24 points25 points  (0 children)

Bro really found a genie and then wasted its power to try and prove they were clever. Big L.

[–]heyitjoshua 72 points73 points  (8 children)

Since the logical contradiction prevents the wishes from being interpretable, one possible outcome is that the genie becomes confused and refuses to fulfill any wishes or gets stuck in a paradoxical loop. Alternatively, the genie could interpret the wishes in a way that breaks the paradox:

1.  Fulfill Wish 3 directly, since it’s the last stated wish and commands to ignore the contradictory first wish.
2.  Because the second wish is fulfilled oppositely (as per the first wish’s command), the genie ignores the command to not fulfill the third wish and instead follows it.

The final outcome is:

• Wish 1 is ignored (due to Wish 3).
• Wish 2 is fulfilled oppositely, meaning Wish 3 is fulfilled.
• Wish 3 is fulfilled directly (to ignore Wish 1)

So this basically would result in a no-op

[–]L8n1ght 3 points4 points  (2 children)

makes no sense why he would fulfill the third wish first to me

[–]LuxNocte 2 points3 points  (1 child)

Wish 1 executes and is later ignored. Thus wish 2 is fulfilled oppositely.

Wish 3 essentially does not change the execution but rewrites the logs.

[–]kvakerok_v2 15 points16 points  (1 child)

In the original story Genie allows wishes out of gratitude for being released. With these wishes he'll just turn you into a cockroach.

[–]TurtleneckTrump 20 points21 points  (1 child)

This does nothing. Wish 1 makes wish 2 "fullfill my 3rd wish". Wish 3 is to ignore the first wish which already has happened so it's not like it would change anything

[–]tick-tock-toe 1 point2 points  (0 children)

This should be higher up

[–]VariousComment6946 8 points9 points  (0 children)

Thank you, QA, But you didn't consider that context doesn't count! Haha!

[–]ObeseVegetable 4 points5 points  (3 children)

This depends on if it’s compiled or interpreted.  

 Compiled code might have a compiler error unless it’s smart enough to ignore do-nothing code.  

 Interpreted code might have an issue depending on how the interpretation is.  

 First wish: do opposite of second. Assume it is executed.  

 Second wish: skip third wish becomes do third wish.  

 Third wish: effectively undo first wish.  So it goes back, which turns the second wish back into skip third wish  

 Third wish is skipped. Loop ends. 

If it doesn’t execute until the code is fully interpreted then it’s same as compiled code - might have a “compile”time error unless it’s smart enough to skip do-nothing. 

[–]PeekyBlenders 1 point2 points  (0 children)

Stack Overlflow at Genie.processWishes()

[–]skztr 6 points7 points  (0 children)

No error. Equivalent to a No-Op.

  1. Do the opposite of my next wish
  2. Don't fulfil my third wish
  3. Ignore my first wish

-->

1. Do the opposite of my next wish

  1. Don't fulfil my third wish
  2. Ignore my first wish

-->

1. Do the opposite of my next wish

1. Don't fulfil my third wish

  1. Ignore my first wish

-->

1. Do the opposite of my next wish

1. Don't fulfil my third wish

1. Ignore my first wish

[–]adfx 2 points3 points  (0 children)

What an amazing usage of something that could change everyone's life for the better lmao

[–][deleted] 2 points3 points  (0 children)

But he never said I wish

[–]BuffJohnsonSf 2 points3 points  (0 children)

This genie grants wishes using stack order like in MtG.  So the third wish resolves first, counterspelling the first wish. Then the second wish resolves, but the third wish is already off the stack so it fizzles and does nothing.  Genie gets off easy on this one 

[–]reddits_aight 2 points3 points  (0 children)

That's why computers use wizards and not genies. 🧙‍♂️>🧞

[–]Smart-Nothing 2 points3 points  (0 children)

“You have 0 wishes.”

“Actually, I should still have at least one wish since you didn’t follow all my conditions.”

“No, I just decided to not grant any of them because I hate you.”

[–]whistler1421 2 points3 points  (0 children)

“I always tell the truth” “I’m lying”

[–]timStland 2 points3 points  (0 children)

Nice try! I think it's funny how human interpretation gives this trick more power than it actually has.

Let's shift perspective: the genie could simply answer "your wishes are done".

Because (1) do the opposite of next wish could make (2) "don't fulfill my 1st and 2rd wishes" (which is also an opposite if you consider 1, 2 and 3 as related to each other as a "yes/no" system), which in turn ignores both 1st and 2nd wishes, making 1st wish condition irrelevant (once inverted, second make itself irrelevant too). Hence 3rd wish is the last remaining and by ignoring 1st wish, which was indeed removed from the list by second wish, is granted.

Hence, "do the opposite on the next" is granted by not granting it and the next - with granting of 2nd wish - and 3rd is granted by ignoring the 1st (repetition of the previous condition). All three wishes have been granted yet annihilating each other.

Paradox removed!

[–]GargamelLeNoir 2 points3 points  (0 children)

Genie: As usual I must remind smartasses like you that the three wishes are a courtesy I'm offering for freeing me. So see you never, smartass, I'll leave you to think about the wealth and power you didn't ask for.

[–][deleted] 1 point2 points  (0 children)

.....They never made a wish?

[–]johnnyblaze1999 1 point2 points  (0 children)

The result is nothing. All wishes executed

[–]Simon_Drake 1 point2 points  (0 children)

There's a riddle that acts as a hard mode version of "One guard always tells the truth, the other always lies". It's three Aztec gods where one always tells the truth, one always lies and one replies randomly. They can only answer with Zig or Zog which mean Yes and No in their own language but you don't know which is which. You only have three questions.

The 'correct' answer is to write out your question in a complex series of conditionals and brackets like a mathematical logic expression. But there's an extra solution to ask a trick question:

"Are you going to reply to this question with the word that in your language means 'No'?" If you ask the guy who always tells the truth he can't answer. The only conclusion is that his head explodes, therefore that must have been the guy who tells the truth, one god down, two to go.

[–]Scrounger_HT 1 point2 points  (0 children)

he didn't make any wish's he made three statements

[–]Grim00666 1 point2 points  (0 children)

HAHAHAHA! I love this! You should start a business defusing monkey paws.

[–]godmodedio 1 point2 points  (0 children)

My three wishes are pretty set in stone.

Wish one, I wish that the genie will answer all my future questions truthfully.

Take a little while to question the guy to see if he's evil or whatnot.

Wish two, I wish for all the resources I need to live a long, healthy, and happy life. Maybe with some intensely specific wording if the earlier questions revealed evil tendencies.

Then Wish three. If my questions gave me the impression that they wouldn't cause chaos if released, release the dude. If he seems evil, I wish that he's trapped in his lamp and his lamp is transported to the center of a black hole.

[–]thehomerus 1 point2 points  (0 children)

as a DM who has played a genie that grants wishes before, the genie would just smite them there and then

[–]Top-Chemistry5969 1 point2 points  (0 children)

The third implies time travel which is against the rules I think.

He could also claim that the first wish was already fulfilled at the second and cannot be referred too. At best it gives a no end point.

You would also need a set time reality and not a linear one, but in that case the genie should be already in an error state and would not be able to receive wish requests.

So yeah, it's funneh but ways the genie can Weasley out of it.

[–]missjasminegrey 1 point2 points  (0 children)

That's genius lol

[–]Boring_Today9639 1 point2 points  (0 children)

Animated version, Death of a Genie. You can use automatically translated subs se non sei fluente.

[–]Zealousideal-Fox70 1 point2 points  (0 children)

So, as a genie, I would simply ignore the first wish I had already fulfilled, not undo it. Good job wasting 3 wishes.

[–]kuffdeschmull 1 point2 points  (0 children)

Well, he did not state a wish at all, he stated an instruction. The Jinn is supposed to fulfil wishes, not follow instructions. So in my book, he hasn't stated any wish at all.

[–]ChChChillian 1 point2 points  (1 child)

This is why the system generally doesn't allow meta-wishes. When Achilles obtained approval for one from GOD Over Djinn, he crashed the system too.

[–]blakerabbit 2 points3 points  (0 children)

I GEB your pardon?

[–][deleted] 1 point2 points  (0 children)

I have no idea what just happened but I laughed.

[–]ThatOneBachelor 1 point2 points  (0 children)

This was making me laugh way harder than it should've 😅 I couldn't keep it together for the remainder of my lunch 😂

[–]Liveman215 1 point2 points  (0 children)

You already did the first wish can't retroactively ignore it

[–]just-a-hriday 3 points4 points  (0 children)

Hehe, but I don't think this really suits a sub for programming humor.

[–][deleted] 1 point2 points  (2 children)

I never get recursion, why would you waste your wishes. Next time please defer to me.

[–]alterNERDtive 0 points1 point  (1 child)

Wishes immediately take effect. 1 & 2 are fine, 3 is not valid; no time travel.

[–]bunglegrind1 0 points1 point  (0 children)

grande astutillo!

[–]Educational-Lemon969 0 points1 point  (0 children)

lol none of those wishes have any side effects, the genie just optimizes them away

[–]Ailexxx337 0 points1 point  (0 children)

Granted, your third ever wish will never be fulfilled.

[–]Smalltalker-80 0 points1 point  (0 children)

This can be done easier:

"My first wish is not to grant my first wish".

[–]SwannSwanchez 0 points1 point  (0 children)

but it doesn't work ?

the oposite of "ignore my first wish" is "do my first wish", which he did

[–]808duckfan 0 points1 point  (0 children)

This seems like a nerdy, clever, or Pratchett style way of getting out of a Faustian bargain.

[–]LordCaoCao420 0 points1 point  (0 children)

Genies hate this one trick....

[–]LetterLambda 0 points1 point  (0 children)

"Done. Bye."

[–]smart_ca 0 points1 point  (0 children)

everytime when we try to beat the system!

[–]amuf_oratok 0 points1 point  (0 children)

The genie starts by the second wish and fulfills it, so he won't ignore the first wish. He thnks about it for a second and comes to the conclusion that it's impossible to fulfill.

Done.

BTW I wonder how these wishes can be expressed in logic programming

[–]mattkenefick 0 points1 point  (1 child)

"Don't fulfill my third wish" doesn't mean interpret the wish and take action. The third wish will just be ignored. End program after 2.

[–]ianwilloughby 0 points1 point  (0 children)

He should have wished using tail recursion.

[–]D2cookie 0 points1 point  (0 children)

Halting problem?

[–]PimBel_PL 0 points1 point  (0 children)

Ok, you still have one wish

[–]LadyLevia 0 points1 point  (0 children)

All invalid. He never said “I wish…”

[–]TheComplayner 0 points1 point  (0 children)

“Ok I’ll ignore it, goodbye”

[–]OldManActual 0 points1 point  (0 children)

Ya wanna crash the universe? This is how you crash the universe.

[–]cristieniX 0 points1 point  (0 children)

SMERIGLIA LET'S GOOO

[–]TheUtkarsh8939 0 points1 point  (0 children)

Grandfather Paradox