Better HN
topnewbestaskshowjobs
Log inSign up

wireprotocol

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

Submissions

comment 9y ago · link · parent

Thank you for the report. But without specifics about the circumstances of the arrest I still can't make an informed opinion yet.

comment 9y ago · link · parent

This kind of reporting encourages people to form opinions before the facts are in. None of us know what really happened there, but it will probably get sorted out soon. By that time, it's too late because we've already jumped to a conclusion.

comment 9y ago · link · parent

Sweden population 9.5M, less than 3% the size of US polulation.

I'm glad they are so happy with their country, but not sure if it scales 30X. And regardless of policy, I suspect the actual immigration numbers (and affluence of immigrants) is much different than the US.

comment 9y ago · link · parent

US per capita GDP US$53K

Swiss per capita GDP US$84K

comment 9y ago · link · parent

Comparisons between the US and European countries are often useless. Either they pick a rich European country that has restricted immigration for a long time, or they say "Western Europe" while ignoring many of the countries in Western Europe that have some real challenges (like unemployment).

Germany or the UK might be reasonable comparison points. Not perfect, of course (still huge differences), but it's much more likely that there is a real lesson somewhere.

comment 9y ago · link · parent

Writing libraries, especially implementations of well-known algorithms and data structures, is a bad way to learn most languages. Technically, it's possible, but I think it skews the experience strongly toward languages that are similar to what you've worked with before and languages that are more permissive.

I suggest writing applications, or libraries closer to applications (e.g. a specific library that parses a special data format important to your domain), where you have a clear goal but not a clear path to the goal in mind. In other words, hacking.

Let's say the author had finished the Trie. What good experience could he possibly have? It's not going to magically run faster than the C++ version or use less memory. It's a well-known algorithm so there probably aren't subtle bugs in the C++ version that rust would have caught. The best you could possibly say is that it was faster to write -- which is exactly why it skews the experience toward familiar and permissive languages.

I am trying to learn rust (albeit very slowly) by doing some hacking to make it work better for postgres extensions. I know postgres, and I think it would be cool if it were easier to write postgres extensions in rust. Of course you can today, but you'd have to use a lot of unsafe FFI calls.

comment 9y ago · link · parent

"If it had such incredible benefits, perhaps people should have talked about those."

The problem was that nobody saw any need to make the case to the people. They thought they were in charge, and the people had to remind them otherwise.

comment 9y ago · link · parent

When people feel left out of a process that has a big impact on their lives, it's fair to say "no".

You can say that this deal is what's best for them. But whatever harm killing this deal may have done is much less than the harm from letting the elites decide what's best for them without the courtesy of even an explanation.

I think there were a lot of people that voted for Trump simply because the elites told everyone that they had to vote for Clinton. It's a way to remind the government that the people are in charge.

comment 9y ago · link · parent

The row counts are very small. Technically, it demonstrates the point.

But if you have a Ferrari, you don't use it to take your child to school in 14 seconds, you drive it on the open road.

Show a case where serial index builds are impractical, but parallel builds bring it back to a reasonable level.

EDIT: this sounded more negative than I intended. Obviously parallel index build is an important feature.

comment 9y ago · link · parent

It's not just that it creates financial waste. Phony opportunities are dead ends that take other opportunities off the table.

If you have only a few plausible opportunities, you are likely to make them count. If you have a hundred but 50 are phony, you will waste your time, feel entitled to results (hey, I went to college, I deserve a good job!), and become discouraged.

comment 9y ago · link · parent

It's a dynamic system and everything depends on everything else. Of course.

But some people have the opportunity at time t-10, another at t-9, ..., t, and then still have no results at time t+1.

Or, labelling a huge category like "college" as an opportunity ignores the details about how good of an opportunity it is versus other things that could be done eith those resources.

comment 9y ago · link · parent

Just like when people are trying to sell you something, they call it an "investment"; people trying to implement government spending programs call it "spreading opportunity".

Some government programs really do spread opportunity, but that requires close examination and criticism; I don't just buy into it because a politician calls it opportunity. Is college an opportunity? It can be a huge opportunity to get ahead in life; but it can also just subsidize a partying lifestyle and a phony major for four years. It depends on the college, the student, and the structure of the opportunity.

It's hard to tell the difference between spreading opportunity and spreading results. It often requires looking at the details, measuring along the way, and it is often different for different people.

comment 9y ago · link · parent

I am learning rust. To me, the amazing thing is the lack of runtime.

If you are writing a library to render the latest web image format, or implement the latest secure network protocol, then your choices are limited and Go is not an option.

Sure, you could write it in Go and then Go programmers could use it.

But if you write it in C or rust, it could be the de facto library for nearly all languages.

The article is a good one, but doesn't really influence my personal opinion much.

comment 9y ago · link · parent

There are a lot of good resources to learn the "how" of SQL, but not the "why".

The first reason is that the relational model is a combination of logic and set theory, which happens to be great for a lot of business applications.

The second reason is that people have adapted SQL surprisingly well to other kinds of data, like JSON. Even if you try to build a database system specialized to JSON, it will still probably come out worse because getting things like storage, replication, administration, etc. right takes a long time.

The third reason is that data has more value when combined seamlessly with other data. So if you have business data (which everyone has) and JSON, you are better off with a single system that is great at business data and OK at JSON, than two specialized systems.

Keeping these things in mind makes it easier to understand SQL in my opinion.

comment 9y ago · link · parent

"In principle it's the government's job to take care of society's needs, not the charities'."

I disagree strongly. Concentrating responsibility concentrates power, which is dangerous. Governments should share power internally, share between levels (federal, state, local), and leave a lot of the power with the people (who may use it for private enterprises, NGOs, etc.).

comment 9y ago · link · parent

I agree because blood donation is safe. If it weren't, or we were talking about kidneys or something, it gets more complicated.

comment 9y ago · link · parent

I think it's considered to be 40-55.

comment 9y ago · link · parent

I am optimistic that we have a chance for real solutions here:

* Pricing: How about transparent pricing up front for all non-emergency services? That means the price you pay, and that your insurance pays. Not some mystery of "you are responsible for some unknowable amount if the insurance company doesn't pay" or "we might make you pay your entire deductible".

* More effective implementation of high deductible health plans that's simpler for people.

* Medical expenses and insurance tax-deductible, full stop. No messing with HSA, FSA.

* When you are diagnosed with a condition, your current insurance is responsible for the rest of your life for related expenses. No new insurance company would deny you because it wouldn't cost them anything for your preexisting condition.

* Subsidize normal health insurance for poor people.

comment 9y ago · link · parent

The biggest argument against it is falling into the "pure technical" trap.

Postgres has a great focus on solving real problems for real people. Losing that focus would be a disaster.

comment 9y ago · link · parent

I think the difference is protecting something against mistakes vs malice.

In other words, a better safety analogy might be the prompt when you do "rm -rf".

I'm not opposed to introducing standards here; I am just saying that it's adofferent problem.

comment 9y ago · link · parent

Easy to accommodate: either continue your SS with a benefit of $100/mo; or take away your benefit and return you your inflated dollars.

comment 9y ago · link · parent

Is the goal to eliminate diversity by making every group statistically the same as every other group?

comment 9y ago · link · parent

"lack of diversity"

If two groups are different enough that, when you put them together, you call it "diversity"; then why would you expect them to be statistically identical when you pull the groups apart again?

In other words, if the concept of diversity exists at all, you would expect some groups to be overrepresented in one area and underrepresented in others. Why is any of this a surprise?

Note that I am not saying there are any kinds of inherent limitations on what people can accomplish. It could be any number of factors that cause two groups to diverge: culture, life experience, preferences, etc.

But it's pure madness to celebrate diversity and the attack any differences in outcomes.

comment 9y ago · link · parent

Do you know that they are in breach, or are you just assuming?

comment 9y ago · link · parent

"Escape taxes" is a bit harsh. If the tourists are a net benefit, who cares if it's perfectly fair or not?

If you are really concerned about this inequity, you need to also consider the services that tourists don't use, such as schools, and most of the roads outside of tourist-trap areas.

comment 9y ago · link · parent

Most cities seem to love tourism, to the point that it's considered an industry and has its own advertising.

Tourists pay sales tax and indirectly pay other taxes through businesses that cater to tourists.

comment 9y ago · link · parent

Type I diabetic.

I am convinced that a real change is a lot more realistic when it is part of a larger lifestyle change. Habits are hard to break one by one because they reinforce eachother.

I suggest that you collect all your bad habits together and break them all at once. Or, with the next change in your life (new city, new job, marriage, first child) also change your diet.

It sounds harder but I think it's easier. Baby waking you up three times in one night, and you won't care how food tastes anyway.

I think a big enough change triggers something in your mind that says "this is how life is now".

Another tip is that embarassment and disgust are powerful emotions, so use them. When I got married I was literally too embarrassed to keep my old diet. And if you think about it the right way, sugar everywhere is disgusting. It makes your mouth sticky causes rapid bacterial growth and bad breath.

comment 9y ago · link · parent

Do you have any suggestion to maintain hype at a reasonable level? Basically, a lot of people are excited about it, a lot of people are writing good libraries, and they blog about them, which feeds into the hype cycle.

I think the main hype danger for rust right now is that the number of killer applications written it will fall short of the hype. But the linked article is from someone writing redox-os, so it's hard to criticize this article specifically for contributing to overhype.

Ruby had the opposite problem, which is that a lot of people were writing amazing applications, but it fell down technically (applications got messier and slower; or at least that is the perception). In theory the same thing could happen to rust, but it seems less likely.

comment 9y ago · link · parent

Arenas have fast allocation (because you often have no freelist and just increment the end). They also allow you to quickly reclaim old data, which is important for a database because a query might run long enough for the allocated memory to be considered old (for one example). And they don't require compaction or copying, because objects of the same lifetime are physically near each other in memory.

It's fair to draw an analogy to generational GC, but they aren't the same.

Rust is an example of a language that can do arena allocation without the dangers of C++.

EDIT: Based on my experience with postgresql, and what I've learned about rust so far, I am starting to believe that object lifetime is a fundamental concept in CS. It's possible that sophisticated GCs have, to some degree, hidden the importance.

comment 9y ago · link · parent

It could also be that people respond based on what they think the "official" answer is when paid; otherwise they answer what they actually believe.

For instance, there are official measurements of debt, deficit, and inflation. But some might believe that unfunded liabilities are debt, or that inflation is higher than the official number.

1
444546
87