Recent submissions

Comment · 10 years ago
I don't see being critical of people in power as a bias, unless you're saying that they don't spend enough time being critical of people not in power.
Comment · 10 years ago
My original point said nothing on the media's involvement with polling, outside of simply reporting it. As for the pollsters, whether it was ideological bias or simply mistake is also irrelevant to my original point.

My claim is that the "real news" committed the journalistic equivalent of manslaughter. Whether or not they intended to mislead the public doesn't negate the fact that the public was misled. Blaming "fake news" doesn't justify their own role in misleading the public. There is no court of journalism, but the consequences regardless will be that people will trust the traditional news sources less.

Comment · 10 years ago
What is The Intercept's bias?
Comment · 10 years ago
Comment · 10 years ago
Comment · 10 years ago
It's not convoluted. It's actually clear and well-defined making it easier to reason about.

I'd call compiler specific alignment attributes more arcane, convoluted, and susceptible to future bugs.

Vectorization isn't a panacea. You need to benchmark to be sure, lacking that I expect GCC to be better at optimizing code than you. If you disagree, please manually write a vectorized one that handles non-aligned addition and post your results :)

Comment · 10 years ago
I'm not sure I understand your deal breaker. For the platform he was targeting it produces optimal code, for other platforms it's merely slower (but not specifically slower, since the compiler is likely not a great optimizer across the board).

Vectorization is in general not applicable here since it usually requires aligned memory... not all implementations do, but most. In any case, benchmarking is more appropriate than armchair optimizing.

Comment · 10 years ago
Nah, correct solution is simply to use memcpy(), works on all compilers, all platforms, all versions, with SSE and with any flags specified:

  #include <stdlib.h>
  #include <stdint.h>

  uint64_t sum (char *p, size_t nwords)
  {
      uint64_t res = 0;
      size_t i;
      for (i = 0; i < nwords; i += 8) {
        uint64_t tmp;
        memcpy(&tmp, &p[i], sizeof(tmp));
        res += tmp;
      }
      return res;
  }
Comment · 10 years ago
Undefined behavior is one of the most intelligent things the C designers did when designing the language.

It's a fact of life that not all syntactic forms will have meaning. What's sqrt(-1)? Trick question, There's no meaningful answer (in terms of real numbers alone)! Why should anyone specify if it crashes the program, returns 0, throws an exception, etc.? Who cares? garbage in, garbage out.

Another example, "the floor had a pretty day with his melted spaceship" that is a grammatically well formed sentence but what does it mean? Don't answer that!

Comment · 10 years ago
Who wrote this?
Comment · 10 years ago
Usually the case as in usually never the case.
Comment · 10 years ago
What's preventing there being an AI with hardcoded desire to regulate values like hunger level, boredom level, etc.? I could imagine a problem solving AI dedicated to continuously solving those problems.
Comment · 10 years ago
Only if you release it.
Comment · 10 years ago
The point of the 0-day black market is to not reveal these attacks publicly. If there were public proof of this in the past it would have been fixed in the past.

Take my word for it when I say there are upper echelons of black hats that are stockpiling unknown 0-day exploits like this and presently using them in the wild.

Or dismiss me as irrational and continue with the belief that all bugs are unknown until white hats share them with Apple.

Comment · 10 years ago
The sad reality is that black hats have been exploiting this class of bugs for years.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton