Better HN
topnewbestaskshowjobs
Log inSign up

wireprotocol

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

Submissions

comment 11y ago · link · parent

"Does your conspiracy theory encompass the whole globe?"

It doesn't have to, it only has to affect those countries in which the decoupling is taking place. Not sure if that makes it more plausible or not.

comment 11y ago · link · parent

"We’re not saying that social choices have no effect, and for that matter, we’re not saying that globalization has no effect, either. However, there seems to be a common underlying force that’s affecting all these countries. We think that force is technology."

It would be nice if they expanded on that. What other trends are at work, aside from technology, that might also coincide with this "decoupling". Globalization and immigration are two things that merit more discussion. Why do they think technology predominates?

comment 11y ago · link · parent

I used to think like that: learn all of the quirks and the internals behind them, and you always have an explanation.

With postgres, I always had an explanation why it was doing so much work on every update, and why replication was so hard, and why checksums were impossible to implement efficiently, and why index only scans wouldn't work, and...

After seeing that all of these things were fixed by people who didn't think that way, I changed my mind.

This Go behavior is surprising behavior and non-deterministic. Changing a constant can have some bizarre action at a distance that breaks your code. It affects ordinary code even if the author doesn't care about these details. I really don't see anything good about it even if you do understand it.

comment 11y ago · link · parent

"DO UPDATE SET description=description;"

I think that should be:

"DO UPDATE SET description=excluded.description;"

And doesn't it also need an inference clause or constraint specification for DO UPDATE?

Please update example code to be self-contained, so that readers can copy/paste.

The example itself -- upserting product descriptions from another data source -- is a great one though.

comment 11y ago · link · parent

Can't they use the standard single quotes then?

comment 11y ago · link · parent

This is great... but I am torn because, as someone who has spent a lot of time with databases, I feel like there are many mistakes that can lead to confusion.

First, it's not teaching standard SQL, it appears to be teaching MySQL. That means any user who tries out any other system will immediately run into confusing error messages about the double quotes. Not ideal, and totally unnecessary -- sticking to standard SQL should work reasonably well in MySQL anyway (at the beginner level, at least).

Second, in the section "Creating Tables and Inserting Data", the teacher jumps into surrogate keys immediately. Again, I feel that is unnecessary and will just lead to confusion. The beauty of a relational database is that it connects with the real world; and having arbitrary numbers floating around destroys that beauty.

I really hate to criticize, because I really support the effort. Hopefully my feedback is useful.

comment 11y ago · link · parent

I almost never see this as a justification, but machine languages make it a lot easier to understand all kinds of computing topics.

Things like assignment, pointers, variable/value confusion, etc., that trip up novices in any high-level language are fairly trivial to understand if you teach them with machine language.

People talk about a bimodal distribution in CS classes, and suggest that some people just can't learn these topics well. Perhaps I'm naive, but I have a hard time believing that they are incapable of learning these fundamentals if presented using machine language.

comment 11y ago · link · parent

https://github.com/citusdata/cstore_fdw

If you haven't found it already.

comment 11y ago · link · parent

"Competition is for losers" seems like pretty weak reasoning to me. As far as I can tell, it goes something like:

Success is not random. Therefore, if you are successful, there is something different about you. Therefore, you are a monopolist. Therefore, competition can't make you successful.

But that's not very helpful. Every business on the planet can claim some kind of differentiation -- maybe their supply chain is more efficient, or their company structure is superior, or their sales channels are smarter, or...

More differentiation might be "better" in some sense, but differentiation is often decided after the fact. It wasn't obvious that Google was differentiated until they took over the market.

comment 11y ago · link · parent

If you are comfortable being friends with many different kinds of people, it may be just fine.

If not, you may be bad at leadership regardless.

comment 11y ago · link · parent

Inaction, hesitation, CYA, stay out of the way, etc.

comment 11y ago · link · parent

Nice, balanced article on an emotional topic.

I think most people would agree that the video should come into evidence if someone ends up dead. Also, most people would agree that videos should not all be released publicly. But there are a lot of difficult situations between those two extremes.

Even if the rules about releasing footage are quite restricted, I think body cameras will influence the behavior of police. Not always for the better necessarily, but I think they will reduce the number of fatal police shootings.

comment 11y ago · link · parent

"garbage collection was his example of a very successful abstraction...we are still looking for a really good abstraction to replace threads"

Isolated preemptible processes are a more successful abstraction than GC or threads. Why are threads the comparison point for concurrent abstractions?

comment 11y ago · link · parent

It sounds like the interviewer didn't care much about the interview, and conducted it while driving so that he didn't waste time out of some other part of the day.

(Of course, this is pure speculation based on a third-hand one-sided account.)

If so, it has nothing to do with discrimination.

comment 11y ago · link · parent

What is the significance of that though? As you say, it's not partition-tolerant, so while partitioned, the system is down. As soon as the network issue is resolved, you can determine the state of your transaction.

It would be foolish for a client to issue a COMMIT and then assume the transaction aborted because of a connection drop. The client should wait until the connection can be reestablished and determine the real transaction state before making a decision based on it.

It's the same issue as with a power failure during fsync. The durability of that transaction is indeterminate, but it doesn't matter because the system is down. Before the system comes back, it will go through recovery, and either find the commit record or not, thus getting back to a determinate state.

comment 11y ago · link · parent

To me that's not surprising. If the client connection drops, you might not know whether the transaction committed or not... the only way to know is to reconnect and inspect to see what happened.

If you want to avoid that kind of problem, use 2PC.

Do you (or the author) see this as a bug, or just something that might surprise people who haven't thought through the guarantees?

comment 11y ago · link · parent

But maybe antibiotics are not the first line. The first line is probably: eat fiber, avoid sugar, drink water, sleep 8 hours, and exercise 2 hours per day.

Then nobody would do the first line, and the whole point would be moot.

comment 11y ago · link · parent

Market forces will force us to start conserving and optimizing now; and solving problems sooner is generally better than solving them later.

comment 11y ago · link · parent

"the Central Valley, which is, geologically speaking, a desert"

Source? It seems contrary to what wikipedia says on the subject:

"The northern Central Valley has a hot Mediterranean climate; the more southerly parts in rainshadow zones are dry enough to be Mediterranean steppe or even low-latitude desert." -- http://en.wikipedia.org/wiki/Central_Valley_%28California%29...

comment 11y ago · link · parent

Normally, I think of ways to increase involvement with OSS communities.

He's helping people, and probably learning in the process, which is great. But it would be even better if he could add a touch of "help people help themselves"; otherwise I'm concerned that the OSS process will feel a little more sterile.

comment 11y ago · link · parent

Is there any reason ticket sales happen like this, rather than just selling directly from the venue? Why is scalping a crime, why not just sell at market price to begin with?

comment 11y ago · link · parent

Both are forms of juxtaposition, which carries meaning by itself. Logically, juxtaposition does not need to carry meaning, but to humans it does.

For instance, try comparing the next person you meet with a hyena. It's not likely to be taken as a neutral thought experiment.

comment 11y ago · link · parent

Can you please expand?

comment 11y ago · link · parent

I'd summarize the replication story of postgres to be: "harder to use but easier to understand".

PostgreSQL generally builds things from the bottom up -- first working really hard to get the fundamental infrastructure right, and then the utility starts falling into place.

This has a few advantages:

* The fundamental infrastructure tends to be more general, so many different functional improvements come out quickly after the infrastructure is in place.

* It forces everyone involved to think through the edge cases first, leading to a more robust feature and a better-tested feature.

* When things go wrong, all of the parts make more sense individually, so it's easier to understand what happened and fix it.

* Eventually, the usability issues are addressed in a way that's not dependent on a lot of black magic.

Anecdotally, when things go wrong in $MAGICALLY_REPLICATING_DB, they tend to go very wrong, very fast. I am skeptical by nature, so I generally assume that $MAGICALLY_REPLICATING_DB glosses over a lot of the finer points, which don't get exercised in a normal testing environment. I haven't presented any facts here, so you may disagree.

A lot of people share my skepticism, and are willing to put up with a few rough edges in the usability as long as the pieces make sense and they feel they can understand and trust them. I was at a presentation by Instagram, and replication was one of the primary reasons they went with postgres. They used a tiny engineering team (one and a half engineers working on the database) to scale to tens of millions of active users (also using sharding; another thing that is harder to use but easier to understand in postgres).

comment 11y ago · link · parent

Every time I've started to learn prolog, I feel like it's too much about the language and nothing about the environment.

I realize that prolog is a language, but it's much harder to learn things when they are purely abstract. A good implementation and a good library go a long way.

I don't have a problem with non-mainstream languages. I like erlang.

I tried learning haskell, too. I didn't get hung up on monads; I ran into a wall when I found out there was no good way to use haskell as an embedded language or call a haskell library from something else without pulling in a big runtime (which interferes with non-trivial host applications). Correct me if I'm wrong.

comment 11y ago · link · parent

People's appetite for news is so universal and intense that I have to wonder if it's serving some important purpose that the author is missing.

I, too, have moved away from most kinds of news. I only read tech news, and I could make an argument that tech news is more actionable. But even that, I spend less time on fewer sites. I used to look forward to a chance to catch up on HN, now I read it mostly during moments when I'm waiting for something else.

So, what am I (and the author) missing? Or what is society missing because we don't participate in the news cycle?

comment 11y ago · link · parent

I mostly agree, but that's true any time you wrap a complex problem up into a single number. I am merely arguing that, if we pick a single number, deaths-per-passenger-mile is much better than deaths-per-licensed-driver.

I guess you are saying that deaths-per-trip is an even better number. That would be interesting to see, I agree, but as an additional number, not a replacement.

comment 11y ago · link · parent

There's obviously a connection between driver's licenses and miles traveled, but if you have the latter number, why use the former? It makes the benefit more obscure and reduces the accuracy (for instance, if passengers of self-driving cars drive more or less than passengers of human-driven cars).

Also, it doesn't offer a good way to compare against things like air travel.

comment 11y ago · link · parent

That may measure the average driving ability; but it doesn't give you any hint as to the benefits (more driver decisions don't seem like a benefit to me), and it also doesn't give a good way to compare with alternatives.
1
555657
87