Recent submissions

Comment · 9 years ago
Thanks for this one. Extremely well written.
Comment · 9 years ago
I also use org-mode for my daily journal. Have been for about a year and I'm very happy with it. I used to use Evernote, but I like the idea of keeping it to myself with encrypted backups better.
Comment · 11 years ago
It is not a conventional quantum computer. You cannot use it to factor numbers. You use it to find approximate solutions to optimization problems.
Comment · 12 years ago
I have never quite understood all these desktop emotions. I run Kubuntu, but almost never interact with any desktop features. What is it in your workflow that requires you to interact with Gnome/Unity? (just curious)
Comment · 13 years ago
I whipped together something here, before I saw that someone else did it too: http://ideone.com/jyPOhs

It is the most counter-intuitive statistic problem I know (worse than Monty Hall), it trips everyone up at first.

No problem about the stubborness ;)

Comment · 13 years ago
The wiki article is not valid, since it considers a subtly different problem than the one I do. If you read the comment at the top of the code, you will see that I changed the question to be less ambiguous.

In the problem I pose, the person does not randomly come forward and tell me "I have a boy born on a tuesday". In my problem I ask random people who I know have two children if they have "at least on boy born on a tuesday" until someone says yes.

Comment · 13 years ago
Actually you are still wrong.

Try something easier, for example two dice. The probability to roll 1 1 is less than to roll 1 2, because 1 2 can be rolled either by first rolling a 1 or a 2, while 1 1 can be rolled only by first rolling a 1. That information is used often in dice games like backgammon.

Same with children: BT BT can only be "rolled" if your first child is BT, whil BT BW can be "rolled" if your first child is either BT or BW.

Do you see?

Comment · 13 years ago
No, it does not exclude that possibility (print the final list of pairs if you want to check). The calculation is correct. The result is counter-intuitive to almost everyone, which is why I made the program, so you can convince yourself.
Comment · 13 years ago
One subset for each TLD would be nice. Or, if you can afford more CPU-power, per language, using a good open language detector.
Comment · 13 years ago
I have a fundamental issue with bitcoins that I have not seen anyone address. Sooner or later a better bitcoin will be invented. One that can perform transactions faster, or is more anonymous or where mining for the coin helps some nice project (SETI@home, math proofs, protein folding, etc), or something completely different. When an alternative better currency catches on, at some point it will become obvious that bitcoins will be obsolete and the value should suddenly be 0 again.

It is the nature of technology that bitcoins will someday become MySpace.

I am open to be convinced otherwise by someone knowledgeable.

Comment · 13 years ago
No, you are correct. The oil money is hardly spent at all. It is invested for future security.
Comment · 13 years ago
I agree that syntax is more important than us "rational" programmers like to let on. The syntax will be similar to Python, but nothing fantastic.

I think switching the usual meaning of = and == will be confusing. O'Caml uses = and == for deep and shallow comparison respectively and <- for assignment. That is a possibility.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton