Better HN
topnewbestaskshowjobs
Log inSign up

wireprotocol

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

Submissions

comment 13y ago · link · parent

"There's no difference between this and designing the classes first."

Databases are designed to be shared structures accessible from many applications, so it's not a 100% direct comparison. When focusing on a single process of a single application, of course that leads to some simplifications (no IPC, all datatypes match up perfectly, no concurrency problems).

"you're not constrained by relational requirements"

I don't see relational as more constrained or less constrained than OO. It's different. For instance, in OOP I often feel like it's forcing a hierarchical structure upon the design. Inheritance feels very constraining to me in comparison to the free joining of one table to another based on the values inside (not necessarily based on explicit connections in the design).

comment 13y ago · link · parent

"Things in XML are just strings."

XML and JSON are representations -- so they are all just bits. It's meaningless to say that, however.

The metadata and surrounding standards are what give those bits more meaning. So compare what the standards have to offer.

(Aside: I don't like XML and I think JSON is way over-hyped and under-delivers.)

comment 13y ago · link · parent

Before modern life, we had plenty of opportunity to urinate well before it became a serious problem.

If we were intelligently designed, after all, I think God would call holding it for hours a "user error" and mark it "won't fix".

comment 13y ago · link · parent

Monitoring many people is of course cause for concern, but it has little to do with what the article was talking about. The article was talking about the monitoring of specific, fairly small groups of people.

I would object to any attempt at widespread monitoring of public spaces by the government (though I don't see an obvious constitutional problem there). I don't object to using their existing monitoring capabilities to focus on certain groups.

comment 13y ago · link · parent

"Creating a file"

This is not a problem.

"You are both missing the plethora of articles about how every breaks at least 3 federal laws a day (unknowingly)."

Citation needed.

However, it's a general problem anyway. I agree that laws should be simpler, fewer in number, and more evenly enforced. But I don't see what this has to do with the article in question, which doesn't offer much.

comment 13y ago · link · parent

"trade-off between civil liberty and security"

What specific civil liberties were being violated, that were not known before these documents were revealed by the FOIA request? I don't even really see what the trade-off is here.

comment 13y ago · link · parent

"support a national intelligence agency monitoring the non-violent"

What's wrong with "monitoring"? It sounds bad, but from the article, it seems like they are just keeping their eyes on a potential problem. Given that OWS was a public protest movement, monitoring it is hardly an unreasonable search.

So, does this article offer new evidence that some unreasonable searches, seizures, or harassment took place? If not, then I don't see what it has to offer.

And no, I don't care whether they "monitor" the ELF, or the Tea Party, or the libertarian party rallies, or Ron Paul, or Richard Stallman; except to the extent it wastes the FBI's time (which we all pay for).

comment 13y ago · link · parent

Do you think that Red Hat and Canonical are a net negative for the community?

comment 13y ago · link · parent

Does a $64 SSD have enough charge to flush pending writes after a power failure? If not, then be prepared for widespread corruption.

See comment by pjungwir.

comment 13y ago · link · parent

The problem with that statement is how specific it is. There are many routes to credibility in a field that might be perfectly normal and consistent with mainstream science. Limiting it only to people with PhDs in the specific field from select universities is snobbery.

What if I had some interesting advance to present in the field of computer science, and I had plenty of data to back it up, and it got listed on Hacker News and my peers on this site reviewed it and agreed with my conclusions? But then I only have an EE degree, so that's a "red flag" because I "didn't make an attempt to engage with other scholars"?

Credibility is a difficult subject to pin down, but science is not an exclusionary endeavor. All you really need to be credible is the review of other credible people, and universities are not the only places to find such people. Similarly, lots of people use a PhD to give themselves false credibility.

comment 13y ago · link · parent

"Has anyone learned that way and found it useful? Do you learn a few things in a familiar context while cargo-culting the rest and then fill in the gaps later? Does it just click all of a sudden?"

That's how I learned to write my first useful programs.

Maybe there is a better way, but that is the direct answer to your direct question.

Except I wouldn't say that it clicks "all of a sudden". It's a long process of learning. One day something doesn't work, and you think it should, and you just keep narrowing it down and eventually come to some deeper realization. It's the top-down approach to learning.

I've been trying to learn haskell bottom-up for a while, and I've done a few things and have some understanding of the theory. But I don't have anything to show for it. Every time I learn some new theoretical thing, I think "wow, what could I program with this?", at which point I've already lost. Because once I start thinking about the language rather than the utility, I'm not likely to create anything amazing.

I think that I'd be more successful if the next idea I had I just coded up in haskell (even though I don't really know it) and pushed through to a solution by any means necessary. But for me, learning a new language is secondary to realizing my visions; and my visions rarely start from an empty file any more.

That being said, I think a mix of bottom-up and top-down is probably best. There are some fundamental things that you need to learn deeply at some point to be good. Not sure the exact stages that these things should be learned, though.

comment 13y ago · link · parent

I find it amazing when people ask questions about the price of something without even considering supply and demand.

comment 14y ago · link · parent

A good decision. I know backwards compatibility is important, but safe defaults are an important aspect of usability.

Also, it's difficult to change something after defending it for a while. That's a promising sign.

comment 14y ago · link · parent

You inferred from his words that correlation proves causation. Whether he implied it or not is in dispute.

comment 14y ago · link · parent

You have not convinced me that the patent chief is intellectually dishonest.

I was already convinced that the patent system needs reform.

comment 14y ago · link · parent

reitzensteinm called the chief "intellectually dishonest", and did not properly support that strong claim. That is bad for the discussion. None of the arguments/claims you are making change that fact.

comment 14y ago · link · parent

Sure, there are arguments to be had, and I would tend to agree with you that (at least in some sectors) we stand to gain more than lose.

But the commenter to whom I replied called the patent chief "intellectually dishonest", and I think that's a strong statement and not adequately supported.

comment 14y ago · link · parent

> Metric X is high, therefore disputed policy Y is boosting metric X.

Although the reasoning doesn't exactly follow, it does still say something important: that the patent system isn't totally breaking innovation. In other words, he's saying that we have something to lose, and he's right.

You can make a strong argument that we won't lose it, and I'd agree with you. But it's not exactly proven. Actually, I don't think it's a simple win or lose situation, I think that patents (or the lack thereof) change the nature of things invented, and it's hard to quantify whether it's better or worse.

comment 14y ago · link · parent

The number of people wanting to emigrate to prosperous countries probably outnumber the people in those prosperous countries; let alone the number of people that want to emigrate from a prosperous country to a less-prosperous one.

comment 14y ago · link · parent

I have seen that before and I don't consider it particularly useful. #5 is self-referential and useless. Only one or two (#9 and maybe #7) of those help distinguish OOP style from anything else, and #9 is not very compelling.

When I see OO code, I mostly think about the bundling of code with the data it operates on, but that is basically a module. So maybe it should be called module-oriented programming?

comment 14y ago · link · parent

You and the author appear to be using different definitions. I find it troubling that, after all this time, there is still no definition that doesn't use words like "thing".

comment 14y ago · link · parent

Strangely, the first reaction I had was that a pig is the only thing that you need to kill to get something from. You can get milk, eggs, and wool from the other animals without killing them.

Not sure why I went in that direction, but I could imagine a lot of farmers and ranchers might think along similar lines.

comment 14y ago · link · parent

I'll add that being able to work well with others is usually what determines whether you can manifest your intelligence in a useful way.

Working well with others takes many forms: being able to inspire and lead are obvious ones; but also the ability to take constructive criticism from others and learn from their perspectives -- which can be hard to do when you perceive the other person to be less intelligent (and perceiving others to be less intelligent is a problem by itself).

comment 14y ago · link · parent

So what does he add to the conversation? We can all see the electoral map. It's just a question of which polls you believe (or want to believe).

comment 14y ago · link · parent

I think you're referring to postgres's inability to use more than one core per query, which is true (or mostly true... there are quite a few helper processes that take on some of the work).

For many smaller queries, postgres does great on multi-core, and pgbouncer is a good connection pooler.

comment 14y ago · link · parent

"And the database world is moving towards scaling horizontally rather than vertically."

I think that's an oversimplification. Two counterpoints:

* Database systems will always need to make heavy use of locality. The speed of light means that synchronizing access over long distances (even medium distances -- light only goes about a foot per nanosecond) will always be a challenge.

* Multi-core means vertical scaling is back in (if by "vertical scaling" you mean "scaling on one box"), and probably for a while.

Postgres is doing an excellent job at both.

I do agree with the less-exaggerated point that postgres really needs to improve its multi-machine scaling. But it's far from a solved problem on any system under discussion.

comment 14y ago · link · parent

"Scarcasm/trolling aside, it's not four years of scaling because they didn't need more than one server until late last year."

There are many axes on which you can scale and many different interpretations. People have reported that postgres scales very well to many cores and many concurrent users (something like 300K read queries per second or something ridiculous[1]). It also scales nicely for concurrent writes and avoids locking in situations where most other databases don't.

There may be cases where postgres adapted plans (automatically using statistics and the cost-based optimizer, of course) for them as their data grew. Responding to data growth is a kind of scaling -- if using a database without that capability, it may be stuck with a horrible plan that falls over as the data grows.

Scaling to multiple servers is, no doubt, important; but it's not the only important definition of "scaling" (if it were, then multi-core would just be a fad). Lots of technologies scale to many servers beautifully, but lose focus on other aspects of scalability or are just plain inefficient.

[1] http://rhaas.blogspot.com/2012/03/performance-and-scalabilit...

comment 14y ago · link · parent

Google offers the nexus line, which is not tied to carrier contracts.

The openness of Google, nexus, and android is a big selling point for me.

comment 14y ago · link · parent

Why not just sync the data change and sync the metadata changes only to a write-ahead log? Or if the data is logged also, you only need to sync the log.

I assume btrfs uses a log, right?

comment 14y ago · link · parent

"Doing regular package updates is very slow with btrfs. This is due to fsync() being called several times per file."

You mean that fsync()s are more expensive on btrfs, or ubuntu calls them more often when using btrfs for some reason?

1
757677
87