Recent submissions

Comment · 7 years ago
Yeah, this is Erlang:

    fib(0) -> 0;
    fib(1) -> 1;
    fib(N) -> fib(N-1) + fib(N-2).
Comment · 13 years ago
Having recently run into some non-obvious crappy performance characteristics with I/O in Erlang, I'm curious if you have any pointers to docs or code that shows how to use Erlang I/O correctly so it's fast?
Comment · 14 years ago
I'm curious, why would you write that game in Node now, if you already know Erlang?

From my perspective, Erlang is a better fit than Node for all the problem domains that Node is good at. I understand using Node if you don't know Erlang, but do know JS, but if you're already skilled with Erlang...

Comment · 14 years ago
Comment · 15 years ago
Weekends are forced vacation too. It'd be great if companies adopted a "floating weekends" policy too, for the same reasons I outlined, but no company I've come across seems to do so, officially (you do see unofficially here and there bosses who recognize an employee working the weekend and allow them to take a couple days off later, and simply not reporting the vacation).

As to your first question, yes I've experienced both. Not month long shutdowns, but week long ones, but it's the same thing: if it's not convenient for you to take a vacation during that time, it's pretty much a waste and it sucks. If your spouse doesn't get 4 weeks off on August, are you going to go on a 4 week vacation then? Probably not. But then you'll resent the people who do actually take that 4 weeks off to go somewhere. It's bad for morale.

I agree that a solid 4 week vacation is enriching, but just declaring an arbitrary 4 week shutdown is a cop out. Fix the structural problems that require every one to be in the office at once, and then give everyone that much vacation time to be used when they like it. I'm not saying that this is easy to fix, but if you really believe in giving people time to have significantly different experiences in their lives, this is what you'd have to work at.

Comment · 15 years ago
Forced vacation isn't freedom. If August isn't a convenient time to take a vacation, and the employee would rather work, let them work and take that chunk of time off at some other point. If taking that time off another time during the year is unacceptable, then your policy simply isn't fair to all your employees.

Where I work even the national holidays are floating holidays, so if I want to work on Christmas that isn't a day off for me, and I can trade that for a day off for any other day of the year.

Especially for travel, it's way cheaper to do so for off-peak seasons, so forcing August or the last week of December etc. when just makes for more expensive vacations. This is one reason why I think the "French model" kind of sucks.

Comment · 15 years ago
There's actually 5 charging stations that Tesla installed on the 101 between SF and LA. If we got serious about electric cars, higher charging station density would help with long trips.

And I agree, SF<->LA is not a long drive.

Comment · 16 years ago
Comment · 16 years ago
Reasonably good presentation, but this stuck out at me:

> One team that started with Erlang and moved to Java so they could find programmers. Think about those scenarios.

If the people you are hiring can't pick up Erlang in a couple of weeks of being on the job when they are doing that full time, with colleagues around who already know Erlang to help them, you are hiring the wrong sorts of people. Same goes for any other language/technology stack.

Comment · 16 years ago
I've also used private ETS tables for this.
Comment · 16 years ago
Kayak's got them now actually, but only schedules, not prices.
Comment · 16 years ago
git ls-remote will help you to get the hash of HEAD. It's much cheaper than doing a zero-depth clone.
Comment · 16 years ago
Comment · 16 years ago
I've noticed that sorted sets have noticeably more overhead than the other types.
Comment · 16 years ago
T-Mobile is fine in the mission in my experience.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton