Better HN
topnewbestaskshowjobs
Log inSign up

daivd

641 karma · joined Oct 21, 2009 (17y ago) · 82 submissions

Submissions

1.

Using Pytorch and Pyro to Prove Poland Was Robbed at the 2018 Chess Olympiad(tenfifty.io ↗)

3 points · by daivd · 8y ago · discuss

comment 9y ago · link · parent

Thanks for this one. Extremely well written.

comment 9y ago · link · parent

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.

4.

Awesome-aleph-0: A curated list of recursively self-referring curated lists(github.com ↗)

2 points · by daivd · 11y ago · discuss

comment 11y ago · link · parent

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 12y ago · link · parent

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 12y ago · link · parent

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 12y ago · link · parent

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 12y ago · link · parent

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 12y ago · link · parent

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.

11.

Online executable Python solution to the Tuesday boy problem(ideone.com ↗)

2 points · by daivd · 12y ago · 10 comments

comment 12y ago · link · parent

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 13y ago · link · parent

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 13y ago · link · parent

No, you are correct. The oil money is hardly spent at all. It is invested for future security.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

Thanks for the list of related projects!

comment 13y ago · link · parent

1. Yes, the linear typing for mutable data is inspired by Clean. 2. I look at Shen from time to time. It looks nice, but I have never gotten around to play with it.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

If Internet comments were always this encouraging, the world would be a better place :).

comment 13y ago · link · parent

Dammit.. I checked to see that Glow was not taken :). Almost every name, that is not an outright racial slur is already used. Still, Java and Javascript are completely different languages and that has never lead to much confusion..

comment 13y ago · link · parent

Yep, it is influenced by CSP. It is implicit in the text, since the primary influences (Pipes, Go, etc) are directly influenced by CSP.

comment 13y ago · link · parent

Visual programming used to leave me completely cold, but with the emergence of tablets and the promise not to make _everything_ visual, I hope to convince people otherwise. If you have not seen Bret Victor's brilliant "Future of programming" http://vimeo.com/71278954 and "Inventing on principle" http://vimeo.com/36579366, I highly recommend it.

I promise not to make the Haskell struct mistake.

24.

Big Programming, Small Programming – Glow, the language(fendrich.se ↗)

126 points · by daivd · 13y ago · 62 comments

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

It has turned out to be quite hard to implement higher-level cognitive phenomena directly, so they decrease level until they find one they can implement and then try to get emergent properties from there.

comment 13y ago · link · parent

He is physically large. Very large.

comment 13y ago · link · parent

I have yet to find a single one that is anywhere close to Google Reader :(
123