Recent submissions

Comment · 8 years ago
No, type punning via unions is a gcc extension.

The standard only allows reading a value as the type it was written with or as char, and an access as char is only good for copying. If a char access used different bit order, that would be OK according to the standard because you couldn't tell unless you violated the standard.

It seems every compiler will tolerate a memcpy for type punning, even though this isn't required.

Comment · 8 years ago
Assuming brain changes only, more like:

looks like a chimpanzee, can't really talk due to throat limitations, can't walk very well, but likes to read and write

Comment · 8 years ago
The only real solution to gerrymandering is to use a minimally-complicated algorithm.

The algorithm need not actually determine the districts. It can instead simply rate proposals, allowing a contest to be held. The highest scoring proposal submitted at least 400 days prior to the election is the winner, with earlier submissions winning any ties.

Another improvement would be to let districts spill over state borders. One could exempt Alaska and Hawaii of course.

Comment · 8 years ago
I found the comment to be insightful. I'm trying to find his violation, and I can't really. There are a few things that are close, maybe, but not really.

"political or ideological battle" and "shallow dismissals" seem most plausible, but neither really fits. It's not as if the entirety of his comment was "more dumb leftist shit". There was more substance to his comment.

???

Comment · 8 years ago
Ah, but why were there children and old people being murdered en masse?

It's because humans naturally resist what was being imposed upon them. The smart and able-bodied are going to get more, and they will resist any effort to prevent this. Corruption and workplace theft were rampant in the Soviet Union.

Suppression of this resistance requires violence.

Comment · 8 years ago
IDA Pro is far more usable, particularly for heavy-duty long-term users. There is a bit of a learning curve, but IDA Pro has a really efficient interface. You get the beauty and readability and nice flowchart-like layout that can be done in a GUI, while the keyboard control has efficiency like a well-made DOS or mainframe program.
Comment · 8 years ago
The politician pays the union. The union pays the politician.

So both are getting paid, out of money taken by force from the population. Neither has an interest in making this stop.

About the only hope is that 1-sided political donations will sufficiently tick off a political party at the national level. There is a tiny chance that national law could change because of that.

Comment · 8 years ago
You also have two parties, the "government" and the "opposition". They are created after the election. At that point, the voters no longer get any say. The voters don't even know what they will get.

Consider a situation that starts with 12 parties. One gets 45% support, and the others each get 5% support. When the 12 parties merge into the 2 that will actually govern, that party with 45% may be the loser. The other 11 can merge to become a party with 55% of the power. The party which is most popular by far is thus locked out of power.

Comment · 9 years ago
Ultrasound does damage brain tissue.

It has been studied in China, where evidently it was considered ethical to do so. Search terms: China ultrasound study

What this does to the population's average mental ability and sanity is an interesting question. Autism is suspected.

Comment · 9 years ago
Numerous states had already sued the Obama administration in the other direction. (DACA being unlawful in the first place) Due to those still-ongoing lawsuits, DACA was probably about to go down in flames already.
Comment · 9 years ago
The direct flight requirement is odd. Adding flights is trivial, and it will happen if Amazon is buying the tickets. Airlines like to make money.
Comment · 9 years ago
Salt should come from mines.

The sea salt craze has always seemed odd to me. Have most people in the USA never been to a beach? Do people really think that the sea is a good source of salt?

What I associate with the sea: seagull droppings, rotten seaweed, spilled oil, dumped WWII chemical weapons, raw sewage...

Then I go to the store and see a box of Triscuit crackers featuring sea salt. Yum??????

Comment · 9 years ago
How much job capacity do you personally need? Isn't it enough to have just one job? Many cities have that and more, and it only takes one job to support a family.

I hope you don't expect to lose your job every few months, but in case you do, remember that new jobs pop into existence. It's not like a city with 100 jobs is on the verge of running out. (several years later: "oops, the last job got used up in 2018 and we can't ever make any more; this city is all used up")

I've had my tech job for a dozen years now. It pays well enough to get a 3500-square-foot house on half an acre and feed a huge family, even though the pay is perhaps only 2/3 of what I'd make in San Francisco or Mountain View. The 5x to 10x difference in housing cost more than makes up for the salary difference.

Comment · 9 years ago
This is a good Chinese restaurant, but you hint at a way to improve the menu. The menu should be a grid, properly displaying the matrix.
Comment · 9 years ago
Hurricanes reach to 60,000 feet.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton