Recent submissions

Comment · 4 years ago
Comment · 4 years ago
Comment · 4 years ago
The incentive to do what exactly? Break up a good marriage to get half of the common assets (minus many many expenses)? How is that better in any way?
Comment · 4 years ago
Comment · 4 years ago
All the other answers in the thread focus on maximizing head-to-head score. I'll try to answer the question for the goal of greedily maximizing your own score.

Using the same definitions from the article, we now have (for a 2 person game):

  Q_i = -P_i + (1 - sum_{j=1..i}(P_j))
Where the first term is for the case of choosing the same number as your opponent, and the second when it's larger than your opponent.

Now solve the same set of equations, but with our new Q_i. Solving Q_1 = Q_2 analytically is easy, then Q_2 = Q_3 and so on... You get P = (1/2, 1/4, 1/8, ...)

So that's the result for this specific 2-player game. You could also ask about the 2-player game with tie=t for any negative t (the above is for t=-1). Now we get

  Q_i = t*P_i + (1 - sum(P_j))
Again, solving Q_i=Q_{i+1} is easy and gives

  P_{i+1} = (t / (t-1)) * P_i
For example, if t=-2 then (using the fact that all P_i's sum to 1): P = (1/3, 2/9, 3/27, ...)

I did not try to tackle the 3-player game with tie=t.

Comment · 4 years ago
The path with that label is blocked unless the condition is fulfilled. I don't think it relies on any prior knowledge (at least nothing specific I can think of)
Comment · 4 years ago
On the contrary, it should be on by default for every build configuration! If you move to a newer compiler version and the compilation breaks, then you just saved yourself valuable debugging time. The alternative is that the new compiler has a new optimization that causes your code to break in runtime. You can always disable specific warnings if you think they're not relevant for your code.
Comment · 4 years ago
That really depends on the local culture. Don't Assume all cultures are like yours.
Comment · 4 years ago
GP had a typo, it's 109 houses.
Comment · 4 years ago
> Musk signed a contract with an exit clause.

There are some exit clauses (like Musk not getting financing from his banks) but they don't apply here. Specifically, there's no exit clause for the bot percentage.

> If it was a promise it could be written on a hallmark card.

Are you just trying to change the meaning of the word promise? Most people would agree that if you break a promise you pay a price - it might be a social one in case of a promise between friends. Or it might be a financial price in case of a written & signed promise, a.k.a a contract.

Comment · 4 years ago
The music is top-notch, especially the timing of the drums with the presentation!
Comment · 4 years ago
> Breastfed children tend to have less stomachaches.

Maybe on average, but specific cases can vary wildly. Some foods that the breastfeeding mother consumes can cause issues. Milk, soy, and caffeine are known troublemakers - but good luck finding out which one is the source of stomach issues for your baby!

Comment · 4 years ago
It's already in the article.
Comment · 4 years ago
Follow-up question: what if other countries follow suit, especially ones that don't use a Latin-based alphabet? Egypt is formally called "جمهورية مصر العربية" in its native language - should that be recorded as the ISO Full name for EG?
Comment · 4 years ago
Turkey -> Türkiye

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton