HNHacker News
TopNewBestAskShowJobs

dripton

838 karma · joined October 15, 2010

submissionscomments
dripton··on Schools Are Slow to Learn That Sleep Deprivation Hits Teenagers Hardest
Our school system does this. I haven't heard any complaints about it. (And we have a lot of entitled parents who complain about everything else.) I'm surprised that more schools aren't switching.
dripton··on A way to deal with enormous branching factors in strategy games
Link to the actual paper: http://julian.togelius.com/Justesen2016Online.pdf

I've written an AI for a similar game, where you can't always even iterate over all your moves for this turn, let alone do a multi-ply tree search.

Using their terminology of Action and Turn, my method was to first evaluate individual Actions using a simpler evaluation function, and apply a cutoff so that only a reasonably number of Actions had to evaluated, then combine that reduced group of Actions together to make a reasonable subset of full Turn moves, then use the full evaluation function to find the best Turn.

Writing a good evaluation function for a complex game is hard, so I picked a whole bunch of inputs and then used a genetic algorithm to find weights for them. (Let the various AIs play entire games, and let the winners breed.)

Works okay, but still can't beat a decent human player very often. (There's enough randomness in the game that the better player doesn't always win.)

In this paper, their Online Evolution beat the other four computer strategies, but they don't mention whether it can beat good human players. If it can't, it's not clear to me whether Online Evolution is a good algorithm. Beating their other four algorithms doesn't seem to be a very high bar.

dripton··on Ignoring the Wiggles
Young Buffett didn't buy GEICO, the company. He just bought some of its stock. So he didn't get any extra liquidity.

Older Buffett bought the company.

dripton··on How Would You Do on the New SAT?
I'd agree with you if the SAT had harder math on it. If I had to do calculus now, after not using it for 20 years, I'd get a lot of questions wrong.

But the SAT doesn't really go beyond basic algebra, and after getting an engineering degree, that feels burned into my ROM. I retook the GRE over a decade after my last math class, without studying, and still crushed it. Certain skills (reading quickly, parsing questions correctly, working backwards from multiple choice answers) don't leave you.

dripton··on Ask HN: What is your company's on-call rotation like?
I work at a big famous company that strongly believes in devops.

I'm on call about one week in 6. (About 12 people in the rotation, with two on-call at a time.)

When on call, the ticket queue is supposed to have priority, but managers have an unfortunate tendency to say "that guy's on call so he's not doing anything so let's have him do it." So what ends up happening is that high-severity tickets get priority, then whatever random stuff the manager wants done, then low-severity tickets. So low-severity tickets tend to remain open for way too long because the oncalls aren't making them a priority.

For high-severity tickets, we escalate if we can't fix things quickly. First bring in the other oncall, then bring in the manager, then bring in anyone else on the team who can help.

When a dependency breaks, we can ticket its owners to fix it. If it gives us a high-severity ticket, then they get a high-severity ticket too. Ultimately there's a tradeoff between using fewer dependencies in the name of controlling your own fate, versus using more dependencies to avoid reinventing the wheel. Each team has to find that balance for itself.

I don't enjoy being on call, but I think it's the best solution we have. Stuff breaks and someone has to fix it. If you don't pick someone, then everyone has to fix it. If the same people who build something also have to fix it, they have strong incentives to do things correctly.

dripton··on Ask HN: Is Knuth's TAOCP worth the time and effort?
I liked it a lot. I read all three books but only did a small fraction of the exercises. I had read quite a few easier algorithms books, but had never seen a good treatment of less trendy things like external sorting algorithms or random number generators. I really like Knuth's writing. Of course the drawbacks are that the books don't have recent algorithms, and you have to deal with MIX assembly rather than your favorite language.

They are not easy books. At the time I read them, I had a 45-minute bus commute each way, which gave me a nice forced reading window. I don't know if I'd make it through them today, without public transportation. Too many more entertaining things to read or do at home.

dripton··on Do the math on your stock options
I did that on purpose. Options in company A are completely different than options in company B, and assuming that more is better is just silly. 3000 out of 100000 is 3%; 5000 out of 500000 is 1%. But you can't just compare percentages either, because a percentage of a more valuable company is worth more than a percentage of a less valuable company.

As an employee, you just don't know. So value them at zero. Or, if you want to be fancy, epsilon. And take the cash.

dripton··on Do the math on your stock options
I've had ISOs in a couple of startup employers, non-qualified options in a startup customer, and RSUs in a couple of public employers.

The only book I've read on stock options is _Consider Your Options_ by Kaye Thomas, which I thought was good. I do my own taxes, and there was enough detail in that book to let me figure out the tax implications of my options. (Including AMT the one time I had to pay it.)

The actual mechanics when you already have options are straightforward. You either exercise speculatively (pay real cash to turn options into shares, then hold the shares), or exercise risklessly (pay cash to turn options into shares which you sell immediately for more cash than it cost to exercise). Exercising speculatively has risks -- you pay real money for shares that then go down in value, possibly to less than the strike price, possibly leaving you with a tax bill even though you made a loss. Exercising risklessly is safe.

I don't like to speculate with meaningful amounts of money. If in doubt, sell the stock and diversify. Think of the worst case (the company crashes and you lose both your job and the value you thought the stock had). Better to not have all your eggs in one basket and sleep well. I suspect this is not a popular sentiment there, though.

The real question with options is when you're considering multiple job offers. Company A offers $100k and 3000 options. Company B offers $110k and 5000 options. How do you value the options? For a startup, the usual answer is that you can't, because there's no anti-dilution protection. If the founders want to hose you, they can hose you, by diluting your shares or by firing you right before a vesting date. So I value them at zero and take the job I like better, or the job that pays more actual cash.

(RSUs in a healthy public company are a bit different, since they have an actual immediate cash value. I value them at 75% of the current value of the stock. The 25% discount is because of vesting periods.)

dripton··on Can we use Jenkins for that?
GUIs are more discoverable than command lines. Text files are easier to save in version control. So it's common to have a system where the GUI hooks new users, but they eventually have enough configuration in it that the GUI is no longer a reasonable way to control it all, and they need a way to extract the information in a reasonable format. Hence the reason several Jenkins plugins have evolved to do that.
dripton··on EFF Wins Petition to Inspect and Modify Car Software
And consider installing the Amazon Smile Redirect browser extension.
dripton··on Workhorse drone company tests package deliveries in Ohio
It's up to the seller. If they insist on a signature then the delivery won't happen without one. But that doesn't happen much in my (nice, suburban, US) neighborhood. I guess package theft is rare enough that the extra cost of requiring a signature outweighs the extra risk of not.
dripton··on Workhorse drone company tests package deliveries in Ohio
They could.

But one of the bad side effects of "free" delivery is a race to the bottom in quality. My neighborhood UPS guy is awesome -- he rings the doorbell, if it's raining he puts a bag around each box, if a box is heavy he'll bring it inside for my wife. The local Lasership folks (different ones every time) are far less awesome -- they just drop the box on the porch, not bothering to ring the doorbell, not bothering with weatherproofing. So we've had a couple of boxes soaked, even when my wife was home, because she didn't hear the delivery.

I'd pay a couple bucks more to get UPS over Lasership, but it's not easy for me to select that option with most web merchants.

dripton··on Why Japanese Kids Can Walk to School Alone
I walked to kindergarten alone at age 5, in the US. In the 1970s, when there was much more crime than there is today.

I mostly blame cable news for helicopter parenting. The data shows that there is much less violent crime than there was 40 years ago, but when something bad does happen and cable news jumps all over the story, it creates a false impression of the world being a very dangerous place.

dripton··on Musk Says Tesla Cars Will Go 620 Miles per Charge in 2 Years, Autonomous in 3
That is impressive.

Though I suspect soon enough the Northwest Passage will be clear for enough of the year that most freighters will just sail through the Arctic. Perhaps both Panama's government and North America's railroads should be pushing hard for a carbon tax.

dripton··on Forested Overpasses Allow Animals to Cross Safely Over Highways
We do. Big highways without enough pedestrian bridges have a horrible effect on pedestrians and bikes, basically cutting towns and cities in half. I currently work just north of a 6-lane toll road, and it's a reasonable bike commute. I used to work just south of it, and it was a much worse commute, because there are no pedestrian bridges or small quiet roads crossing it, only a few busy arterial roads, full of drivers already in highway mode, trying to dive for an exit ramp, not thinking about pedestrians or bikes.
dripton··on MergeShuffle: A Very Fast, Parallel Random Permutation Algorithm
A fun read.

Does anyone know of a practical use for a very fast, parallelizable shuffle algorithm that uses few random bits? All the shuffling I've done has used small enough N that Fisher-Yates was just fine.

dripton··on Database versioning best practices
I agree that versions should be named rather than numbered. Well, I guess that's an implementation detail. What really matters is having the equivalent of branches in a version control system. That way the main branch can use migrations a, b, c, d, and e. And the release branch for the legacy version that backports bugfixes but not new features can easily use migrations a, c, and e and skip b and d because those went with features that weren't backported.

In Python, sqlalchemy-migrate does this wrong and Alembic does this right. I worked on a big project that used sqlalchemy-migrate, and this caused us pain. It's difficult for a large project to change database versioning systems, so it's important to pick a good one from the start.

dripton··on Windows 10 phones home when you search your start menu, even with Bing disabled
Not many, but the effort is parallelizable. If you find a security problem and report it in public, others can verify it, and still others can benefit from the fix even if they never would have bothered to look for themselves.
dripton··on The old suburban office park is the new American ghost town
I live in the suburbs. I ride my bike to work. It's safe enough. People are just scared.
dripton··on We need to rethink employee compensation
I think of pre-IPO options as worth just more than zero. (I'd rather have them than not have them, but not by enough to give up significant salary). The possibility of dilution in most option agreements, combined with the time until vesting and the possibility of the company failing, means that it's impossible to put a solid floor under their value. I've made 5 figures from pre-IPO stock options twice. Nice, but hardly worth taking a pay cut for.

Options in already-public companies are quite a bit less risky. I consider employee stock grants in a healthy public company to be worth about 75% of the current value of the stock. (The discount is because of the vesting period. If I change jobs, I lose some of the stock. If I stay at the job just to get the stock, when there's a better opportunity elsewhere, I lose that opportunity.)

dripton··on Show HN: Universal Pause Button
UI is subjective. I get mildly annoyed whenever I use a Mac. Little things like having to click on a window to give it focus, or having to use command instead of control in many programs, break my flow. I'd probably get used to those if I only used a Mac, but since I use Linux 95% of the time and Mac 5%, I never do.
dripton··on Florida Classifies Uber Driver as Employee, Says He Is Eligible for Unemployment
Yet Steve Jobs was able to run Apple and Pixar simultaneously.
dripton··on Artillery Practices by the Major Combatants of WWII
I really liked Unity of Command. Operational-level, Eastern Front, WW2. Available for Linux.
dripton··on UK Election: What difference would proportional representation have made?
You need to boundaries to be created by a well-known, impartial algorithm rather than a person. And you pay a committee of academic programmers from other countries, with no political ties to the country where it's intended to be used, to design the algorithm. And you use the same algorithm forever rather than changing it from year to year.

That solves the gerrymandering problem. Of course, it doesn't solve the problem of getting whichever party currently benefits from gerrymandering to agree to switch to the neutral algorithm.

dripton··on Ask HN: Do big companies like Apple, Google, Microsoft pay for Internet data?
See https://en.wikipedia.org/wiki/Tier_1_network

Tier 1 means you're so central (at least in most of the world -- countries with local telco monopolies might be exceptions) that there is nobody upstream of you; everyone else is either a customer (who pays you) or a peer.

None of the companies you mention are Tier 1, so they're all paying someone upstream for at least some of their traffic. Every big company has people working to reduce that cost. For example, Apple and Microsoft might decide to peer with each other in some areas, and carry each other's traffic for free rather than paying someone else to carry it. And we know Google has invested significantly in their own fiber.

dripton··on Why I keep fixing my bike
Bikes that are rarely ridden don't need a lot of maintenance, as long as they're stored indoors. You mostly just have to pump up the tires.

Solid tires are available, but the reason you rarely see them is that they ride like bricks.

dripton··on 2015 Chromebook Pixel
All my laptops run Linux. Two of them came with Linux preinstalled. Two of them came with Windows preinstalled. All four had the preinstalled OS overwritten by my Linux distro of choice. So what they came with isn't really that important. (Granted, if something comes with Linux then that saves you the step of making sure all the hardware has Linux support before you buy it.)
dripton··on The Hiring Post
Understood. I know that at least my second example was a phone screen: if that interviewer didn't like me, the interviewing process would have ended.

I don't know how you avoid that. If you have 1000 candidates per open position, you probably can't afford to do in-person interviews with all of them, or even all the ones with decent-looking resumes. What's the alternative to phone screens? An automated remote work sample system, maybe?

dripton··on The Hiring Post
Yes, I recently had two productive phone screens, as a candidate.

The first one taught me a bit about the company and team, and gave me a good impression of the interviewer (the hiring manager), which then led to me doing a work sample. (Without the phone screen I don't know if I would have sunk several hours into the work sample.) I ended up getting an offer but not taking it.

The second one also gave me a good impression of the company, team, and interviewer (a senior engineer) and led to me doing an full day of interviews. Which led to me accepting an offer. The one used Collabedit in addition to the phone.

I know they're not perfect, but it's much cheaper to talk on the phone for an hour than to fly someone in for face-to-face interviews. Given way more resumes than resources for in-person interviews, I'd rather narrow the field using phone screens than narrow the field based solely on what's in the resumes.

I saw the part in your article about work samples, and I agree that they're great, but they are significant work for the candidate. So I think it makes sense to do have some kind of phone call first, to see if there's enough mutual interest to make it worth the candidate's time.

dripton··on Why Software Maker Fog Creek Is Helping Its Competitors Hire Women
I don't think that has anything to do with mentorship. I think it's just that most companies don't give most young programmers big enough raises to reflect their increased value on the open market.

Lots of companies don't want to hire new grads, so there's a significant price premium for hiring someone with a couple years of experience. The companies that are willing to hire new grads aren't always willing to give annual raises that reflect that price premium. So lots of programmers with a couple of years of experience see that they can get a 20% raise by switching jobs. So they switch jobs.

(This happens with programmers later in their career too, but the difference between 8 and 10 years of experience is much less dramatic than the difference between 0 and 2. If a company gives the same annual raise to all its programmers in the same performance band regardless of experience, that raise may be too small for the newest ones, even if it's just right for the middle ones.)

← PreviousPage 4 of 9Next →