Lurker News
Can be super esoteric or super generalized, I love it when I get them, or when I just learn something new.

Comments (852) 364 threads

Earlier comments
wging1 reply#
Yes.

(ok, this one's actually a logic joke...)

NortySpock1 reply#
Ah, logic jokes...

Three philosophers walk into a bar, and the bartender asks: "Do you all want a drink?"
The first one says "I don't know."
The second one says "I don't know."
The third one says "Yes!"

linux26474 replies#
Ugh this is why I hated logic problems in school. Anyone care to help a poor soul understand the meaning of this joke?
codetrotter#
The bartender asked if all of them wanted a drink.

Logician number one does not know whether logicians number two and three want a drink or not, so he can’t say yes. If he did not want a drink though, he could say no because then it would not be true that they all wanted a drink. But he wants a drink. Therefore he says he don’t know, because it will depend on whether the other two want drinks or not.
Same applies to logician number two. She is still missing info about the third logician and therefore says she doesn’t know.
The third logician now knows that both of the other two want drinks, and so can answer that all of them want drinks.

th0114nd#
It’s a short circuiting conjunction. Consider `aliceWantsADrink && bobWantsADrink`. If Alice doesn’t want a drink, she knows it’s not the case that both of them want a drink. Since she says “maybe” instead of “no” she signals to Bob that she wants a drink, and so he concludes they both want a drink.
wging1 reply#
The question is "Do you all want a drink?" They're all answering with the logical meaning of "all", where it's yes if and only if every single one of them wants a drink, not the common meaning. Their responses are the value of the predicate `(A wants a drink) AND (B wants a drink) AND (C wants a drink)`.

If either of the first two didn't want a drink, they would be able to answer "no". They each started off knowing one of the terms in that logical AND above. (They know their own preferences are either "yes" and "no" but they aren't yet aware of the others' preferences, and they each know the others know that.)
For example, if (A wants a drink) is false, then the whole predicate is false. So if A didn't want a drink, A would've said "no". But instead they say "I don't know". They could only have not known if they actually do want a drink but are unsure whether both of the others also do. But after the first two people each say something that reveals they do want a drink, the third person "C" knows that:
1. A wants a drink (or they would have said "no")
2. B wants a drink (or they would have said "no")
3. C wants a drink (knowledge of their own preferences)
and finally has enough information to conclude that the overall predicate is true.

Continue this thread — 1 reply

erikerikson1 reply#
Seriously?

The first hadn't heard from the others but wants a beer so can't deny the universal.
The second hadn't heard the last but wants a beer so can't deny the universal.
Neither the first or second could deny the universal so therefore they want beer and so does the last so that one can reply yes.
/Sigh, I explained it.
[Edit: and then noticed three others had already but I was too incensed to read beyond the ask. /Sigh]

Continue this thread — 1 reply

cm2187#
Self-confidence, as a programmer, is when starting a new project, storing the transaction ID in an int64 rather than an int32.
Sebb767#
Read that one a long time ago:

Each program has at least one big. Also, a program can always be shortened by a line. Therefore, every program can be shortened to a single line that doesn't work.
Also:
Why do Java programmers wear glasses?
Because they can't C# ;)

Load more comments