Better HN
topnewbestaskshowjobs
Log inSign up

wireprotocol

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

Submissions

comment 10y ago · link · parent

I liked the suggestions, but they only make sense if you know what you want to learn.

To figure out what to learn next you have to have some kind of filtering criteria or you will just be randomly jumping between technologies (which isn't a terrible idea for beginners, but would get highly wasteful for experts).

comment 10y ago · link · parent

Normal views aren't designed for security. There are a number of ways that they can "leak" information that is supposed to be hidden.

The reason is that the optimizer reorders operations. So, a tricky person can write the query in a way that, for example, throws a divide-by-zero error if someone's account balance is within a certain range, even if they don't have permission to see the balance. Then they can run a few queries to determine the exact balance.

RLS builds on top of something called a "security barrier view" which prevents certain kinds of optimizations that could cause this problem.

It also offers a nicer interface that's easier to manage.

comment 10y ago · link · parent

What does the author think should happen here?

Two servers independently committed conflicting transactions, which is always a possibility for multi-master in the general case. You can't have independence and dependence on the same variable at the same time.

Now, maybe BDR could do better for the case the author is concerned about, but the author hasn't explained what it should do and why it's better.

The author seems to want the entire conflicting transaction to be rejected, but it's already been committed on the remote node so I don't see how that helps. They will never be back in sync again until you sort it out.

You should use BDR in cases where you can come up with some reasonable conflict resolution. For instance, allow inventory to go negative, and inform one customer of a delay with their order.

comment 10y ago · link · parent

Does RISCV also specify privileged instructions? Or only the instructions an application would use?

comment 10y ago · link · parent

I really wish nobody would pay attention to quintiles. They cause more confusion than anything, because they don't follow people.

Even high earners spend maybe 25% of their life as high-earners and the rest of their life as low-income. That does not mean poor, just low-income. They might be college students, PhDs, doctors in residency, or just building up their careers still.

comment 10y ago · link · parent

This discussion would be more interesting in the context of major new developments in OS kernels.

Microkernels are basically solving an engineering problem. That's exciting when engineering is the bottleneck holding up a bunch of really innovative ideas.

So what are those amazing kernel ideas being held back by engineering difficulties?

comment 10y ago · link · parent

I think one fundamental miscalculation went like this: early adopters will start writing new code in python3, and it will gradually become more normal for new code to be python3, and eventually it will snowball and python2 will become legacy.

The problem is that early adopters have a choice: python3, or a completely different language. And there are a lot of good languages to choose from, and early adopters are a more radical by nature.

That's why breaking backwards compatibility is almost always worse than it looks like on paper: the early adopters you are counting on to get you through the transition are also the most likely to leave your platform completely.

comment 10y ago · link · parent

I've spent more than that amount of time casually trying to make sense of monetary policy, simply out of interest.

I do not feel competent to take part in a decision about the reserve requirement.

I guess you could set up a system where you delegate your vote to a third party on an issue-by-issue basis. An interesting thought experiment, but quite a few things to work out. My guess is, at the end, it would be similar to the system we have.

comment 10y ago · link · parent

"makes oneself enlightened before vote"

How long does it take for someone to be competent to vote on monetary policy?

It's ridiculous to expect a voter to spend that amount of time on every issue.

comment 10y ago · link · parent

I'm not sure I agree that there needs to be symmetry between compliments and insults.

I think the right approach is to compliment specific groups and people and behaviors; and criticize only behaviors. The specific people/groups who are behaving well will value the personal credit and build on it; the specific people behaving badly can take impersonal criticism without feeling the need to be defensive.

Occasionally naming names is warranted in criticism, but that's the exception.

comment 10y ago · link · parent

Be careful listening to that kind of stereotype. It's often promoted by natives who are outperformed economically by immigrants. That builds resentment and can have horrific consequences.

Finding moral fault in others is often just a way to explain their own lack of accomplishment.

Not always, of course. But something to be very careful of.

comment 10y ago · link · parent

That's true as long as everyone is acting in good faith.

comment 10y ago · link · parent

"Check out the UNIX man for tail, grep, ... to see how strange above quote about 'unix philosophy' is."

I think a lot of that is due to the untyped nature of unix. Everything is text, so you constantly have to specify details about what the actual input is.

Not sure if that applies to lisp or not.

Granted, that's not the only reason.

comment 10y ago · link · parent

I don't think laziness is as much of an issue as the GC. You can't write a Haskell library and the link it into arbitrary programs safely.

If you want to write a new libssl or libjpeg, you need to use c, c++, or rust (or a few others, of course).

comment 10y ago · link · parent

You assume it's for safety, but it's more likely to be a case that the car can't handle at all and simply stops.

For instance, if there's some kind of minor obstruction, a human may decide to drive over it or go into the oncoming lane or get out and pick it up or follow an officer's instructions.

comment 10y ago · link · parent

"Much of our market economy operates on the assumption that when you buy/spend more you get more per unit of spending."

Supply and Demand says the opposite. The supply curve slopes upward, meaning that a higher per-unit price is required when the aggregate supply is higher.

Economies of scale apply in some situations, but people generally place way too much weight on them.

comment 10y ago · link · parent

I don't see any reason the author made the jump from "xz is better than gzip" to "stop using gzip!".

What is the compelling thing here that makes him feel that this is a moral imperative?

comment 10y ago · link · parent

I'm curious what you do. Do you use try!() extensively, and fine it just fine? Or do you use something else, like .unwrap()?

comment 10y ago · link · parent

Great to hear! Thank you.

comment 10y ago · link · parent

I know this seems like a trivial issue, but I've been bothered by the try!() macro for a while. I keep hoping then will adopt the "?" postfix operator to mean the same thing, because it seems to increase readability a lot.

I'm open to other ideas too, but that seemed like the simplest way to get the error handling out of the way.

Ordinarily I try hard not to complain about syntax, but this seems to cause people to use .unwrap() where it's not safe (like a library).

comment 10y ago · link · parent

So many things are arbitrarily framed in a moral context that it seems hard to agree or disagree with this thesis.

For instance, we typically think of gang shootings as violence caused by greed or desire for power. But it's also common to frame it as a moral issue, such as "they shouldn't have been operating in my territory without paying" or "they were going to double-cross me".

Why do we take the moral explanation at face value? Just because the ostensible reason is morality doesn't mean that's the real reason. They may have already decided what they were going to do, and rationalized it with morality later.

comment 10y ago · link · parent

Retirees typically count as low income, so I included the retired years as low income.

Another consideration is household size. Before, retirees may have been more likely to live with their children, but now they live more independently.

comment 10y ago · link · parent

But is it inequality from one person to another, or just unequal life stages for the same individual?

You could imagine a college student from a middle-class background earning very little from 20-30, then being middle-income from 30-40, then upper-income from 40-65, then retired until 85.

Their independent life (20+) is 65 years, of which 30 are low-income, 10 middle-income, and 25 high income.

comment 10y ago · link · parent

This could also represent a compression of income-earning years. For instance, if more people spend their twenties earning little, but then their income jumps up a lot by the time they are 40, they may look middle-income for only a few years.

I'm not saying this is what's happening, but based on the numbers and definitions, it's possible.

In general, this kind of snapshot definition trying to capture the middle class is misleading. You should follow individuals over their life to see whether they are thriving or struggling.

This is not even a class mobility issue. It's more of a life cycle issue.

comment 11y ago · link · parent

"without the motive power of capital, things move slowly"

slowly?! We've amassed huge collections of detailed knowledge in mere decades, and it's all searchable and discoverable.

"not one big pool of knowledge"

The real fantasy is centralization and taxonomies of everything. Distributed isn't a lazy thing we've settled on; it's the best approach. Each island grows about as far as it makes sense, and connects to other islands where it makes sense.

Sure, it may be imperfect and some datasets are hidden in corporations, but open data is certainly a healthy and growing ecosystem in no danger of extinction.

comment 11y ago · link · parent

The more someone has a vested interest in your behavior, the less freedom and privacy you will have. That goes for health insurance companies, which want to accurately price in things like your diet and sleep.

But the same principle applies to government social programs. All money comes with strings attached.

comment 11y ago · link · parent

Yes, because it's a literacy issue.

By that I mean that learning something about programming is a prerequisite for such a wide range of things that you will be left in the dark without basic programming knowledge.

Machines have been complex for a long time, far too complex for everyone to understand. But generally, even a novice can understand any one particular detail if they care to. Engines are complex, but you can quickly read up on the cycle it goes through, and get a vague understanding.

Except how the valves are controlled, because now those are computer-controlled, so you must know how a computer works to understand. Before, you could have asked some questions and got an explanation about push rods or cams or something, and walked away feeling comfortable with that explanation.

So programming has become a fundamental dependency to understanding a wide range of things

comment 11y ago · link · parent

The roads are pretty good around my area. Maybe that's because I voted for a small local tax increase for that purpose.

Assuming your correct, it probably has a lot of other contributing factors. The federal government gets by far the largest share of tax revenue, but a lot of transportation issues are felt more at the state and local level.

I doubt transportation problems are due to a lack of federal tax revenue. Keep in mind most governments in the world are smaller than a big US state. Incentives and priorities get distorted a lot when you have one entity responsible for trillions of dollars of annual expenditures.

comment 11y ago · link · parent

The trade is this: if you made $100 and your marginal tax rate is 20%, you can either (a) let the government spend $20 however it sees fit and you spend $80 however you see fit (which may be an $80 bottle of wine); or (b) you spend $100 on any charitable cause you see fit (which must meet certain requirements).

That doesn't seem like a bad trade to me, especially since rich people have fairly low marginal tax rates.

comment 11y ago · link · parent

Listing features is a bad way to choose a language[1].

Program something in it, and if you get a good feeling, then probably a lot of other people will too, and the language will take off.

Larry Wall is a linguist, and I think that is probably what sets perl apart more than anything.

But yes, it happens to have the kitchen sink, too.

[1] Unless you have hard requirements, like control over memory or runtime environment.

1
525354
87