7,244 karma · joined Sep 25, 2010 (16y ago) · 2,593 submissions
comment 12y ago · link · parent
To make a real entrance into the server market, I would expect good virtualization support to be nearly a requirement.
comment 12y ago · link · parent
Regardless, it doesn't take away from my point. Getting something to work in that environment for a decade (I suppose I should specify that it's an Earth decade) is quite an accomplishment.
Let a few people feel a little pride of accomplishment. And let the rest of us feel inspired that such a feat is possible.
comment 12y ago · link · parent
If the author did mean some kind of violent uprising, then I stand by my point. There is little historical basis to think that the sort of inequality should be expected to lead directly to a revolution.
If that's not what the author meant, what did he mean by "storming the gates"? I guess it was a metaphor, but for what exactly? What purpose did it serve? I guess you can say the real point is elsewhere, and the title was just linkbait.
Regardless, it would almost be a challenge to not read the entire piece. It was incredibly short -- but I double checked just because you asked, and yes, I did make it to the end.
comment 12y ago · link · parent
Americans revolted over fairly minor issues. Other people stay under very serious oppression for many generations.
comment 12y ago · link · parent
It was designed for a few months. On its 10-year anniversary, I think it's worthy of a news article.
Sure... not much to say, but then the article wasn't very long, either. A couple facts, and the rest was filled with pride and other light reporting, like the feature article that it is. I don't know much about journalism, but it wouldn't seem out of place next to a feature about a successful restauranteur or a dog that saved someone from drowning.
Is hard-hitting and just-the-facts the only acceptable form of journalism or something?
To me, this was at least worth the bits it was printed with. I'm glad to know that people still care enough to do something so well that they can launch it on a rocket, land it on another planet, and keep it running and sending data back to Earth for 10 years straight.
comment 12y ago · link · parent
Low tech, but would offer a way to help people without risking your own life.
You'd need surveillance or something to prevent people from using it as a prank though.
comment 12y ago · link · parent
Executor changes are much less intimidating and lots of people make executor changes. In my opinion, the executor is the most approachable/easiest major component.
I would encourage people to not get intimidated though. For every project where I was determined enough, I succeeded. Tom Lane does especially amazing things, of course, but I think reasoning like "I'm not Tom Lane, therefore the planner is too hard" is the wrong lesson to take away.
comment 12y ago · link · parent
https://commitfest.postgresql.org/action/commitfest_view?id=...
Review is a good way to learn about new features, by the way. That's the main reason I'm able to actually write recursive queries, for instance.
comment 12y ago · link · parent
Probably wise in general. This particular case is peculiar because postgres doesn't optimize distinct aggregates at all (see my other comment: https://news.ycombinator.com/item?id=7115707 ), so it's possible that the rewritten query is actually more optimizable than the original.
The original query won't adapt to changing data sizes or distributions as well as the rewritten one.
This is not fundamental, nor universal. It's a specific limitation of postgres, so I still agree with your general advice. And postgres may fix this, so your advice may prove to be true even in this situation in the long run.
comment 12y ago · link · parent
DISTINCT itself is handled well, e.g. "SELECT DISTINCT x, y ...".
But the distinct aggregates are not really seen by the planner, and they are always implemented with a sort. So this is a peculiar case for postgres.
One reason is because distinct aggregates can be more complicated to plan when you have a case like: "SELECT COUNT(distinct x), COUNT(distinct y) ..." because you actually need two different distinct sets as input.
Some databases have solutions for that problem, but postgres does not.
comment 12y ago · link · parent
It still leaves room to determine how and when to achieve the DISTINCT property, perhaps even doing no work at all.
* It can do a sort+unique or a hash, depending on cardinality, availability of memory, and a few other factors.
* It can push down a distinct or pull up a distinct, resulting in a faster plan.
* If there is another part of the plan that already implies distinct, like a GROUP BY, then it doesn't need to do any work at all. (Or similarly, if you're doing a distinct on a primary key).
comment 12y ago · link · parent
If you asked a different question, like "explain how you read code in the course of a typical project or experiment" you will get a ton of examples. They might describe how they look to understand the basic data structures, and then imagine some sample data flowing through the algorithm to understand the purpose, and then examine the details, edge cases, and interactions to see why some non-obvious choices were made. Then they might describe how they use this to find what parts of the code should be generalized, specialized, or extended to fit new functionality.
It might be interesting to incorporate code reading into an interview to see the strategies that people use. It would be quite difficult to make it a fair question, though, because patterns vary widely and it often takes more than an hour or so to adapt.
comment 12y ago · link · parent
That doesn't mean that reading it is any less important, or that writing readable code is any less important, or that code is all an ugly mess not worth reading.
It may mean that the reading pattern for code might not lend itself toward a reading group in the same way that literature does. So we might need to either spend more time reading code in solitude or develop new ways to do reading groups that work for this style of writing.
And it just seems plain ridiculous to say that people don't spend time reading code. People do read code, but they don't think about it as "reading" in the same way as someone reads a book, so they don't have it readily at hand when asked.
comment 12y ago · link · parent
But now it looks like it's catching up, and has some nice userspace tools, and some features that I don't even think zfs has (like the option to do overwrite-in-place, but you give up checksums/compression).
The user tools seem worse than zfs, but it does look like btrfs will be a leading filesystem soon.
comment 12y ago · link · parent
In other words, once you give government power, there's essentially no chance that they will relinquish it.
comment 12y ago · link · parent
Once the people are already there, they need to get home somehow -- what do you expect? How do fewer taxis help the problem?
comment 12y ago · link · parent
Not necessarily -- they are both important.
Consider how much impact the decisions of one central government in China have, now that they are the largest trading nation. You couldn't say the same thing about a small nation with high per-capita trade.
comment 12y ago · link · parent
I think it was a partial truth. In many cases, you can't optimize because you need to produce the same results as if you had evaluated the CTE in full exactly once.
CTEs are also a convenient place to have an optimization fence, which are sometimes useful. Yes, this conflates the logical and the physical, but that's the way it is in postgres.
comment 12y ago · link · parent
No. You can optimize them however you want and still comply with the SQL standard; you just can't produce different results.
Different results are really only a problem when the CTE is non-deterministic or has side effects. If you know that the CTE is deterministic and has no side effects, you can just treat it like a macro.
comment 12y ago · link · parent
I did things a little out of order though, so maybe it's easy to accidentally (or intentionally) miss assembly for a while.
comment 12y ago · link · parent
That is the solution? I am not impressed.
They are also fairly easy to test scientifically, and considering he's a researcher, then why didn't he do so?
comment 12y ago · link · parent
I think it's useful to be optimistic when it comes to visions of the future and how a business can accomplish it. Electric cars for everyone? Sure, give it a try. All that can be lost is a little money, and maybe you make a huge fortune and change the world. Isolated government programs can be a similar story -- e.g. NASA, which is unlikely to lose anything but a small amount of money but can be really inspiring or create some great things.
However, when it comes to government policy, the downside can be utter disaster. It pays to be a little skeptical that the "help the poor" bill (or whatever other utopian title) will actually deliver as advertised. Or skeptical that a war will be a simple in-and-out proposition.
Or some things just have little upside. We see this all the time in engineering. Someone wants to use a fad technology or model of some kind, or wants to reimplement something to be a little faster, or whatever. There's huge project risk that it could derail other projects and destabilize the entire product -- which is fine if you're going to change the world with it, but not fine for a 10% speedup on some specific workload.
Moral of story: optimism and "can do" attitude is good when the upside is huge and the downside is contained (like in a startup). Not exactly a profound revelation.