Better HN
topnewbestaskshowjobs
Log inSign up

wireprotocol

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

Submissions

comment 12y ago · link · parent

Perhaps it's just because I've never seen a good implementation of a bypass, and I might agree if I had seen one. Like many things, maybe it just takes the right people to make it successful.

Postgres leaves a lot of performance on the table in much more basic ways, too, so I certainly am not suggesting that postgres is anywhere near optimal.

comment 12y ago · link · parent

He started Postgres before it became PostgreSQL (i.e. before it even supported SQL). It's quite a different system now.

comment 12y ago · link · parent

Any number we have is going to be sensitive to the workload, so I think it's unfair to say 2-3x without a lot of context.

Also, you dismiss ideas that help the database and the OS work together better. For instance, I did "synchronized scans" for postgres. It coordinates sequential scans to start from the block another scan is already reading, improving cache behavior and dramatically reducing seeks. This could have been done by lots of extra code controlling the I/O very carefully (as at least one paper seemed to suggest was a good idea). But I chose to do it the simple way, just start the scan off in the same place as another scan, and concurrent scans got almost ideal behavior -- each ran in about the same time as if no other scan was in progress (with no overhead in the single scan case).

Linux is clearly interested in allowing more hooks and making them more useful. From an engineering standpoint, that makes more sense to me.

Two other points:

* I'm a little skeptical that such a bypass can easily be made resilient to some strange/degenerate cases.

* You say that the reason an open source system won't do it is because the MVP is too expensive. But the MVP for a cost-based optimizer is also very expensive, and postgres has one of those. I think that was a much better investment than investment in the filesystem/scheduling layer.

comment 12y ago · link · parent

I assert that open source databases don't do it because it's a bad idea. It's the kind of you do when you have a lot of spare engineering resources and not many innovative ideas.

Not only is the initial devepment expensive, so is the maintenance burden. It makes every new idea cost more to implement.

Postgres has been extraordinarily innovative; offering things like transactional DDL, advanced indexing, first-class extensibility, serializable snapshot isolation, per-transaction durability, sophisticated constraints (e.g. non-overlapping ranges), etc. These features are possible because postgres didn't get bogged down reimplementing and maintaining a filesystem.

And what would all of that work gain, anyway? +25% single-node performance? Not a very strategic direction to go for databases. Better to improve JavaScript/json support and get a good logical replication solution in place.

That being said, there are some low level features that are really worth doing. Robert Haas (the author) did some great work with lockless algorithms, which has achieved great concurrency with a manageable maintenance burden.

comment 12y ago · link · parent

Who exactly are the parasites, who is the host, and how did the parasite benefit at the expense of the host?

If the parasites are investment bankers, and the hosts are the investors with 401(k)s, then fine. But that has nothing to do with music.

If GC is the host and the investment bankers are the parasites, that doesn't quite make sense. GC apparently sought out the "parasites" at every turn, and that doesn't sound like a normal parasite/host relationship.

It sounds to me more like a business that just used too much leverage/debt, presumably to grow quickly. That works sometimes, and sometimes collapses. This time it collapsed. The times it works it doesn't make the news.

So what's special about GC?

comment 12y ago · link · parent

Why can't the printer detect areas likely to be distorted, and apply the transformation itself?

Then, you send the printer what you actually want it to look like, which makes more sense to me.

comment 12y ago · link · parent

I wonder what would happen if netflix called their bluff?

People all of a sudden start to notice that House Of Cards plays more smoothly over their 4G cell connection than their expensive cable connection, and how does Time Warner explain that?

comment 12y ago · link · parent

It's interesting that the development is not really designed for public contributions; only contributions originating in the "webscale" companies.

comment 12y ago · link · parent

Is the project committed to being 100% compatible with oracle mysql?

comment 12y ago · link · parent

There are two kinds of reverse discrimination:

One is an active reverse discrimination that is attempting to tilt the balance back (often enforced with some kind of law or policy). This has all kinds of well-known problems (that arguably are larger than the benefits).

The other is a more natural reverse discrimination that comes from collecting the missed opportunities of your competitors. If your competitors reject candidates for frivolous reasons, then it's easier for you to hire qualified people. I think this is what the parent comment was doing, and it doesn't strike me as a problem.

comment 12y ago · link · parent

Imagine telling this story to someone that time travelled from the time Magic: The Gathering first appeared in the mid-nineties.

MtGox: "Funny story ... internet ... website to trade Magic cards ... digital currency ... so that's how we found the $100,000,000 that we accidentally misplaced. Still looking for the other $300,000,000 or so -- must be around here someplace."

comment 12y ago · link · parent

It would be interesting to compare how many cases would be silently fixed by such a change.

comment 12y ago · link · parent

"There are many safety-critical systems that aren't hard realtime."

I'm not convinced you can make such a clean separation.

comment 12y ago · link · parent

Interesting, thank you. I wonder what is causing that decline?

A more libertarian type might say that the increasing power of government is driving small business out through various types of intervention. Evidence would include the ever-increasing share of GDP made up by government spending. This would be countered by the fact that you can still start most kinds of businesses with remarkably little federal involvement aside from taxation.

Someone more inclined toward central planning might say that the information age is making central planning more effective. Evidence would include companies like amazon that have amazing reach. That would be countered by the observation that there are still a lot of small businesses that sell through amazon and set their own prices; and amazon has many robust competitors for each product they sell.

comment 12y ago · link · parent

"Right-O, no waste in small businesses. The smaller the business, the more efficient."

I didn't say that; no need for the sarcasm.

The answer is somewhat complicated. Small businesses have an advantage because the information flow between directly involved parties and decision makers is very short; possibly the same person. They can notice an inefficiency and correct it immediately, rather than needing some kind of permission or authorization (which is inherently a slow way for information to travel because it involves other people). They can also seize opportunities quickly for the same reason (which may involve changing prices or making a non-traditional deal).

Large businesses can get economies of scale, although I think these are dramatically over-emphasized. Producing one marginal unit may be cheaper up to a point, but eventually the next marginal unit becomes more costly than the last (because there becomes so much demand for the inputs that it increases the price). That's the nature of the supply curve. Often, businesses that deal in huge volumes and have great economies of scale are medium-sized or even small. Of course, there are some industries where economies of scale are crucial and only large businesses or governments can really operate efficiently.

Large businesses have greater political influence and more ability to work in a regulated/political/government environment. This is perhaps their greatest advantage.

I'd be interested to see the numbers you have about the share of the economy powered by small/medium businesses. Is it a long, consistent decline, or more of a local minimum?

comment 12y ago · link · parent

What you just described sounds like a lease, to me. I'm sure that's fairly common.

The problem you run into here is: who gets the lease money? Why should the DOT get extra money just because they bought a building that is too big?

The root of the problem is that budgets are based on perceived need with no downward pressure. The DOT has every incentive to make the perceived need higher, and leasing out half of their office space is not a good way to do that.

comment 12y ago · link · parent

The CBO scores based on the information given to them. It's a "garbage in, garbage out" problem.

comment 12y ago · link · parent

Why does buying and selling buildings cost money?

First of all, it can take some effort to find a buyer. This effort needs to be expended regardless, and I don't see how it's better to in-source the work to the selling government agency. They are not professional brokers, have little incentive to act quickly or efficiently, and we've already established that they don't have any magical database that makes the buyer obvious. Just let a commercial RE broker handle it like a business would.

Second, you need to settle-up the accounting so it's no longer on the seller's books, and is now on the buyer's books. That means you need to agree to a price. You can skip this because "it's all part of the federal government", but that leaves us with the mess we have now: nobody knows what buildings are being used by whom at what cost. Accounting costs are not waste; otherwise large private (not publicly-traded) companies would fire their accountants. So it seems like the best course of action is to do the same negotiation and accounting work that happens as a part of the sale.

So the buying/selling costs are not a waste, they are money well-spent. It's possible to make them more efficient in special circumstances -- maybe the costs of due diligence, fraud prevention, title insurance, etc. are little or nothing when buying from the federal government. But those special cases can be handled as special cases and there could be a cheaper, quicker path to sell if those circumstances are met.

comment 12y ago · link · parent

What is the incentive to say you're not using the space? It could force you to move to a more cramped location and extend your commute. And your agency's budget is now permanently lower, with no benefit you can see.

Better to just fill up the space somehow; even it it means hiring do-nothing people.

comment 12y ago · link · parent

That's the problem with central planning. When you look from the top down, every gain seems tiny.

But small businesses would know if a chair was underutilized, and it would be sold in 10 minutes; let alone a whole building. Taken over the whole economy, these efficiencies are a big deal, and arguably account for the success of market economy over centrally-planned economies.

comment 12y ago · link · parent

Like hire someone to sit inside it all day?

comment 12y ago · link · parent

How are those "reasonable"?

The purpose of a sale is to find out who wants something. That's the economic system we use.

Aimlessly asking around works when you want to know if your cousin wants your old sofa before you craigslist it; but is just ridiculous in any larger context.

comment 12y ago · link · parent

"to me it does."

How? What action should be taken, given a diagnosis, that should not be taken otherwise?

Do you think she would voluntarily accept treatment that would make the eviction process easier?

comment 12y ago · link · parent

What difference does it make? Pretty much everything has reasons behind it. A diagnosis is just giving one of those reasons a name.

comment 12y ago · link · parent

What specific device and software are you using? Perhaps the problem can be fixed once it's identified.

comment 12y ago · link · parent

Right. That confusion is what causes some people to think that a tax cut is the same as government spending.

comment 12y ago · link · parent

Question:

If the bitcoins were stolen, and the thieves later try to trade them, will that be obvious from the blockchain? Or can they successfully spend them without anyone realizing they are stolen?

comment 12y ago · link · parent

The state is not doing the bidding of entrenched interests. The state is just more comfortable with the status quo, and the entrenched interests take advantage of that.

When ascending in power, people are ambitious, and willing to stir things up. As soon as they reach a powerful position and don't think they will make it much further, they get lazy. They can still make and break businesses if they really wanted to, and they could get new revenue streams (campaign contributions, nepotism, etc.). But they are comfortable and lazy, so they won't.

When speaking with politicians, I doubt businesses make many demands. Politicians have expected contribution levels, etc., which are essentially demands. But I doubt businesses want make a demand, for fear that the politician will feel threatened and cease being lazy.

Instead, businesses feed on the laziness of politicians by offering to do all kinds of things like studies and research and authoring large portions of bills.

comment 12y ago · link · parent

That is a minor detail. It will not stop the government from cultivating a sense of fear and dependence, and then passing laws to make us safe -- which coincidentally happen to remove our freedom and increase government power.

It doesn't matter whether you use bitcoin; it can jump up and take your money away. Your children might invest in bitcoin because of peer pressure. If bitcoin falls, it will take your bank with it and it will cause a drought and your crops will fail because everything is globally interconnected now. "Online banking" is a euphemism for speculating in digital currency. If the price of your house falls by more than 20% then you automatically get evicted --

...Oh, oops, this was about bitcoin. Oh well, doesn't matter. Just as long as you're afraid enough that you turn in all of your freedom.

comment 12y ago · link · parent

"Other than garbage collection..."

Control over memory management is a major, major design point. In my opinion, it's a lot more significant than whether it runs in a VM or uses native code.

For one thing, running in a VM vs. native code is usually an implementation detail. But the only language I can think of where memory management appears to be an implementation detail is Ada.

1
646566
87