7,244 karma · joined Sep 25, 2010 (16y ago) · 2,593 submissions
comment 12y ago · link · parent
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
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
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
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
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
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
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
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
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
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
Better to just fill up the space somehow; even it it means hiring do-nothing people.
comment 12y ago · link · parent
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
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
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
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
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.