HNHacker News
TopNewBestAskShowJobs

dannypgh

1,054 karma · joined June 28, 2013

submissionscomments
dannypgh··on After 50 years of effort, researchers made silicon emit light
It's definitely not a continuation of Moore's law as it has nothing to do with transistor density, but it may mean that the performance people expect from computers - which is why people are usually talking about Moore's law - may continue increasing.

I don't see how the wavelength is comparable to transistor size because as you switch to the optical realm, the benefit of information propagation at speeds near c (or c, if you're pulling a vacuum) means physical size doesn't matter as much. At 4Ghz you can move information 7.5cm in one cycle, and that's a pretty large distance compared to any integrated circuit I've ever seen.

Why is storage necessary? If you can move bits to optical gates and get a result back it seems to me like you can work around the fact that, in an electrical system, capacitance and heat (due to density achieved in the quest for minimizing capacitance) start to limit the computation you can do.

dannypgh··on FCC planning to open up 1200 MHz of spectrum for unlicensed / Wi-Fi usage [pdf]
Commercial usage of amateur bands is prohibited. How can you tell if communication is commercial if you can't understand what's being communicated?
dannypgh··on [dead]
Really? It's clearly a work of fiction, set in the future.

It opens with "It’s been a couple of year now, since the 2020 Coronavirus disaster"

dannypgh··on IRS delays tax-filing date to july 15, matching payment deadline
It probably won't affect them nearly as much as widespread shutdowns, social distancing, and mass COVID-19 casualties due to hospital shortages will.

I think it's useful to keep things in perspective - life in the United States is changing, and will be significantly altered for the next several months at least. My net worth on paper has fallen 30% this year, but right now there's exceedingly few places for me to spend money, so, there's that.

dannypgh··on Trading halted as U.S. stocks plummet
There's also decreased demand - look at airlines, jet fuel uses 1.7 million barrels per day normally, and COVID-19 is causing fewer people to want to get on planes.

The fraction of the price drop that can be attributed to large producers flexing market power versus the decreased demand is a tricky thing to determine.

dannypgh··on FreeBSD has removed GCC from its base system
We used to celebrate alternatives to gcc in the name of compiler diversity, and now we're wondering about gcc preservation in the name of compiler diversity.

This is mostly just an observation, I'm not sure how I feel about it. Compiler diversity doesn't seem more important than OS diversity to me, and none of these feel particularly important. As a user I was happy to switch to clang for the better error messages.

dannypgh··on Throwaway Code
My rule is be skeptical of anyone proposing a rewrite who doesn't fully understand the existing system, to such depth that they would feel comfortable refactoring it. Which means anytime someone says "we want to rewrite it because refactoring it is too hard" I tend to not believe them.

There are times when rewrites are less total work, but they're hardly ever "easier" when you account for the cognitive load of making sure the requirements of the rewrite are being accurately captured. Maybe there's an exception if you know the requirements have been drastically simplified, but I doubt that's practically useful.

dannypgh··on The vast but little-known fund of the Mormon Church
"Go back to?"

I don't know what period you're longing for, but it sounds like an outlier. The church history I'm familiar with is one where the Pope had power at least on par with the head of any government or military near their sphere of influence. Also, crusades.

Churches amassing massive wealth is far from new. Nor do I suspect the LDS has even a small fraction of the Roman Catholic Church's wealth.

dannypgh··on Bananas Are Berries, Strawberries Aren't
This caused me to look it up. I was way off! https://io9.gizmodo.com/theres-a-scientific-reason-why-a-pin...

This makes me a bit skeptical that the type of salt matters much. Perhaps it's simply easier to get the dosage right with Kosher salt?

dannypgh··on Bananas Are Berries, Strawberries Aren't
It's a larger crystal, which makes it easier for the salt to pull water out of the watermelon, versus (I'm guessing) just making its way into the watermelon as a dissolved solid.

My understanding for the mechanism by which the salt makes the fruit sweeter is by increasing the concentration of sugars in the flesh that's now surrounded by salted water.

Kosher salt is named for the application of drawing water from meat (which is itself part of the kosher preparation of meat) so it's not too surprising that the salt is also well suited for drawing water from fruits like watermelon.

I use table salt on watermelon and it's great too. I can believe that kosher salt would be better, but I doubt most people would consider the difference immense. But palates vary, so, if you've got both salts around might as well use the bigger crystal.

dannypgh··on Ignore Sunk Costs (2009)
I think this comes down to correlation versus causation.

The fact that someone (perhaps yourself) valued a property highly recently is correlated with that property having a high present value. But it does not cause it.

It is possible the million dollar purchase was a mistake, or that something has changed and it's now worth far less. Valuing a property highly may cause you to have paid a lot of money for it, and that might be a reason to assess the current value highly. But that's very, very different from valuing a properly highly because you paid a lot of money for it.

dannypgh··on Ignore Sunk Costs (2009)
> If I spent 3 hours getting the tickets and I value my time at $150 an hour then the value of the tickets is now $505 and I'm only getting offered $500

Except that's not how spending time (or money) on something works. If you spend 3 hours trying to fix something and fail, you shouldn't value the item any more. The value of the tickets doesn't go up because the time you spent on it. Selling the ticket (or keeping the ticket) doesn't get you the time back. The question to evaluate the potential sale is only which do you value more, the $500 being offered or the ticket. What you spent on the ticket is irrelevant - it's a sunk cost.

We see this with stock trades all the time. Say you bought a share of company XYZ at $100, and then a scandal broke and the value plummeted to $20. You don't think the company is worth buying for $20, either, because the scandal was that bad. Therefore you should sell it, as you think the true value is below $20. Yet, many people would hold the stock as they don't want to take the $80 loss. This is what happens when you fail to ignore sunk costs - what you paid for the item (be it in cash, or the ticket example, your time) doesn't increase its present value to you.

dannypgh··on Sam Altman and Andrew Yang talk UBI
> money doesn't come out of thin air.

It can, though. Money is created all the time by banks only having to keep a fraction of their deposits on reserve. You deposit $100, they lend out $80, then you have $100 (in the bank) and someone else has $80 in cash (and an obligation to repay). $180 exists in a real form when at the beginning only $100 existed.

For the US Treasury, the rules are even stranger. Like a bank, they can write checks for whatever they want, as long as they do so in a manner consistent with the law (and laws can be changed). Unlike a bank, there can never be a "run" on the Treasury (no Treasury check can ever bounce for insufficient funds) because they can literally just print more money.

It is entirely possible to just deficit spend your way to a UBI. Many economists would predict this to create inflationary pressure - and indeed it might - but predictable inflation, even at moderate amounts, is beneficial to those who those who carry debts. This can create incentives for investment (you don't want to sit on your money if it's losing value) which may result in actual wealth creation.

Inflationary monetary policy effectively acts as a tax on those who hold currency, yes, but it's not a zero sum game. Plus people who receive these checks will spend it in the economy or deposit it with banks to create more of it. Economics is not well enough understood for there to be a consensus on what this would do in aggregate, and anyone who tells you otherwise is probably lying.

dannypgh··on Sam Altman and Andrew Yang talk UBI
Yep, it's an American pastime to blame the poverty experienced by much of the indigenous population on the indigenous population. It makes people feel less guilty to be profiting from the status quo.

Criticism of indigenous folks without first acknowledging the real issues of genocide and disposession is problematic at best, racist at worst.

dannypgh··on Thousands of Google’s cafeteria workers have unionized
I don't buy for a second that the wages absent a union are what a free market would predict. A free market requires freedom to participate, and most individuals are forced to sell their labor in exchange for food and shelter, let alone necessities like healthcare. Unions provide a framework where something closer to a free market wage (note: this is to say nothing of the morality of using markets for these purposes, a separate question) can be negotiated. Maybe in a world where people had a UBI they could live off of this could be argued, but that's not the world of today. You're cherry picking free market economics only where it suits you.

Your assessment of antitrust law is also pretty far removed from reality. By that logic, mergers and acquisitions would be illegal in every instance. Or, for that matter, standards bodies. Corporations band together to increase profits all the damn time, and the overwhelming majority of this activity is legal.

dannypgh··on Sundar will be the CEO of both Google and Alphabet
You're conflating a lot of things here. GOOG class A versus C (GOOG vs GOOGL) dates to a 2014 restructuring of ownership, whereas the Alphabet reorg was in 2015.

Can you break out revenue in a single company? Sure. But you can also easily do it with the structure Alphabet adopted. And, this structure also lends itself to easier valuations of entire units, useful if acquisition of a unit is something being considered.

dannypgh··on Sundar will be the CEO of both Google and Alphabet
I don't think it was mostly motivated by management separation, as much as it was desire to break out revenue and expenses by unit. And this is unchanged.
dannypgh··on Many elementary teachers don’t understand math, and it makes them anxious
I would love to teach math to elementary students but I make a base-10 order of magnitude more as a software engineer for a FAANG. I'd take a pay cut of a factor of 4 or 5 to do it in a heartbeat... but having to go back to school to get a teacher's certificate (and likely a master's degree) to get paid 1/10th as much is challenging. I may end up doing it in a couple of years when I'm even more solidly financially independent, but we as a society should probably just be paying teachers a lot more across the board.

I guess there's more money in advertising than educating the next generation.

dannypgh··on Many elementary teachers don’t understand math, and it makes them anxious
> I still don't know why long-division works

I was taught long division in the 4th grade (age 9) but wasn't taught a proof of why it works until a college algebra course (age 19).

For whatever it's worth a different type of long division is taught now under common core. The common core math stuff that I've seen is impressive - there is more focus on teaching things in a way where comprehension of deeper concepts should be possible. It's a shame there's so much fear of it from parents who are upset kids are learning differently than they did.

dannypgh··on Ask HN: How would you bootstrap a space company?
The idea of terraforming Mars seems increasingly quaint given how hard it's been for us to keep the Earth comfortable for humans.

I think it makes far more sense to work on geo-engineering solutions to climate change first - it's also more likely to have a viable business model, on the assumption that the people will eventually demand action rather than applaud their leaders for pulling out of the Paris Accord.

I think pretty much all of the tech applicable to terraforming Mars could also be useful for reducing Earth's CO2 levels, no? Maybe let the problems on Earth guide development and drive funding, and pivot to Mars once it's clear success is being had on Earth.

dannypgh··on Ask HN: Do you write tests before the implementation?
Sometimes.

If I'm writing something where I know what the API to use it should be and the requirements are understood, yes, I'll start with tests first. This is often the case for things like utility classes: my motivation in writing the class is to scratch an itch of "wouldn't it be nice if I had X" while working on something unrelated. I know what X would look like in use because my ability to imagine and describe it is why I want it.

There are times, however, where I'm not quite sure what I want or how I want to do it, and I start by reading existing code (code that I'm either going to modify or integrate with) and if something jumps out at me as a plausible design I may jump in to evaluate how I'd feel about the approach first-hand.

I'm short, the more doubts or uncertainty I have about the approach to a problem (in the case of libraries, this means the API) the longer I'll defer writing tests.

dannypgh··on I got my money back from a scammer by contacting his mom on Facebook (2016)
This is a complex situation, because another party is involved: the parents. The ethics and morality of accepting a payment (even if it also satisfies a debt) to let the son continue to defraud his parents is certainly something that reasonable people can debate.
dannypgh··on I got my money back from a scammer by contacting his mom on Facebook (2016)
I think it's not only extortion, it's blackmail, and depending on how the parents paid their son it may have been a federal offense: https://www.law.cornell.edu/uscode/text/18/873

The son was likely guilty of some sort of larceny (theft by deception) and it may have been a federal offense, especially if it crossed state lines or involved the postal system.

dannypgh··on The HPV vaccine is as important for boys as it is for girls
It is approved but not recommended, which means insurance doesn't have to cover it to satisfy the ACA.

I'm 35 and one dose in (about due for the second dose) - what this has meant for me is that it's no trouble to get my doctor to give me the vaccine (but the county's vaccination lab refused) but insurance didn't cover the vaccine.

For me it's worth the $600 or so it'll end up costing, just for the peace of mind that I'm doing what I can to minimize the risk.

dannypgh··on They Might Never Tell You It’s Broken
Surely it's a computer, and not a person, handling triage of bug reports. At Apple's scale, bug reports are easily ignorable until there's multiple.
dannypgh··on Grandmaster level in StarCraft II using multi-agent reinforcement learning
> Following the analogy, a general purpose AI simply isn't a bigger Deep Blue or AlphaGo; it's probably something different that requires knowledge that we currently don't have.

I agree with this, but it isn't clear to me that a general AI will have a significantly different impact on society than a world where task-specific well performing AIs are easy for anyone to develop.

Sure, a general AI has a set of properties that are really fascinating to discuss and debate (including what is consciousness and whether AIs should be given rights), and perhaps a general AI is required for doomsday computers-taking-over scenarios, but the impacts that AI will have on our economy and politics don't require general AI.

dannypgh··on Thank You, Guido
I think I'm misremembering and they were method names. I believe it was clone, in fact.
dannypgh··on Epstein's injuries look more like murder than suicide, noted pathologist says
...but surely it's also the case that successful suicide is more likely when someone is taken off of suicide watch, no? Citing this as evidence of malicious intent seems like a reach.
dannypgh··on Thank You, Guido
If your timeframe goes back to PHP4, this most certainly isn't true. Just one glance of https://www.php.net/manual/en/reserved.keywords.php should prove this - every new keyword is a backwards incompatible change. And I mention this because I used to support software that used, as a variable name, something which became a reserved word...
dannypgh··on To hire neurodiverse workers, one firm got rid of job interviews
> Often it seems to me that there are plenty of other motivations to run a company. The founders hire people who they like to hang out with, maybe same hobbies etc.

There are laws against employment discrimination, and I suggest to you most people aiming for "people who they like to hang out with with" will result in an outcome, intentional or not, of illegal discrimination.

← PreviousPage 2 of 12Next →