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

Deaths per mile is more useful because it compares the cost (deaths) with the benefit (miles traveled per passenger). Additionally, we can compare directly against alternatives, such as buses, air travel, and self-driving cars.

Deaths per driver's license doesn't tell us the benefit we are getting, and doesn't give us a way to make comparisons with alternatives.

comment 11y ago · link · parent

First, renting is supposed to be an option for mobile people. Renters' mobility is more important than homeowners' mobility, who have self-selected to be somewhere for a while.

Second, rent control generally makes you more and more stuck each month. Selling your home and buying a new one is a one-time hit, and if there is sufficient motivation, it will happen after a while (technically, brokers' fees increase with the home value, but they are 6% or less, so doubling the broker's fee is a lot more palatable than doubling your rent).

Third, home ownership offers other options, like renting it out, if Prop 13 keeps you stuck with the house.

Fourth, home ownership is not subject to the tension between a tenant and a landlord who doesn't want them there.

comment 11y ago · link · parent

For most things, opening up is noble. But not for a brand -- can you imagine Apple allowing other companies to use their brand for experimentation? Or Coca-Cola?

comment 11y ago · link · parent

This is why I find rust intriguing. It tracks the lifetimes using the type system, so it would be obvious to the programmer that the large strings would need to live as long as the list holding the small substrings.

I'm not a rust expert, but I believe that it's basically impossible to write something like the code in the bug report without getting a compile time error in rust. You'd either need to use a version of substring that makes a copy, or explicitly keep the large strings around.

comment 11y ago · link · parent

The counterpoint would be that exercise changes your body in all kinds of ways, which might have a bigger overall effect.

Not sure if it's true, but it's at least as scientific as "can't outrun your fork".

comment 11y ago · link · parent

Was a record keeping law broken or not? Real question; I don't know.

Obviously there are political motivations. But any time a law is broken by a candidate or official, it's hard to argue that it's not honest news. May be blown out of proportion, etc., but still legitimate news.

If a law wasn't broken, it might look like she's hiding something, but I agree that it's probably going to be quickly forgotten.

Also, the political motivations might not be partisan. Partisans would choose timing carefully for maximum effect, and this doesn't seem like bad timing for Democrats. If the story blows up huge, they can nominate someone else; and if not, they nominate Clinton and this is forgotten by the time of the general election.

comment 11y ago · link · parent

(1) variety across regions; (2) variety across seasons; (3) harder to scale up, and therefore less likely to be refined/processed/unnatural; (4) forces people to be creative about food, which adds to the culture.

Of course, those might not be true, but they are plausible enough to be attractive reasons.

One might argue that, technically, importing strictly increases options, and therefore makes it easier for an individual to eat a wide variety. But it also makes it easier for someone to get a little too comfortable eating exactly the same things for too long without thinking.

comment 11y ago · link · parent

If something is "real", you can't have less than zero.

(For some definitions of " real".)

Right now, the consequences of forgiving a billion dollars of student debt are immeasurable. It's a small amount to spread over so many people, and ultra easy/cheap borrowing by the federal government can delay the consequences for a long time.

comment 11y ago · link · parent

I thought the trees in the article were native species, not special fast-growing varieties. Did I miss something?

comment 11y ago · link · parent

How does a Forrest preserve the aquifer/groundwater? If water falls on the ground, is that "wasted" or does it go into the aquifer? If it's wasted, where does it go?

comment 11y ago · link · parent

I'm not sure why he says the industrial revolution is different. Might it be that we just haven't figured out how to cope with a software-driven world yet?

comment 11y ago · link · parent

"But clearly he didn't know what he was getting into, didn't prepare and unwittingly contributed to his own death."

Another way to look at it is that he knew there were unknown risks of various kinds, and he decided to prepare as well as he could and go anyway.

comment 11y ago · link · parent

It seems to be a philosophical difference. A lot of people seem to think that the database should only support primitive operations, and the rest should be left to application code.

I am not one of those people -- I think a good database system (like postgres) can make many things dramatically simpler.

comment 11y ago · link · parent

"Want to add a column to your "orders" table and populate it without blocking concurrent writes for as long as it will take to rewrite a multi-million row table?"

PostgreSQL ALTER TABLE ... ADD COLUMN is an O(1) operation, and requires no data rewrite (as long as you are OK with NULLs).

You can even add an attribute to a composite type, and existing tables using that type will see the extra attribute. Again, O(1), no data rewrite.

comment 11y ago · link · parent

"Scientific consensus" is an oxymoron, because consensus is not a scientific process.

Unless by "consensus" you mean that a lot of scientists have successfully reproduced an experiment. But nobody ever means that.

That being said, scientists are often informed and educated, so their opinions should be valued. But please take off the lab coat and call it an opinion.

comment 11y ago · link · parent

What could possibly go wrong?

Fears about big companies are legitimate. I just fear what the FCC might do a lot more.

It all seems fine now, but the benevolent regulators in charge now might be replaced by less-benevolent ones later.

comment 11y ago · link · parent

The author's primary example for the "LTS is bad claim" was glibc, which is not a kernel.

Are you saying the "LTS is bad claim" only applies to kernels and other things very close to the hardware (closer than a database)?

comment 11y ago · link · parent

PostgreSQL has a 5-year support window.

I'm curious what negative consequences the author thinks PostgreSQL suffers as a result from that policy.

comment 11y ago · link · parent

"Red meat is linked to a heart disease...reducing red meat consumption is a no brainer"

"Linked" doesn't mean much (correlated maybe?). But you believe that red meat statistically causes heart disease. Why do you believe that? Is it generally true, or does it only increase the risk for some people?

comment 11y ago · link · parent

> A restart is just another crash.

So let's say you restart, and the process comes up with new code, including new type signatures for the messages that the process is expecting to receive. How (and when) does the compiler check those new type signatures against already-running processes on another node?

Maybe there's some very sophisticated way of managing versions using subtyping to ensure that a new version always accepts a superset of the messages that the old version accepted. That sounds like a mess, and I doubt it would actually work.

Even if it did, it's solving the wrong problem. In a massively distributed system, message types are just one small part of a larger problem: protocol integrity. If you send the right message type at the wrong time, or are waiting for a message that never comes, a type system won't do you any good.

So to make this all actually work, you need to incorporate some high-level declarative protocol specification into your distributed versioning static type system (with subtypes). Perhaps not impossible, but wow, that would be some serious research effort; and then a lot of engineering effort to make it practical.

I could sum this up by saying that all static type systems seem to revolve around one very simple protocol: the function call. The erlang type system can handle that just fine. But erlang also brings a lot of other protocols to the forefront, and we don't know how to typecheck them all. Other languages punt on these problems so that they can call the type system "sound", but that doesn't make the problems go away.

comment 11y ago · link · parent

"while there have been attempts to graft a more versatile type system onto the Erlang base language, the cleanest way forward seems to be a language purpose-built for the task."

Are you sure that's even possible? Erlang is fundamentally a dynamic system, with hot code (re)loading, processes starting and stopping (possibly crashing), and nodes attaching and detaching.

Moreover, the idea that a message can be sent to any PID seems fundamentally at odds with type checking at compile time. You'd probably need to do something more like channels.

Perhaps an ML-like type system can work with all of that, but it sounds like a research problem.

comment 11y ago · link · parent

I recommend actually trying it (e.g. PostgreSQL CTE) on a problem you are trying to solve, if you haven't already.

People tend to report the bad cases, and stay silent for the good cases, which can contribute to a sense of fear of the feature. It could have started from a real issue, or it could just be someone trying to solve the traveling salesman problem with fake data and then blogging when it's slow.

comment 11y ago · link · parent

For those who prefer standard syntax in an open-source system, see:

http://www.postgresql.org/docs/9.4/static/queries-with.html

comment 11y ago · link · parent

There's a difference between "leveled" and "nuked", especially before guided weapons existed.

comment 11y ago · link · parent

Isn't it kind of hard to prove a negative?

It's kind of like trying to assure yourself that complex software has zero bugs by black-box testing it.

comment 11y ago · link · parent

"One could argue that simply participating in the lotter shows that those kids had active parents, and therefore are self-selecting as the OP stated."

Exactly the point: comparing students with equal motivation and parental involvement, who are separated only by luck, is a convenient way to control for the self-selection bias.

comment 11y ago · link · parent

By using a garbage collector, Go must compete with python, ruby, haskell, clojure, java, scala, c#, etc. Maybe Go is nice for some things, but it seems like an incremental improvement over the next best alternative.

Rust only needs to compete against c, c++, Ada, etc. In that class of languages, safety is a major feature.

comment 11y ago · link · parent

http://www.postgresql.org/docs/9.4/interactive/high-availabi...

I recommend looking at streaming rep + hot stabdby first. Those are built in, officially supported by the project, lower administration effort and fewer pitfalls.

comment 11y ago · link · parent

Would such a person practice real science, or just apply the first test that cones to mind, and ignore all of the confounding factors?

comment 11y ago · link · parent

"money on say grants for med and nursing schools for the local population might be a better cause for the long run even tho i might not directly save anyone for a decade or two"

Building out general healthcare infrastructure could have a lot of problems. For example, the government might reduce its own funding of the infrastructure by an equal amount, effectively making the foundation a giant taxpayer.

I am pleased with the progress the Gates foundation is making. If they actually eradicate polio, that will be a real step forward for all of humanity. Also, it seems like there's a lot of merit in focusing resources when dealing with contagious diseases.

1
565758
87