HN user

daivd

641 karma
Posts19
Comments61
View on HN
tenfifty.io 7y ago

Using Pytorch and Pyro to Prove Poland Was Robbed at the 2018 Chess Olympiad

daivd
3pts0
github.com 10y ago

Awesome-aleph-0: A curated list of recursively self-referring curated lists

daivd
2pts0
ideone.com 12y ago

Online executable Python solution to the Tuesday boy problem

daivd
2pts10
fendrich.se 12y ago

Big Programming, Small Programming – Glow, the language

daivd
126pts62
fendrich.se 13y ago

A Better Soylent - Designing a Simple, "Optimal" Nutrition Shake

daivd
1pts0
fendrich.se 13y ago

A better algorithm for rotating logs

daivd
2pts0
fendrich.se 13y ago

Pre-programming Mental Silence Meditation With Entrainment

daivd
2pts0
fendrich.se 13y ago

Compile Time Loops in C++11 With Trampolines and Exponential Recursion

daivd
3pts0
fendrich.se 13y ago

C++11 and Boost - Succinct like Python

daivd
201pts164
fendrich.se 13y ago

Use Zsh

daivd
164pts114
news.xinhuanet.com 13y ago

Following arrest of Pirate Bay founder, Sweden gives Cambodia $60M in extra aid

daivd
3pts0
gurgeh.github.com 14y ago

Selfspy - Log everything you do on your computer

daivd
7pts0
fakeguido.blogspot.com 14y ago

Guerilla - My attempt to build a strong AI

daivd
9pts0
prezi.com 15y ago

Radiation from various sources, to scale in Prezi

daivd
1pts0
fakeguido.blogspot.com 15y ago

Rescuing a hosed system using only Bash

daivd
7pts1
fakeguido.blogspot.com 15y ago

Milliblogging - An essay in 7 tweets

daivd
1pts0
fakeguido.blogspot.com 16y ago

Digital immortality, true AI and the destruction of mankind

daivd
10pts7
fakeguido.blogspot.com 16y ago

Solving Sudoku with genetic algorithms

daivd
41pts14
news.ycombinator.com 16y ago

Ask HN: Board member compensation?

daivd
4pts0

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.

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.

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?

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.

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.

I plan to sneak in something similar with a capable type system and contracts for stuff that you can't express in the types. That way you could "one day" use a solver like Z3 and start proving or disproving some of the tractable contracts, without having to even change the programs. A bit like LiquidHaskell.

Not exactly dependent types, but practical, I think.

I do like an expressive high-level encoding like that, but 1) I just needed a silly example to show what pipes are. In practice you would probably use higher-order library functions (or components) like group for the same thing. 2) In my experience, very compressed expressions can be hard to modify in certain directions. Practical stuff like printing, logging or storing progress every X seconds, which is a small modification in a for-loop, can be a hassle.

It is not quite that simple. The government will have to say yes, since this is a big infrastructure project that wants land next to existing highways. I don't know much about politics, but I do know that, sadly, the net gain for the country over time is not a weighty criterion in such decisions.

AFAIK you don't pay a Windows tax on most laptops. All the adware, crapware, trial software and whatnot that are pre-installed pay for the Windows license. This is why the few Linux laptops that do exist are not really cheaper.

Diagonal proofs like the Halting Problem say that in general you can not prove properties about all programs in a Turing complete language. Thus, there is a class of troublesome programs.

Likewise there is obviously a great number of programs in Turing complete languages that you can prove properties about. Thus, there is a class of pleasant programs (or [program, property] pairs).

We do not know for certain how many of the programs that we want to write that is in each class. I would venture a guess that >99% of all programs ever written are in the "nice" class. If it is really impossible to reason about some property of a program, why would you think it works?