bshlgrs | 4 years ago | on: A surprisingly hard CS problem: sums of square roots (2018)
bshlgrs's comments
bshlgrs | 4 years ago | on: A surprisingly hard CS problem: sums of square roots (2018)
bshlgrs | 4 years ago | on: A surprisingly hard CS problem: sums of square roots (2018)
bshlgrs | 8 years ago | on: Triplebyte Raises $10M from Initialized Capital, Marissa Mayer and Paul Graham
bshlgrs | 8 years ago | on: Launch HN: Mirror (YC W17) – turn a selfie into emoji that look like you
I installed it but wasn't too impressed with the quality of the emoji. (This could be because I look kind of weird; eg I have pink hair.) It's really easy to take photos and see how the emoji look; I encourage other people to try that out.
I'm excited to see whether this technology ends up working well in future.
bshlgrs | 8 years ago | on: My Institutional Review Board Nightmare
bshlgrs | 8 years ago | on: American Chipmakers Had a Toxic Problem, Then They Outsourced It
> 'Dirty' Industries: Just between you and me, shouldn't the World Bank be encouraging MORE migration of the dirty industries to the LDCs [Least Developed Countries]? I can think of three reasons:
> 1) The measurements of the costs of health impairing pollution depends on the foregone earnings from increased morbidity and mortality. From this point of view a given amount of health impairing pollution should be done in the country with the lowest cost, which will be the country with the lowest wages. I think the economic logic behind dumping a load of toxic waste in the lowest wage country is impeccable and we should face up to that.
> 2) The costs of pollution are likely to be non-linear as the initial increments of pollution probably have very low cost. I've always thought that under-populated countries in Africa are vastly UNDER-polluted, their air quality is probably vastly inefficiently low compared to Los Angeles or Mexico City. Only the lamentable facts that so much pollution is generated by non-tradable industries (transport, electrical generation) and that the unit transport costs of solid waste are so high prevent world welfare enhancing trade in air pollution and waste.
> 3) The demand for a clean environment for aesthetic and health reasons is likely to have very high income elasticity. The concern over an agent that causes a one in a million change in the odds of prostrate[sic] cancer is obviously going to be much higher in a country where people survive to get prostrate[sic] cancer than in a country where under 5 mortality is 200 per thousand. Also, much of the concern over industrial atmosphere discharge is about visibility impairing particulates. These discharges may have very little direct health impact. Clearly trade in goods that embody aesthetic pollution concerns could be welfare enhancing. While production is mobile the consumption of pretty air is a non-tradable.
bshlgrs | 9 years ago | on: Mapping Strings in C++
I don't at all believe that C++ can only iterate through 2000 strings a second. Python takes an imperceptibly small time to iterate through an array of a million strings when I test it out in my repl, and I imagine C++ would either be as fast or somewhat faster. This number is so ridiculous that it makes me very skeptical of the rest of the article.
bshlgrs | 9 years ago | on: List of falsehoods programmers believe in
bshlgrs | 9 years ago | on: Poor kids who do things right don't do better than rich kids who do things wrong
bshlgrs | 9 years ago | on: Poor kids who do things right don't do better than rich kids who do things wrong
The graph used makes it really hard to see what the actual distributions of overall income are. If you make, say, a bar graph of the income distributions, you'll see that poor college grads do much better than rich high school dropouts. I made such a graph here:
https://docs.google.com/spreadsheets/d/112K9ejdFQMPcnvEqERT2...
I also estimated the average incomes of both groups based on the given statistics, and found an average income of $78k for the poor college grads and $60k for the rich high school dropouts.
The main piece of evidence that this blog post uses to support its thesis is: "Specifically, rich high school dropouts remain in the top about as much as poor college grads stay stuck in the bottom — 14 versus 16 percent, respectively. Not only that, but these low-income strivers are just as likely to end up in the bottom as these wealthy ne'er-do-wells. Some meritocracy."
The first of these statistics is not clearly related to meritocracy. If you want high income mobility, you want both these numbers to be low. The sentence is phrased as if it's bad that the numbers are similar; that doesn't make sense.
The second of these statistics is correctly interpreted, but seems cherry-picked: I could just as easily point out that 41% of poor college grads end up in the top 40% of income, while only 19% of rich high school dropouts do. To prevent such cherry-picking, we should probably use the Schelling point summary statistics like mean income or median income, both of which indicate that the poor college grads are doing significantly better.
As far as I can tell, the original paper didn't do anything wrong, this "reporter" just decided to make up some bullshit conclusions from the statistics. This is even worse than most reporting--the mistake isn't something you have to read the original source to find, the mistake is right there in the graph that Facebook is suggesting as the image preview. Alas!
bshlgrs | 9 years ago | on: Ask HN: Any recommendations on resources for learning one algorithm a day?
bshlgrs | 9 years ago | on: Mental Models I Find Repeatedly Useful
bshlgrs | 9 years ago | on: Bootcamps vs. College
bshlgrs | 10 years ago | on: How to Pass a Programming Interview
Or the other way around: I can imagine someone thinking "this person spent ages on checking for invalid input; I bet their code is always bloated and ugly".
The problem is that programmers do this one way or the other based on personal preference, not because of actual differences in ability. Once you know that, it makes less sense to care one way or the other.
bshlgrs | 10 years ago | on: How to Pass a Programming Interview
bshlgrs | 10 years ago | on: How to Pass a Programming Interview
If you handle invalid inputs for an interviewer who doesn't care about that, they're going to be a little annoyed by you going more slowly than needed. If you don't handle invalid inputs for an interviewer who does care, then they'll think you're careless.