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

I don't think you read the article. You misinterpreted the headline.

comment 12y ago · link · parent

Regarding the IOMMU:

A recent post revealed some security problems using firewire (and a few other technologies) related to DMA[1]. Would the IOMMU features you're talking about prevent that problem?

[1] https://news.ycombinator.com/item?id=7123121

comment 12y ago · link · parent

Good summary, but after reading this thread I'm still confused.

Why ARM?

How does the ISA impact the aforementioned criteria?

Why would a phones demand a different ISA?

comment 12y ago · link · parent

Does the ARM architecture have anything like the nested page tables in recent x86-64 chips? Or is that an orthogonal processor feature that is not required (or forbidden) in a particular implementation of ARM/x86-64?

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

A strange point: so you're saying that because they designed it to last longer, that lasting longer is not as much of an accomplishment? Like the optimism of the engineers detracts from the results when that optimism is realized?

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

Perhaps I took "storming the barricades" too literally, but the author kept repeating it.

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

The premise is so far off, I don't know where to begin. Revolutions have complex causes, so trying to predict it from a one-dimensional value like income inequality doesn't make any sense.

Americans revolted over fairly minor issues. Other people stay under very serious oppression for many generations.

comment 12y ago · link · parent

Tough criticism.

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

How about an emergency alarm/buzzer that alerts incoming trains to anything on the tracks -- people or obstructions.

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

This particular change, in it's complete form, would be challenging in my opinion. Many other kinds of planner changes aren't so bad though, but people (including me) tend to avoid them.

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

Agreed. There's a commit fest going on right now, anyone should feel free to jump in and review a couple of patches with us. Even if you don't know C.

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

"As a general recommendation I advise database developers to avoid exactly this sort of "outsmart the planner""

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

In postgres, distinct aggregates are a blind spot in the planner.

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

I've never heard DISTINCT described as imperative.

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

It's a cultural, psychological, linguistic mixup more than anything else. People do read code all the time, they just hesitate to respond to a question like "what code have you read recently". It's hard to answer that question in english without implying that you have completely read a program (rare) that was completely written (in other words, "finished", which is even more rare).

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

Agreed. It's more like dense technical writing than literature.

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

I thought btrfs was going nowhere for a while because it seemed way behind zfs for a long time.

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

"they don't allow you to store large files and that is what they want you to pay for...you can see here maximum file size is 250mb without paying"

I found that comment a bit jarring. Is 250MB file size max and 50GB total storage for free considered to be stingy now?

comment 12y ago · link · parent

"It's just the structure of government that someone in the executive branch isn't going to be willing to use all of their political capital in a battle that weakens their own authority."

In other words, once you give government power, there's essentially no chance that they will relinquish it.

comment 12y ago · link · parent

That sounds like a traffic control problem, a public transportation problem, and an event planning problem related to specific events rather than a need for medallions.

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

"prices would be driven down to bankruptcy"

Ample competition doesn't mean bankruptcy.

comment 12y ago · link · parent

"With three times as many people as the US, isn't passing the trade per person a more notable milestone?"

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

"Cross join" means cartesian product; i.e. no WHERE clause.

comment 12y ago · link · parent

"Of course I might have been told something that's not quite correct or I might have misunderstood."

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

"CTEs are defined as being optimisation boundaries and databases are not allowed to optimise across CTEs."

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

Depending on the track you take, I think that most programs do offer assembly quite early on. I took an x86 assembly class at a local community college, and then a MIPS-based class while doing my B.S. in EE.

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

"The poor farmer in India might need repeated reminders about weeding. One might not be enough. The minimum wage worker in America might need a couple of extra days to pay her bills instead of being slapped with a fine one day after payment is due."

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

Way too general to be useful.

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.

comment 12y ago · link · parent

This is still very practical when considering disk layouts of the structures. You want something compact enough on disk, but when it comes into memory, you still benefit from aligned access.

comment 12y ago · link · parent

"Littoral Combat Ships"

Does that mean lakes? Are we putting navy ships in lakes? If so, which ones?

1
666768
87