Better HN
topnewbestaskshowjobs
Log inSign up

wireprotocol

7,244 karma · joined Sep 25, 2010 (16y ago) · 2,593 submissions

Submissions

comment 13y ago · link · parent

"This attitude is certainly built on classism and general obliviousness as much as gender issues...whereas with rich men, haggling seems to be a necessary ritual."

The author makes it sound like negotiating over an estimate is a character flaw.

Stereotypically, men are more likely to negotiate over almost anything. At least that comes up during discussions of pay inequality; I'm not really sure what the facts are.

Also, negotiating is probably a more common, habitual practice among "rich" people (by which I assume he means businessmen, lawyers, etc.). I don't see any evidence that it comes from some kind of classism; rather, it's a useful and important skill in their job.

People who really don't know anything about handywork are likely to use what they do know to attempt to get quality work at a fair price.

comment 13y ago · link · parent

Some projects are easier and safer to work with than others. The PostgreSQL project doesn't require assignment, and the license is BSD (without advertising clause, of course) so there isn't much to argue about.

But in any case, you do need to know whether you have copyright ownership of the code or a suitable license before you use it in a contribution.

comment 13y ago · link · parent

The context of the article is collaborative open source development. People who collaborate copy code freely back and forth, so it's important to have a license.

comment 13y ago · link · parent

"the general person uses a car a lot more often than a plane"

Average CO2 per person in the US is around 17 tonnes per year[1].

A single flight from LA to NYC (round trip) is equivalent to about 2 tonnes after taking into account some high-altitude effect[2].

Driving 12,000 miles per year at 25mpg releases about 4 tonnes[3].

So, if you cut your driving in half and then take one long domestic flight, you are just breaking even. If you take multiple long flights per year, you really have no hope of staying below the average carbon footprint for an american. Unless maybe you live in a tree or something.

I'm not saying this to be critical. I fly, and I am not ashamed of that. But we should be honest with ourselves, and not think that riding a bus once in a while and buying locally-sourced vegetables makes up for taking three international trips a year.

[1] http://en.wikipedia.org/wiki/List_of_countries_by_carbon_dio... [2] http://en.wikipedia.org/wiki/Environmental_impact_of_aviatio... [3] http://www.stewartmarion.com/carbon-footprint/html/carbon-fo...

comment 13y ago · link · parent

I can see most of those being useful so that you can easily extract components. For instance, from a URL you might want to extract the URI; or from a phone number you might want to extract the country code.

If done right, I can see those being useful. I agree that it can be overdone, though.

comment 13y ago · link · parent

If someone wrote about their experiences travelling the world, would you make a similar criticism? After all, they are flying, which causes a lot of extra carbon emissions.

Or is the fire truck particularly bad for some reason?

comment 13y ago · link · parent

"Am I the only one that disagrees with the decision? ... we need to look at the RESULT of the decision"

That is not the job of the Supreme Court. They are supposed to decide based on what the law says, regardless of the result. If you disagree with the law, then write to Congress.

But it's fair to ask whether this will produce better or worse results. It's a good observation that this will cause publishers to shift out of poorer markets and increase the use of DRM[1].

The previous situation was not perfect though, either. To interpret that statute geographically would be a major restriction on trade; and if not, would create a lot of ambiguity. Nobody wants to purchase something from another country if they are worried that the manufacturer will come in later and take it away because it had some copyrighted design (which could be anything) on it somewhere.

I believe the results will be better overall (by a lot) under the new interpretation of the law. Clarity and simplicity about where you stand as the owner of property is incredibly important.

One way to think about it is that nothing has changed. The publisher can still create a contract with the buyer that says they won't resell it in another region. It's just that the "default" purchase contract does not give the publisher that right. And we should make defaults match expectations as closely as possible, otherwise people are entering into contracts they don't understand. The notion of purchasing a product has many expectations that go with it that have been developed over millennia. To allow the publishers to inject extra terms that contradict those expectations just to fit their particular business model is ridiculous.

[1] Though DRM wouldn't be nearly as bad if there were no DMCA and if the sellers were forced to call it "licensing" rather than "buying". Again, the default purchasing contract should match the expectations of both parties.

comment 13y ago · link · parent

I'm beginning to wonder: is it possible to write inspirational, motivational prose without making ridiculously false and insulting statements?

The author has clearly not found a way.

comment 13y ago · link · parent

Not only that, even if depression is caused by income, perhaps it's caused by relative income. That means increasing income across the board might have no effect.

comment 13y ago · link · parent

Interesting. Sounds almost like a conspiracy though, it would be nice to see some confirmation. If it's true, then a lot of government numbers will need to be updated, and it could have impact on health studies.

comment 13y ago · link · parent

"This is misleading and contains errors like calling C++ "C"."

In what ways did that detract from his overall point?

comment 13y ago · link · parent

"Cisco was unable to show that they knew what WV wanted"

Yes, they have a contract. That is the best indication possible that the customer wants what you are selling.

If I trust someone else with my money, and they transfer that trust over to a salesperson, then they have violated my trust.

I don't want to hear about "blame to go around" and "the salesman should have sold us less stuff". Maybe apply some shame or sanctions to the salesperson, I suppose, but I really don't care unless there was some kind of kickback involved.

Allowing the stewards of your money to redirect blame onto Cisco for selling too much stuff seems so overwhelmingly naive that I don't know where to begin.

comment 13y ago · link · parent

I was surprised how much blame this article lays at the feet of Cisco. What did they do except sell the customer what they wanted? Sure, they might have been more noble if they put on the breaks in the name of the taxpayers, but that could hardly be expected.

It takes a lot of nerve for someone who just wasted my money (federal dollars) to try to blame it on the other party for fulfilling the order.

comment 13y ago · link · parent

"So unless you’ve already memorized that sorting algorithm by heart..."

That's a bad example. Nobody does that, unless they are really trying to solve a sorting problem.

This article comes down to: "don't reinvent the wheel", without really any supporting examples to guide you further than that.

comment 13y ago · link · parent

"If you define the total order of a set of time ranges as an ordering on their beginnings"

What is the data type of the beginning of a range of time, if not a point in time? I'm having trouble even defining ranges without points.

I'd be interested to hear your suggestions in more detail. There's a temporal data LinkedIn group that you are welcome to join (I haven't been as active lately, but I'll try to get back into it). It would be a better forum to discuss matters like this.

comment 13y ago · link · parent

Great presentation.

First, I liked the example of SQL as a language that is not concurrent but can be parallel. In theory, I guess almost any language can be parallelized, but it wouldn't work out very well in many cases.

Also, I liked his introduction of distributed haskell. Obviously he didn't go into much detail, but he mentioned enough about what it's trying to accomplish that I'd like to take a look. Erlang is nearly the only game in town here (that I know about, anyway), so I look forward to learning more about the haskell community's take on distributed computing.

comment 13y ago · link · parent

"Does a point in time ever really exist?"

I agree, but that gets a little too philosophical. Does an integer exist? What about characters: is my "a" really the same as your "a"?

The way I see it, there are a lot of practical reasons to look at time as a total order for some things, even if ranges are available. Programming languages and databases should model reality, but only in the sense that it's relevant to what you are trying to do. If you are writing a scheduling app, then ranges of time are very important, and should be their own data type. If you just want to tell your customers when they bought some widget, a point in time makes more sense.

comment 13y ago · link · parent

I think it's OK to be missing a few aspects of the standard. But in that case, it should still parse correctly and throw a "not supported" exception for unsupported features.

Parsing it incorrectly is bad news.

comment 13y ago · link · parent

If you support only a subset of the standard, or if you extend the standard, that may still be OK (not without problems, but still OK in some situations).

This case seems like an outright violation, however. If the standard says that ####-## is a year-month date with month granularity, and you interpret it as an ordinal date, then that's a clear violation. It means that others communicating with you won't just get an error, they will get the wrong answer, which is much worse.

comment 13y ago · link · parent

Was it just me or was the wording in the article slightly confusing? The second paragraph changes from talking about the standard to talking about the ruby implementation with out saying so in either case and no transition.

If I understand correctly, the complaint is that: ISO 8601 defines ####-## to be a year and month only, and it should have the granularity of a month; but Ruby treats it as an ordinal date.

It seems like it could be said much more clearly with an example:

    irb(main):011:0> Date.iso8601("2012-12")
    => #<Date: 2012-01-12 ((2455939j,0s,0n),+0s,2299161j)>
It's treating ####-## as an ordinal date, when the standard says that it's a month-granularity date.

comment 13y ago · link · parent

The problem with making all dates into ranges is that there would be no total order. To effectively have a total order, you would need to say "give me the range of time at the smallest possible granularity", which is really just asking for a point in time. If the granularity becomes smaller later, it might break the application if you aren't careful. So, I don't think it's a good idea to give up on points in time.

However, I strongly agree that ranges of time are a very useful concept, and I spent a lot of time implementing Range Types[1] in postgresql for that reason. I think Ruby should have both ranges of time and points of time (and ideally work with the SQL counterparts seamlessly).

[1] http://www.postgresql.org/docs/9.2/static/rangetypes.html

comment 13y ago · link · parent

There are different ways to overlap, too, so I don't think it's correct to say that there are only 4 states.

comment 13y ago · link · parent

I was talking about memory that was used in the past, but is no longer used.

The OS can either keep it resident or swap it out, but it has no way of knowing that it is no longer in use (short of something like madvise()). In the realm of sanity, the OS can't just arbitrarily throw away memory that a process has written to (unless it also kills the process).

comment 13y ago · link · parent

Strange, the page showed up first when I googled "tcmalloc" and the problem was also present in the version that I was using (at least I think it was). My apologies.

Yeah, regarding [2], that was definitely not my idea.

comment 13y ago · link · parent

The author missed community open source projects like PostgreSQL and Linux. They aren't looking for a buyout.

comment 13y ago · link · parent

Warning: tcmalloc does not release memory back to the OS, ever:

"TCMalloc currently does not return any memory to the system."[1]

That means if you have many long-running processes, then each of them will consume the maximum amount of memory that it ever has. Not good for a multi-tenant setup.

If it's a dedicated server running one multi-threaded application, maybe that's OK, although I'd be a little bit wary anyway.

I should note that, even if the application doesn't let the memory go, the OS could page out the inactive regions. Not really something that I would like to rely on, though. There are some other caveats also, like it would make memory accounting a little trickier ("Wow, that process is huge! Oh, never mind, it's mostly paged out.").

For what it's worth, I just spent considerable effort to get rid of tcmalloc due (in part) to problems like this. [2]

[1] http://goog-perftools.sourceforge.net/doc/tcmalloc.html

[2] You wouldn't think it would be a lot of effort, but we were using dynamic libraries that were linking against tcmalloc, which is outright dangerous if the main executable isn't linked against tcmalloc (you don't want to replace the allocator in a running executable). And some of those libraries were actually using the tcmalloc-specific features/symbols, so I had to get away from that first.

comment 13y ago · link · parent

How can any president not spend their retirement reflecting on their decisions? Many decisions have a lot of collateral damage even if they are the right decisions.

comment 13y ago · link · parent

"They're such high risk, that no actuary will quote them a reasonable price."

That is just plain wrong.

The reason it's hard to insure people on a flood plain is not that they are high risk. It's because the risk of flood is too statistically dependent: if you get flooded, your closest 1000 neighbors probably also got flooded. Unless you are a very large insurer (to the point bailing out ten thousand homes is just another day at the office), it's just really hard to hedge that risk. Same thing for earthquakes.

Insurance works best on independent risks: car accidents, major medical events, lawsuits, even fires.

"The prevailing thought is, when nature strikes, the government must bail people out."

So the author's claim is essentially that the people of Canada want to subsidize the risky lifestyle of people on flood plains?

I guess it's probably true to a degree; people prefer to have costs hidden from them by indirection. But that doesn't mean that it makes sense economically.

What might be a better analogy is flood insurance and insuring the health of people with unhealthy lifestyles. Do we want to subsidize people who eat junk food all the time and never exercise? For the most part, we are (in US and Canada, at least), but I don't think that's a good idea, either.

comment 13y ago · link · parent

I'm not an expert, but my understanding is that IO is not necessarily run even if an expression is evaluated that produces a value of type "IO a". That is a theoretical difference, not just an implementation detail.

comment 13y ago · link · parent

"When and how often this happens is irrelevant."

Why do you say that?

1
727374
87