Better HN
topnewbestaskshowjobs
Log inSign up

wireprotocol

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

Submissions

comment 12y ago · link · parent

The fact that this is being heard in court and the patent holder is winning means, according to my definition, they aren't patent trolls.

I define "patent troll" as an entity that has a sliver of a chance of winning, but 100% chance that they will impose high costs on the defendant at little cost to themselves. They use this assymetry as a form of legal extortion. They limit their downside by holding few assets aside from the patent.

EDIT: I am in no way commenting on the merit of the case or the 1% figure.

comment 12y ago · link · parent

"basically through materialized views... summing a column can take up to 100 milliseconds"

That's a key point worth expanding on. This isn't so much a columnar/row distinction as it is a point about materializing results (or partial results) in a clever way that allows for fast processing for those kinds of queries.

That moves the problem: queries are faster (as long as they are in the sweet spot of queries that you expected), but you have extra cost at insert/update/delete time and extra effort when designing the "projections" (as you say).

Columnar makes a similar trade in that writes are slower and a class of "typical" grouping and aggregation queries are generally faster.

By combining the two strategies (materialization and columnar), Vertica is essentially doubling-down on that trade. So queries that match what you designed the projections for, and that follow typical patterns of grouping and aggregation, are blazingly fast (or so I've heard). But it's more restrictive about the kinds of queries that will work well, and it's sensitive to new kinds of queries that you might not have planned for when designing the projections (again: or so I've heard). In other words, it's more specialized.

Personally, I don't find ultra-specialized databases very interesting (speaking generally here, not necessarily saying that Vertica is ultra-specialized). I basically see two reasons to use something specialized: (1) replicate data into it and run queries (i.e. an accelerator); and (2) put lots of low value data in it, that you'd otherwise throw away, and try to extract some signal from it. (There are a couple other cases, like real-time systems, but that is outside of what I ordinarily deal with.)

Disclaimer: I work for a big data company that is not Vertica. Our products offer row or columnar as storage options, but that is not central to the products' value propositions. Opinions above are my own.

comment 12y ago · link · parent

I thought the same thing at first.

But to analyze it as an experiment, you really need to determine some objective criteria for success and failure. Each individual may have different criteria, but it's important to come up with the criteria first and then compare them to the results later.

Even then, it's unlikely to change many minds. With the economy, it's too easy to find some exceptional event that you can blame for the results not matching your prediction.

I think we just have to accept that science can't answer everything, and the economy is probably one of those things that can't be answered.

comment 12y ago · link · parent

I was commenting more about how software should be written than what an admin should do.

For admins, I wouldn't fault them much for kill -9, I would fault the software more if it lead to anything more than an inconvenience. But sure, it's wise to use -15 or whatever as long as it works.

comment 12y ago · link · parent

"kill -9 should never be worse than pulling the power plug"

It's actually easy to misdesign a system such that it is safe against power failures but not kill -9. See my other comment:

https://news.ycombinator.com/item?id=7793301

comment 12y ago · link · parent

There are ways to misdesign a system such that it is power-off robust but not kill -9 robust. The reason is that power-off means everything dies.

Postgres has special code to account for hard kills: it has a SYSV shared memory segment, to which every child attaches. If the parent dies, the children don't have a good way to know, so they might keep running. If you try to start a new postmaster and it sees that there are still processes attached to the shared memory segment (shm_nattch), it will fail to start.

Were it not for that code, it would allow you to start a new parent process, leading to chaos as two sets of backends were accessing the same files and shared memory without knowing about eachother.

comment 12y ago · link · parent

To anyone saying that you shouldn't "kill -9" a process, or that you should do some song-and-dance first: kill -9 is exactly what the OOM (out-of-memory) killer on linux does when memory is short. Typically, the application has no good way to even know that memory is short, because linux radically overcommits memory and still won't return a NULL from a malloc().

So, software should be written to assume it might be killed if you want to have a robust system.

By the way, using a small fixed amount of memory is no defense, or at least not in all kernel versions. The "badness" heuristic function used to find the victim could end up counting the same byte of memory many times:

http://thoughts.davisjeff.com/2009/11/29/linux-oom-killer/

comment 12y ago · link · parent

+1.

Postgres is designed to be resilient to "kill -9" as well as hard power offs. Even if you use durability-sacrificing features like asynchronous commit[1] or unlogged tables[2], the risks are very well-defined and contained to recent transactions and data in that unlogged table, respectively.

But even for postgres, you have to be a bit careful. For instance, many disk drives lie about completing the writes and really have them in a volatile cache, so a hard power off can still cause corruption. You need to disable the write cache on the disks using hdparm (or similar) to be safe. And "kill -9" is quite annoying, because the child processes don't have a good way to know that the parent is exiting, so then you will be unable to start the new parent process until the children have all exited as well.

EDIT: There's still no excuse for MySQL completely corrupting the system on a kill -9. That's just a misdesign -- consider that the out-of-memory (OOM) killer on linux sends a -9.

[1] http://www.postgresql.org/docs/9.4/static/runtime-config-wal...

[2] http://www.postgresql.org/docs/9.4/static/sql-createtable.ht...

comment 12y ago · link · parent

http://en.m.wikipedia.org/wiki/Homoiconic

"In a homoiconic language the primary representation of programs is also a data structure in a primitive type of the language itself. This makes metaprogramming easier..."

For lisp, that means programs are are also lists, so can be manipulated with macros easily (because lisp macros are also lisp, which is good at working with lists).

For a relational language, that would mean the programs are also relations, which would be a little weird because relations are unordered.

comment 12y ago · link · parent

By "homoiconic" do you mean that the language would be expressed as a table (unordered multiset of tuples)?

Interesting thought experiment, but it sounds pretty radical.

comment 12y ago · link · parent

A completely reasonable stance.

However, it's not so much a performance question as one of concurrency. The easiest way to get the right semantics is by locking the entire destination table against concurrent writes. Maybe that's fine for a lot of users. But it has caused some hesitation, because other users might be disappointed.

It would be fair to say "just do it" though.

comment 12y ago · link · parent

But it's a bait-and-switch. The donor expects that their $50 contribution will be 90%+ spent on the cause, but it's not.

comment 12y ago · link · parent

The logical decoding feature is a very important foundation that will help multi-master solutions. No multi-master out-of-the-box today though.

EDIT: logical decoding allows you to get access to a stream of logical data changes, e.g. inserts, updates, deletes, in a robust and efficient way.

comment 12y ago · link · parent

Those numbers are averages. Maybe they get a lot of larger donors or recurring donors. It's quite possible that they wasted his entire donation trying to convert him from a $50 donor into a $1000+ donor.

comment 12y ago · link · parent

Running a business is not easy, open source or otherwise. Neither is building a community. Has the author considered that maybe the OpenSSL people are just bad at business and community-building?

comment 12y ago · link · parent

The OpenSSL license is a little strange, which may have pushed away potential contributors.

comment 12y ago · link · parent

It probably will be. There are two primary reasons it hasn't happened yet (in my opinion):

1. It takes a while to get widespread agreement on the semantics to make sure it really solves the problem in a comprehensive way.

2. The existing mechanism is "good enough", so nobody is quite experiencing enough pain that they dedicate the effort to solve it.

These aren't great reasons, because other databases have had partitioning features for a long time. But they are reasons.

comment 12y ago · link · parent

It seems like the game is flawed in at least two ways:

1. Are there two players, or three? If the offer is refused, the researcher keeps the money. The researcher almost certainly doesn't care, but how the other participants perceive the role of the researcher is likely to influence their idea of fairness.

2. Is the money a gift from one participant to another, or are they dividing up a gift from the researcher? This difference will also trigger different responses, some of which may be related to fairness and some not.

Of course, any experiment might tell you something interesting. But trying to say this is a test for fairness is an oversimplification.

comment 12y ago · link · parent

"Wait, Oracle is an abomination but MySQL is okay?"

I think he was referring to administrative challenges and setup/startup overhead, not steady-state performance.

comment 12y ago · link · parent

We have large processes like that in the JVM as well, so it's not like we're allergic to garbage collectors. But we do see problems that are not a problem in our C code.

It's possible that Go might have ways of avoiding this, but it would take a while to evaluate and it doesn't offer much in the way of guarantees (i.e. it may change in the future). Unsafe code would be pointless... Might as well use C.

Rust seems to offer memory control, safety, and strong guarantees. That seems more appealing for the problems I work on.

comment 12y ago · link · parent

I think I'm missing your point. Why do you need a GC language for that?

comment 12y ago · link · parent

That's a good point. There aren't a lot of GC languages that let you control structure layout. Not a problem I face, but interesting.

comment 12y ago · link · parent

"Most of the server's activity is spent on waiting for IO and managing concurrent socket based connections."

That sounds like a story I've heard a hundred times before. For the cases where it's true, good engineers have already been using one of the many other languages that fills that niche. For cases where that's not the primary problem, Go doesn't help.

That doesn't mean Go isn't a better option for some use cases. Great. I just don't understand why it's worth reinventing the universe to get something a little better for some use cases. Fine with me -- I'm not the one doing the work. I am just saying that I don't get it.

Especially for Google, a company which could have really made a difference in the way we write software.

comment 12y ago · link · parent

I'm not talking about a few stack allocations.

For data processing, you often want to just load as much of the data in memory as you can, easily 10s of GB. I'm sure there's some theoretical answer from GC folks about how to handle every situation, but in practice it doesn't usually work out well. GC languages target good performance on "normal" applications, where parameter passing and short-term heap allocations are the biggest memory problems you need to deal with.

comment 12y ago · link · parent

Erlang is a language with a purpose that I can relate to. I develop a cluster database product, and erlang seems to have an answer for many problems that I have actually faced.

For instance: cluster global pids. When you send a message to a pid, you don't have to go through a dance of handling errors and timeouts just because it might live on another node. If the node goes down, there are several ways to handle that, including monitor_node() which gives you a message that you can handle in one place.

I haven't used erlang in production, but I've invested some time to learn about it because I see that potential value.

I don't really see that from Go. It seems to fall into a "general-purpose" bucket where it competes with Java, C#, python, ruby, haskell, clojure, scala, etc. I don't necessarily like all of those languages, and for any given one you can probably pick out some Go advantages. A lot of people say Go hits a nice sweet spot for many applications.

But Go just doesn't speak to any problems I actually have. It can't replace the C/C++ code, because Go has a GC, and the code is C/C++ because it needs to manage memory[1]. It could replace the python code, perhaps to some benefit, but there would still be a bunch of awkward communication between processes and all of the associated error handling mess. And it can't replace Java, because that's a public API we offer, and lots of people are comfortable with Java.

Go should have been another cluster language/VM that really could compete with erlang, in my opinion. To me, Go is just another language.

[1] Rust does seem to have something to offer here.

comment 12y ago · link · parent

Agreed.

While we're at it, "the right tool for the job" always struck me as a bad analogy. Nobody would question a carpenter's tool choices because the only thing that affects others is the quality of the final result (e.g. how the building will stand up to stress).

But using a software language, framework, library, database, OS, or other platform makes it inextricable from the the rest of the product when judging quality. In some cases, you can make a black box argument like "if a user is unable to observe any poor qualities, then the product must be of high quality"; but that only really applies when you are the sole developer and always will be. For larger projects, there are others involved, and they will be affected if the building blocks are poor.

Granted, that doesn't mean that all discussions about platforms are productive, but it means there is some room for illumination and progress.

comment 12y ago · link · parent

Impressive.

I like how the rust community is offering so many good examples of real utility for the language. Some languages are a little heavy on theory but have trouble connecting with potential users; and other languages are popular but have a lot of problems due to fundamental weaknesses.

Rust, and its community, seems to have a good balance. Good theoretical foundation, but a lot of people always working to show some practical reason to care about the theory.

comment 12y ago · link · parent

I am one of those people who didn't really consider the possibility. It's not that I thought it was impossible, but I dismissed it as probably impractical to use.

Rust is showing that it's actually practical, in a somewhat-normal language with somewhat-normal libraries.

comment 12y ago · link · parent

The smaller the government (or any entity) the fewer things look like a "drop in the bucket that's not worth looking at". So reducing the size of government will (I believe) increase the efficiency.

comment 12y ago · link · parent

"I don't know what the solution is."

Not have such a massive federal government that is always spending other people's money?

When people spend their own money, they often find much more efficient use of it.

1
626364
87