Better HN
topnewbestaskshowjobs
Log inSign up

wireprotocol

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

Submissions

comment 14y ago · link · parent

Hmm... I figured that at the beginning, but I made the donation around June 10 and I could swear the number for STM is exactly the same as back then.

Maybe I should try to contact them and make sure the donation wasn't lost? But that seems strange, surely others have donated during that time as well.

comment 14y ago · link · parent

"You don't get to pick what other people work on, unless you pay them."

Tangent: I donated a small amount of money to two PyPy projects (STM and py3k). But I didn't see the donation bars move at all -- at least in the case of STM, I'm almost positive that it didn't move a single dollar after my donation. Do they update those things? If not, it's kind of hard to tell what is sufficiently funded to succeed and what is not.

comment 14y ago · link · parent

I'm not dismissing your thorough reply, but HN can only support a certain depth of discussion.

I think we agree more than disagree here. I strongly agree with the idea that college should be seen as a set of tools and not the default choice. I think we can also both agree that alternatives need to be developed, otherwise college will remain a default.

I guess our disagreement is over the claims versus effectiveness of Thiel's alternative in particular.

comment 14y ago · link · parent

"We're just taking something as dogma (anti-college) and just running with it, where we're going I don't know. There's no "there" there."

You could say the same thing in reverse: it's just opting out of the pro-college dogma.

Colleges have a huge amount of overhead like land, buildings, bureaucracy and enticements like fancy campuses and perks; much of it for students studying soft subjects with a lot of grade inflation. It's all paid for by government incentives and a trillion dollars in student loan debt.

A lot of studies say that college degrees are still worth the cost, but I'd like to know if such studies control for the self-selection of college students. Is it that college puts people on the path toward success or that people on the path toward success tend to choose college? Also, do the various majors independently justify their costs, or are political science majors lumped with engineers?

Today, I'd still probably choose college if I were 18 again (in engineering or one of a few other subjects). But ten years from now, I hope there are better alternatives available (which will make the colleges better, too), and college will just be one option that can survive without government subsidy.

Such a change will also improve the liberal arts and soft subjects at colleges. Right now, such subjects are diluted by a lot of people that just don't know what to do, and think that those subjects are easier and leave more time to party. When those people are no longer encouraged by easy money and enticed by fancy campuses, or fear the stigma of not going to college, then the softer subject classes will be left with serious thinkers.

comment 14y ago · link · parent

"Technical innovation comes from depth in a subject area, and you actually have to study something before you can innovate in the context of it."

I think you are making three assumptions that can be disputed:

1. The only place to gain a depth of knowledge is a traditional university; and

2. The best time to gain this depth of knowledge is between the ages of 18 and 22; and

3. You need to innovate to have a successful business (where "innovate" is something more profound than just being creative).

Youth is the time when people are most able to adapt, learn, and change their path in life, so it's no surprise that K-12 and colleges would like a monopoly on the nation's youth.

But entrepreneurship teaches things that colleges stifle, such as independence, following your own path to success on your own schedule, and learning the consequences of your decisions quickly. And there's no law saying you can't study on your own while starting a business, or study later if the business goes south.

We're already in a situation where a bachelor's degree is watered down and doesn't offer any differentiation. Many students feel they need to get a doctorate to differentiate themselves, or in some cases, just to get in the door. In many situations, it's not a question of whether to spend 4 more years in school after highschool, it's whether to spend ten more years. It's no surprise that people simply say that the opportunity cost is too high, and do something else.

comment 14y ago · link · parent

You can output various internal representations from GHC. I believe that, or something similar, can show you a lot of information about the kinds of transformations done.

I'm not really a GHC expert, but that doesn't seem like a fundamental problem that can't be solved, and I assume it is (to some extent) solved already.

comment 14y ago · link · parent

In SQL, you don't even specify the algorithm, the cost-based optimizer chooses the algorithm for you (that is, if it's a good SQL implementation).

comment 14y ago · link · parent

"Magic that sometimes works and sometimes doesn't is fun for small projects..."

SQL has a magical compiler. It's actually a lot more magical in some ways than GHC, because good implementations use statistics on the actual input data and a sophisticated cost-based optimizer. And SQL is certainly suitable for large projects.

I mostly program in C, so you don't have to convince me that predictability of code fragments has its benefits.

But it has a lot of costs, too. Sometimes, good performance fundamentally requires a lot of complexity, so if your compiler is not helping you (being "magical") then the complexity is forced on the programmer. Once the programmer takes on that complexity, they also take on the burden of additional maintenance cost and additional cost to add new capabilities forever.

So, you have to consider whether you really have a net increase in predictability by using more predictable (but less helpful) tools. People complain about garbage collection and virtual memory and NUMA for the same reasons, but those are ubiquitous now -- dealing with the annoyances simply takes less effort than managing the memory yourself.

You could argue that laziness, in particular, is not worth the trade-off (though it has worked out pretty well for SQL).

comment 14y ago · link · parent

Copying also means moving to new addresses. What strategies are used to update the referencing pointers to the new location?

comment 14y ago · link · parent

I just wanted to say that it's refreshing that I can write high level code and I can expect it to be fast.

I am just learning haskell, but I like the fact that I can return very large structures (even infinitely large) and then operate on those structures much later, and it magically pipelines everything behind the scenes.

comment 14y ago · link · parent

I think one of the differences is pipelining/laziness, which makes it easier to decompose problems into smaller pieces.

For instance, look at his solution to FizzBuzz. Would you use a similar solution in ruby? He uses an infinite list, so if you naively translated it, you'd run out of memory. Instead, you'd have to explicitly use a generator in order to achieve a similar solution.

Of course, you can try always returning a generator in ruby, but that would be incredibly awkward because the built-in operators compute the entire result (like the + operator on lists). So, in practice, people intuitively avoid creating large intermediate results because it's wasteful, even in cases where that would simplify the code and make it more modular.

But in haskell, go ahead and use the large intermediate result, because it won't actually compute it before returning. It will just return a generator for the large intermediate result, and compute only the parts of that large result that are needed.

comment 14y ago · link · parent

"One effect is that it is much easier to cheat at math than cheat at writing an essay."

Interesting point, but the context is people failing algebra, and I don't immediately see how the ability to cheat contributes to that problem. Can you elaborate?

"Graders look at how you got to an answer, what techniques you used..."

And although free-form answers do make it a little "softer" of a subject than it may seem at first glance, there are good objective standards to go by. The fact is, a good multiple-choice test can tell you a lot about how well a student understands algebra; it's hard to devise such a test for subjects like writing.

comment 14y ago · link · parent

"Stated as fact, but you give no reasons why anyone should believe it."

I said something fairly simple and you were the one that made the surprising and radical claims (not to mention personal attacks). It's up to you to justify them, and you'll get no help from me.

"For you, algebra is the defining characteristic. If you don't know algebra, you don't know anything."

You keep repeating this, but I have not said it.

A dead canary shows us that the mine is no longer safe. But a live canary is not a defining characteristic of a safe mine.

comment 14y ago · link · parent

Well said, thank you!

I am incredibly surprised that what I said was so controversial. Objective measures highlight (and therefore prevent or contain) fraud in all matters, and education is no different.

comment 14y ago · link · parent

"The reason why algebra is important has nothing to do with the GP's idea that it is the most objective of studies."

I said neither that algebra is important, nor that it is the most objective.

What I'm saying is very non-controversial: failing at algebra is not just a problem but also a symptom of a general educational failure in an individual.

Even if algebra served no other practical or intellectual purpose at all, the fact that it reveals educational problems is valuable in and of itself. And that quality is due to its objective nature.

comment 14y ago · link · parent

"Thus you seem to be arguing that excellence at math is the sine qua non of an educated person -- it is a defining characteristic."

No[1]. I am saying that a person who is on a path to being educated won't let something as simple as algebra stand in their way.

The context is that some people are failing in pretty major ways in life, and the question is whether that's due to algebra requirements or not. I say that's ridiculous -- nobody that's on a path toward education will give up because of something as simple as algebra... there are other problems going on there that we are not seeing. And we should be grateful that algebra does show us that the student has fallen off the path to education, and we should be trying to identify that situation even earlier.

I am willing to be proven wrong empirically, if you can make the case that some significant fraction of people are well on their way to an education, but then it gets derailed because of an algebra requirement.

[1] I am inclined to believe that algebra (or something very similar) is fundamental to an education, particularly those parts of an education that involve reasoning, but I don't state that as a fact or even my opinion.

"Conversely, we can also conclude that you are trying to have those benefits removed from people who are different from you."

No, you can't. There are a long string of false assumptions and logical flaws in your post. You should reflect on your own reading and writing.

comment 14y ago · link · parent

"Math certainly is incomprehensible to many students, but from where I sit, poor teaching is often the reason."

I'll paraphrase what I said in the last thread: algebra isn't harder than other subjects, it's more objective. Therefore, it tends to make educational fraud more visible. People rarely fail algebra and succeed in other subjects; they fail in all subjects and algebra is the only one where it can't be ignored any longer.

comment 14y ago · link · parent

It seems likely to me that algebra during school is a cause for dropout not because it's harder, but because it's more objective.

If someone doesn't know anything about history, you can pass them along, claiming that they wrote a few essays or something. It's fraud, and any expert can see it, but it's easy enough to ignore it if you try.

But with algebra you can't ignore failure. It's obvious. Even the most basic tests will reveal ignorance quickly.

I conjecture that those people who drop out "because of algebra" are not proficient in any subject.

I observe that the alternatives suggested are less objective and more "hands-on". What does it mean to learn about the consumer price index without learning basic algebra? The only explanation I can think of is that it offers more opportunity to ignore educational fraud.

comment 14y ago · link · parent

It's hard for me to comprehend that someone could understand any subtle (or even not-so-subtle) distinctions or complex arguments without at least a basic understanding of algebra and statistics.

I could be wrong though. What about famous thinkers like Jefferson or Lincoln -- did they understand algebra and statistics at all?

comment 14y ago · link · parent

By "suffer" do you mean "not make millions from their stock options"?

A lot of these regular people have quite good job prospects in other companies, perhaps even at a greater salary, but (I presume) chose Zynga because of the stock options.

Zynga is like a slot machine company -- bad business practices, and the product is not actually fun. If "regular people" invested in slot machines and that investment didn't work out, would you still call it "suffering"?

I say: let it fall apart, and get these engineers working on real problems.

comment 14y ago · link · parent

I find the Republican perspective more convincing:

* Roads, police, schools, and other critical things that businesses need to thrive are mostly provided by state and local governments.

* Those critical things actually cost a pretty small fraction of total government spending.

* The exception to the above point would be the DoD, which could be seen as critical to the success of business, and DARPA which funds a lot of good research that businesses use. But is the lesson here that we need more defense spending? Or more DARPA spending? Or more basic research outside of the DoD?

* If the lesson is that we should have more funding for DARPA or basic research outside the DoD, then great. I'm 100% in agreement. It's a very small fraction of the budget now (I see DARPA is about 3.2B), so increasing it won't make a dent.

None of this seems relevant in the context of the very high federal spending right now. Very few of those dollars apply to the things businesses need to thrive.

And as for any moral argument, the people already paid for these things once, so it's not like something is owed any more than I still owe the grocery store for the food I bought. Yes, I will buy there again; and similarly, we shouldn't cut the government functions that are necessary for business to thrive.

But no, the Democrats at the federal level can't take credit for the police my city hired or the roads they built. And they can't use the success of DARPA to justify a bunch of things that don't resemble DARPA and cost much more money.

(For those wondering, I live in a Democrat-controlled city; and I have, when I felt it was appropriate, voted for city tax increases because I think they do a great job, notwithstanding an apparent monorail project[1]. So I'm not a "government is bad" kind of person.)

[1] That's a reference to a Simpson's episode, not meant literally.

comment 14y ago · link · parent

That seems overly adversarial. 10% per week is punitive; not representing any real cost.

What you should do is charge enough up-front (as a fraction of the invoice or a flat number) and bill frequently enough that a client stringing you along for a bill doesn't really hurt you.

You should also have a few clients going at once so that a few weeks late doesn't mean a few weeks of lost work, because at the first sign of a late payment you switch to other clients.

And for your regular clients, especially ones that have trouble paying quickly (perhaps due to corporate policies), ask for a retainer so you can keep their projects at a high priority without sticking your neck out.

Professionalism and respect go in both directions. Even large companies don't necessarily have a team of people dedicated to paying your bills instantaneously. If it's a good relationship and they value the project and you make it known that prompt payment is necessary to meet the schedule, they will pay promptly. If not, then no amount of punitive late fees will change that.

comment 14y ago · link · parent

"I'm curious as to why you think that suicides would not be affected by gun restrictions."

Conjecture. I have no numbers to back it up.

"The impact may not be large, but it does seem to me to be almost certain to be positive, so why not?"

Your stance seems perfectly rational, and based on two things:

(1) The belief that stricter gun laws will save lives; and (2) The right to own firearms has a negligible value.

I am ambivalent about the first one -- I simply don't have detailed numbers to back it up either way. I am skeptical that any savings would be worth the risk that it gets worse (being fairly low already, the potential downside is greater than the potential upside).

The second one I simply disagree with. It's a personal value and there is no real way for one of us to convince the other. I would be interested to know what fraction of Americans share your opinion here.

"But you'd need gun ownership to be far more pervasive than it is now for it to work"

An interesting point. It would be hard to imagine gun ownership being much more pervasive than it is now, but I agree that so few people carry guns that criminals have little to fear from public places.

comment 14y ago · link · parent

"The distinction is that the 4th amendment limits government power to intrude on our lives by forcing them to clear a certain burden of proof before seizing our property and information."

I think you're interpreting the 4th Amendment kind of like the 5th Amendment prohibition of depriving someone of life, liberty, or property without due process of law.

The part of the 4th Amendment that's interesting to this discussion is the prohibition on unreasonable searches. You haven't really offered any reason that should exist (information can't be seized, by the way, because the original owner still has it).

"I believe I have carefully evaluated whether my reaction is emotional. Frankly, I'm a bit offended..."

I got you confused with the person to whom I originally replied, who said: "I certainly would be glad to know that none are in my (crime-free) neighborhood." That's clearly an emotional reaction, but I apologize for attributing it to you.

The only rationale I can imagine for restricting gun rights is to preserve some proportion of lives (or maybe an absolute quantity). I would still like to see your argument framed that way. It's unreasonable for me to ask for a specific number, but it seems like you should have some order-of-magnitude percentage in mind -- e.g. A% of the population were violently killed last year; restricting gun rights will reduce that to B% in Y years, thereby saving (A-B)% of the population per year.

The problem that this line of argument faces, of course, is that the percentage of people killed by guns is already quite low. And more than half of those are suicides, which probably wouldn't be prevented by gun restrictions. Some other fraction would still be killed by other means. And, unless Y is a very large number, then you still may have many gun deaths simply because there are still so many guns around.

When you actually work out the numbers will all of these things accounted for in a realistic way, I suspect that (A-B)% will be a small number (or negative), and Y will be a large number. In other words, a small (or negative) benefit after a lot of waiting (and possibly bad consequences during that transition).

But it would still be perfectly rational for you to say that you believe it will save a single life, and that's enough of a benefit for you. You'd probably want to take some risk into account though, in case you're wrong and the life isn't actually saved.

"I think I'm turning the burden of proof around simply because the reasons against gun rights seem fairly obvious to me. Guns are tools built to kill, with no other use. They have very little in the way of useful legitimate uses."

You assume that the guns must be used to be useful, which is false. In fact, the presence of guns may reduce the frequency with which they are used[1]. Even police in a lot of areas have probably never fired their weapons at another human.

[1] I have no numbers to back this up, but again, my argument does not depend on numbers.

comment 14y ago · link · parent

Did you properly fill out your government-mandated speaking request form 18764(a), and sign it under penalty of perjury, before submitting that comment?

Of course, your speech isn't banned. These forms are just necessary to make sure we know who you are before you speak, and to force you to testify that you haven't committed other unrelated crimes.

The only time we actually would ban your speech is if you fill out the form improperly, because that's a felony, and felons don't get to speak. So read it carefully.

comment 14y ago · link · parent

"Due process and requirements for warrants are important because it keeps the government honest, and suspending them would cause more government abuse than it would stop crime."

That's fairly vague. I'm not sure what clear distinction you are trying to draw between the 2nd and 4th Amendments.

"But what makes a right to gun ownership important? What does it protect against, and what makes it better than not having that right?"

It can be seen as a right to self defense.

First, consider that your life, or at least your quality of life, depends on the police doing their jobs. To destroy you, the police merely need to make it known that you won't be protected.

There are many examples of this for many different reasons. It could be some political reason why the police chief doesn't want to enforce order in a minority neighborhood. Or, it could be more personal.

Even if the police do make a reasonable effort to protect you, it might not be enough to deter a stalker or someone that you're afraid of. Police generally react after the fact to punish a perpetrator rather than actually protect you, anyway.

You seem to be turning the burden of proof around, to ask why I think we should be allowed a freedom. The social contract says otherwise: we must agree together that a freedom is so dangerous that it should be outlawed.

Honestly, I think you should carefully evaluate whether you think that we are really better off with severe restrictions on guns[1], or whether you are just reacting emotionally to the thought that someone on your block owns a killing machine (which is what guns are, really).

But there are 200M+ guns in the US (numbers aren't precise, but it's about 2 guns per 3 people -- men, women, and children), and we aren't dropping like flies, so you have to look past the emotion. Most gun deaths in the US are suicide, by the way[2] -- and some people argue that is a human right.

[1] The research is mixed on the subject, and I imagine it depends on a lot of factors. To really have an opinion that the right should be removed, you would need to put in a lot of serious effort to research the numbers and convince yourself that people actually would be saved. I have the advantage that I win by default -- I don't need to prove that gun ownership increases safety to hold my opinion, I just need to convince myself that it doesn't increase danger enough to justify restricting it (which is pretty easy considering the low number of gun homicides overall).

[2] http://en.wikipedia.org/wiki/Gun_violence_in_the_United_Stat...

comment 14y ago · link · parent

"So far I am not aware of any reason for young people in residential neighborhoods in the United States to have what are called "assault rifles" for legitimate purposes, and I certainly would be glad to know that none are in my (crime-free) neighborhood."

What about suspending the Fourth Amendment? Surely enough random house checks, possibly automated with cameras, could also detect possible criminal activity and save lives.

Traditionally, Americans are willing to pay something for their freedoms. Freedom always comes with both costs and benefits, and so long as the costs don't far outweigh the benefits, then (in my opinion) freedom should prevail.

If, in your judgement, the cost of allowing individual gun ownership outweighs the benefits so much that you think the freedom should be removed, so be it. But keep in mind that there are plenty of other freedoms that can be removed in the name of safety (e.g. 4th, 5th, and 8th Amendment).

I'd also like to point out that violence is low and decreasing[1]. So, the case to restrict freedoms is weakening. The newsworthiness of a particular event doesn't change that fact. Also, removing a freedom is no guarantee that you'll actually get the safety you seek; it's only a guarantee that the freedom is gone.

[1] See Steven Pinker's new book, "The Better Angels of our Nature"

comment 14y ago · link · parent

I stand corrected.

comment 14y ago · link · parent

"One specific complaint I have is that there is no transaction control within pgsql stored procedures (functions). I had to kludge the db link module to get transactions to work."

Yes. Functions work within a transaction, which is usually a blessing. But there are cases where you want to do the transaction control in the procedure itself. This is a known request that is discussed as two different features: "stored procedures" (which is probably what you want) and "autonomous transactions".

comment 14y ago · link · parent

"Now, it's rare that you are likely to get that into phone numbers..."

That was part of my point -- if your entire business revolves around phone numbers, because you are a phone company or something, then maybe a custom data type makes sense. Then do it, and do it right.

But if you think of a phone number as "something to call" then all you need to do is display it to the right person at the right time, and ensure that it reasonably matches something you can type on a phone. And that sounds more like a domain over a text field with a constraint, to me.

"I use custom types a lot for defining output tuples for stored procedures"

I don't really consider composite types "custom" types any more than an enum is a custom type. Maybe I misunderstood gfodor's statement.

1
787980
87