Recent submissions

Comment · 5 years ago
Comment · 10 years ago
Comment · 11 years ago
Thank you, Eliezer. It's been a great run and the last few weeks have been indeed special
Comment · 12 years ago
Hi,

Quick comment on item 2.3: SHOULD NOT update a var using loops or conditions.

you conclude that this expression is the best option: val sum = elements.map(_.value).sum

This expression is not equivalent to the previous options in performance and memory, as the map expression will create a entire new sequence.

For large sequences, a better option is to write: val sum = elements.view.map(_.value).sum

Comment · 12 years ago
Comment · 12 years ago
According to site you're citing, the nomination was actually an attempt at satire by a Swedish MP:

"Apparently though, Brandt never intended the nomination to be taken seriously. Brandt was to all intents and purposes a dedicated antifascist, and had intended this nomination more as a satiric criticism of the current political debate in Sweden."

No need for complex explanations when a simple one is given.

Comment · 13 years ago
For the interested, some links to Bayes' theorem: http://en.wikipedia.org/wiki/Bayes'_theorem

http://yudkowsky.net/rational/bayes

Useful if you want to know (or need a good way to explain) what a posterior probability is and how it's different from a prior probability

Comment · 13 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton