Better HN
topnewbestaskshowjobs
Log inSign up

wireprotocol

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

Submissions

comment 10y ago · link · parent

Really creative ideas in here. Others have raised a lot of good questions, but it seems like an interesting area to explore, anyway.

comment 10y ago · link · parent

True, but not particularly useful. Trying to control pollution through purchasing decisions is a very crude tool and only works when the buyer has good information.

Taxing or prohibiting pollution is a much more direct way to influence the situation, and that's up to China.

comment 10y ago · link · parent

An interesting perspective, but I think the "Hillary Defense" is only available to a select few.

comment 10y ago · link · parent

This balanced kind of approach would have made sense for Aaron Schwarz, who did some minor things wrong that got blown out of proportion.

But I don't think Snowden thinks he did anything wrong. He wasn't even reckless -- he allowed veteran reporters to handle the punblication to mitigate unintended consequences and act as a check on his own beliefs.

So accepting punishment and allowing the US government to have the last word doesn't make sense to me.

comment 10y ago · link · parent

I don't think that's the way radical groups like this work. Promises are edited from the record, "facts" go unchecked, and followers are already so emotionly invested they are incapable of changing their minds any more.

comment 10y ago · link · parent

Nothing you say is particularly radical.

I know many will disagree with his positions on some things, or maybe many things. The point is that they are reasonable politicians, and especially when the main candidates are so bad, deserve a fair chance in the media to have their say.

comment 10y ago · link · parent

I'd like to see more coverage of the libertarian candidates this cycle. Neither major party seems likely to fix this issue -- Republicans will dismiss it and Democrats will pander and apply band-aids (all the while increasing the scope of government).

And the libertarians this time around are serious candidates -- president and VP nominees are both two-term governors. Pretty hard to ignore when the major candidates are so bad.

comment 10y ago · link · parent

"linked to" does not mean "caused by".

comment 10y ago · link · parent

OCaml has more runtime requirements. Can someone comment on how invasive those requirements are, and whether that would limit adoption of the OCaml version compared with C or rust?

comment 10y ago · link · parent

This can be solved by requiring higher-risk merchants to put money in escrow for a while (maybe an initial amount plus some fraction of revenue). If they turn out to be selling counterfeits, amazon could use the money to set things right. Otherwise the merchant gets the money.

comment 10y ago · link · parent

So what are the trade-offs? Is each language re-inventing the wheel, or is it just a matter of implementation effort?

comment 10y ago · link · parent

There has been a ton of research for GC on the JVM. What are the differences between Go's approach and Java's? Are those differences due to linguistic differences or different goals?

comment 10y ago · link · parent

You left out the biggest difference between what we have and a free market: third party payment.

If the party paying is not the party demanding, it does not resemble a free market.

comment 10y ago · link · parent

It may have been an overreaction in the abstract, but they are trying to run a business. If things like this had been going on for a while, then eventually someone is going to say "this isn't a political campaign, it's a business, and these interns are in the way".

You can't give due process and full consideration to every inane idea. The business will come to a standstill.

comment 10y ago · link · parent

Depends on how it's done. If they had made a casual inquiry and asked sincere questions in an attempt to learn why attire is important, they would have gotten sincere answers.

But a petition is a way to force an answer to a specific request on your terms, without leaving much room to listen and learn.

And dress is not trivial. It may take more than a one-sentence explanation to describe why. Consider, for a moment, that people are not robots and changing attire may have real impact on how people behave and interact in a social environment like business.

comment 10y ago · link · parent

"possess authority and value customs like placing particular styles of cloth on your feet"

My guess is that everyone has standards for politeness and they'd be annoyed when those standards are violated.

But for some reason, polite and respectful dress is considered somehow more arbitrary than, say, polite and respectful speech.

comment 10y ago · link · parent

I view retirement (distant future for me) as a chance to do unappreciated work. Does the world need a new birdhouse? Who cares. When I retire, if I want to spend 100 hours on a birdhouse, then I can, and I don't need to justify it to anyone.

I'll even say it's worth $5000 because I spent so much time on it, and put it up for sale on eBay. If nobody buys it, then who cares?

But sit around and do whatever the default thing is (watch TV, etc.): No thanks.

comment 10y ago · link · parent

That's another great point: if you invest more time at a company, and have no real control, then you are out of luck when the liquidation actually happens.

Startups are faith based to some extent, and it's unwise to put so much time on pure faith in a business relationship.

comment 10y ago · link · parent

Founders are committed and in for the long haul, and either make a lot of money or none.

Startup employees make less money on a nice exit, but aren't as committed and can work for a few companies (maybe 2 years each) to improve their odds.

So having 10 years to exercise makes a lot of sense for the second group.

Forcing the employees to stay until liquidation makes zero sense for the second group. So you need to give the people that do commit at that level a package that more closely resembles a founder.

Otherwise it just distorts the market in all kinds of ways. Nobody would want to work for you until it looks like liquidation is around the corner, which means startups would constantly need to be positioning themselves on the auction block rather than focusing on lasting growth.

In addition, it creates the normal kinds of distortions associated with illiquid assets and immobile people.

comment 10y ago · link · parent

Are new classes of craftsmanship/skill coming into existence as fast as the old ones are dying off?

I wouldn't be surprised if there are surgeons today that would look superhuman a few decades ago. I also suspect athletes are getting better, and everything about movie making except the stories.

comment 10y ago · link · parent

Using an ORM is for advanced users, and I think it's a bad default for beginners. A good one certainly saves time when you know how to use it, but it also adds complexity and narrows the perception of what a database can do.

Narrowing the perspective is especially bad for beginners, because some options will simply never occur to them and the ORM will prevent learning by osmosis.

Let's say you need reliable, efficient cache invalidation (say, to re-render a static page when the data changes). Triggers and LISTEN/NOTIFY in postgres might save a huge amount of time (and even more in maintenance costs) over a custom solution that probably isn't right anyway.

Or maybe you need to prevent schedule conflicts. Postgres offers range types and exclusion constraints, which aren't supported in all ORMs.

Or to keep a remote system reliably in sync (even if it's a very different kind of system), logical decoding is a very powerful feature.

But how would you encounter any of these potential solutions if you are always behind an ORM?

comment 10y ago · link · parent

"Web applications sanitize the apostrophe (') character in strings coming from user input being passed to SQL statements using an escape (\) character."

Please, please don't say this. In the SQL standard, backslash is NOT the escape character for a string literal.

PostgreSQL, starting in v8.2, began transitioning from C-style escapes (using backslash) to SQL standard escapes (where a single quote is escaped with another single quote). Standard behavior is the default, but can be controlled with the variable standard_conforming_strings.

But you shouldn't have to know that anyway. Use out-of-band parameters that are passed in the wire protocol separately from the string. Web frameworks should already ensure this, and if they don't, they are likely broken.

If you are writing a web framework and you need to use escaping for some reason: first, make sure you can't use parameters on the wire instead; then read the product-specific literal parsing rules very carefully, considering things like multibyte characters.

comment 10y ago · link · parent

This article doesn't add much to the conversation. Trump has been severely (and appropriately) criticized on these points before.

And then he starts to make similar mistakes himself. He wants to keep guns away from "mentally unstable" people, people on watch lists, suspected terrorists. That's a circumvention of due process, and due process is one of the best tools we have to prevent Trump-like abuses.

comment 10y ago · link · parent

That may be "right" given the current options, but that doesn't mean we can't have better options.

And that's exactly what this blog post is about.

comment 10y ago · link · parent

Can't it be both? How is that doublespeak?

comment 10y ago · link · parent

The more complex a theory is, the harder it is to draw useful conclusions that people can actually apply.

comment 10y ago · link · parent

The ISA is generally pretty well-defined, a lot of the undefined behavior is introduced by C.

So I don't think it's fair to say that C "gets out of the way". It won't let you get the overflow flag, or alias arbitrary pointers, for instance.

comment 10y ago · link · parent

The chance of a random fight against police accomplishing anything good is 0%. The chance it makes things worse is 100%.

And organizing violence is not particularly easy. For something like civil forfeiture, it would be much easier to just follow the democratic process.

So collect signatures, call representatives, state legislators, and stage protests at city halls. A lot less painful for all parties, and a greater chance of success.

comment 10y ago · link · parent

"just last month I found MySQL, heck even SQLite supports triggers with code inlined into the trigger body but PostgreSQL mandates writing a separate function for the trigger"

The right response, as a postgres developer, is to agree that you describe a useful feature, and perhaps implement it to help other users.

But my advice to you is to be willing to put up with some short-term annoyances. Sometimes the best choices are a little annoying, and if you refuse to consider them, it will cost you (or your employer) much more later.

1
474849
87