7,244 karma · joined Sep 25, 2010 (16y ago) · 2,593 submissions
comment 13y ago · link · parent
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
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
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
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
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
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
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 14y ago · link · parent
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
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
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
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
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
For many smaller queries, postgres does great on multi-core, and pgbouncer is a good connection pooler.
comment 14y ago · link · parent
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
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...