Better HN
topnewbestaskshowjobs
Log inSign up

acidbaseextract

576 karma · joined Aug 7, 2016 (10y ago) · 160 submissions

Submissions

comment 10y ago · link · parent

A whole post about hash tables and he doesn't mention the real reason trees are better than hash tables: lower variance!

> Hash tables become full, and bad things happen

The bad thing is not a crazy long probe or even rehashing to enlarge the table—it's that some random individual insert is stuck eating the entire cost of rebuilding the table. For many applications, I'm happy with a slightly higher cost per operation in return for predictable performance.

> Hash functions are slow

Great, another unmentioned footgun - hash functions are hard. For example, the hash function he provides doesn't use a prime number of buckets. Oops, non-uniform input data in combination with unlucky bucket counts can generate high numbers of collisions.

Writing a comparison function to put your data in a tree is pretty stupidproof!

comment 10y ago · link · parent

Yeah I totally agree. I tried to read some of the guy's other articles as the ideas are really interesting, but man are they buried in jargon.

comment 10y ago · link · parent

I think his conclusion is more subtle than that. It's not that getting out of the way of the economy means it will all work out—far from it. Rather, continuing to buy into the magical thinking of the current priest-kings (i.e. state-directed action) opens the doors to much nastier alt-priests (e.g. totalitarianism).

The specific process? Further buying into our current priest-kings puts pressure on them to make their magic work. Magical thinking eventually fails, inevitably. Then the historical process of succession of priests kicks in because "we need the eggs" (to use the article's phrasing), and the more we need the eggs, the more nasty the alt-priests we'll turn to in search of eggs.

comment 10y ago · link · parent

Because then the reviews for the connected PRs ends up being hideous to track.

Either you can:

• Submit the PRs one at a time... which is awful. Why not work on them in parallel?

• Submit your series of PRs all at once, then you have to set the PR base of each one to the following one to make the github diff view actually reasonable for reviews. THEN, when you have a code change based on feedback on the first PR, you have to merge it into all the later dependent PRs. THEN, you have to have to jiggle the PR bases very carefully when you're landing the PRs, otherwise it will merge them all into each other, and you end up with one ginormous commit landing—defeating the point of the small commits. AND unless you're using a squash based workflow, you'll end up with that giant merge mess in the middle of your commit history.

comment 10y ago · link · parent

The contempt for people outside security, and their perspectives, is a huge problem. Another great article, "Infosec's Jerk Problem" (2013):

http://adversari.es/blog/2013/06/19/cant-we-all-just-get-alo...

comment 10y ago · link · parent

Dang, that is sad. Data viz research sounds fun and useful. Thanks for the reply!

comment 10y ago · link · parent

Just out of curiosity, why'd you leave? MSR sounds pretty great.

comment 10y ago · link · parent

Watch that youtube link in my sibling comment first, but I actually wanted to take a crack at an answer. What's the change in mass, ∆m, as the star cools? We'll assume the mass of the neutron star is 1.5 solar masses.

    E = mc^2
    ∆m = ∆E/c^2
So really, what's ∆E? A hyper hand-wavy estimate:

    ∆E = Q = mc∆T (c being specific heat)
Specific heat by mass is really hard to predict, but by moles it is fairly constant, well within an order of magnitude. So we'll discuss mass in moles.

    m = neutron star moles
    m = (mass of neutron star / mass of neutron) / Avogadro's #
    m = 2.9580163e33 mol

    c = 24 J / (mol * K)

    ∆T = 1e12 K - 1e6 K
→

    ∆E = 24 * 2.9580163e33 * (1e12 - 1e6) J = 7.0991681e45 J
Substituting that back into the original, as a neutron star cools:

    ∆m = 7.0991681e45 J / c^2 = 7.89888982e28 kg
Which is like 2.6% of the mass of the original star, so a pretty solid chunk. But that number is pulled out of my ass—I am not a physicist.

But there are even more weird effects going on, due to the warping of gravity the mass of neutron stars can be up to 20% less than you'd expect based on its baryonic (neutron) constituents (questions 4 and 7):

https://www.astro.umd.edu/~miller/teaching/questions/neutron...

comment 10y ago · link · parent

"The True Nature of Matter and Mass" - https://www.youtube.com/watch?v=gSKzgpt4HBU

This whole channel will be up your alley, but this video and "The Real Meaning of E=mc^2" one directly answer your question.

comment 10y ago · link · parent

Nima Arkani-Hamed is an amazing speaker, and if you're interested in modern physics I highly recommend watching his talks. A great place to start is his 5 part Messenger lecture series. It starts with the discovery of quantum mechanics, and the last 3 talks all cover different frontiers of fundamental physics today.

http://www.cornell.edu/video/playlist/nima-arkani-hamed-on-f...

Introduction ends and Nima starts about 4 minutes into the first lecture. :)

123456