Recent submissions

Comment · 11 years ago
Tesla has an aggressive sales target of 55,000 vehicles by end of year for 2015, which is above its existing pace of quarterly unit sales

Is this a typo, or are they really selling this few cars? Must be the SF bay area bubble, I see a Model S all the time!

Comment · 12 years ago
This definitely dampens the usefulness.

It's like the author knew it was a bad idea too (he put noexcept(false) on the destructor; without which in C++11 the program terminates immediately when an exception is thrown from destructor).

If there's some way to avoid terminating when there's a double exception in the destructor, that would be good to hear!

One simple way I can think of is to reuse the same variable instead.

   ThrowOnError throw_on_error;
   std::cout << libfoo_create_widgets(1, &c1, throw_on_error) << libfoo_create_widgets(2, &c2, throw_on_error);
Comment · 12 years ago
Out of curiosity how would you reimplement this file in bash? https://github.com/kaniini/slabbed-or-not/blob/master/xen-de...

In particular, the fact that it's using inline asm directly (for cpuid, ud2, some others). Maybe with 'as' but that's not exactly pure bash (and I suspect not embedding it in C would need a non-trivial main function anyway).

Reading an arbitrary memory address (for the cpuid scans) might be a bit tricky too, though it could be doable with /proc/$PID/mem.

Comment · 12 years ago
Comment · 12 years ago
It would be a lot easier to get their attention if there was an actual 'adb bugreport' attached to the bug.

There's very little context on what the bug is and how to reproduce it besides some vague references to PressureNET (which means very little to someone who hasn't used that before).

Comment · 12 years ago
Have you tried turning off Contacts synchronization in Settings > Accounts ?
Comment · 13 years ago
I found this really fun, I tried half the languages there. But why do the lower level languages like C/C++ have actual logic in them (e.g. if/else/||/&& ) while the higher level languages just have module/class definitions?

It's not exactly an apple-to-oranges comparison. Like I just got 100+ wpm in Ruby but what's the point of feeling good about that when it's just typing out a list of symbols over and over again?

Comment · 13 years ago
It's immutable but it defines swap? That seems.. odd.
Comment · 13 years ago
Comment · 13 years ago
Great post, very informative!

But why recommend changing operator new/delete by using a macro instead of privately inheriting a class that does that?

Comment · 13 years ago
I was wondering what the difference in ingredients was, so I put together this list from their sites

Chapul (Chaco Bar) ingredients:

  * Dates
  * Peanuts
  * Toasted Oats
  * Chocolate Chips
  * Walnuts
  * Agave Nectar
  * Cricket Flour
  * Gryllus
  * Flax Seed Meal
  * Salt
Exo (Cacao Nut) ingredients:

  * Raw Almonds
  * Dates
  * Coconut
  * Honey
  * Cricket Flour
  * Raw Cacao Nibs
  * Raw Cacao Powder
  * Vanilla Extract
  * Sea Salt
Comment · 13 years ago
Can someone please shed some light on this relatively recent APU race? I understand it seems like a good idea for OpenCL, but when they increase their APU performance while actually stagnating their CPU performance I am just completely lost (as is the case with the i7-4770K).

What is the market for desktop CPUs where the desktop buyers don't also have dedicated video cards which can do a almost a magnitude better job than the APU?

Comment · 13 years ago
Oh, I don't think the game is not replayable, I had a lot of fun playing it and L4D2. I just don't think it was at all obvious accomplished their goals with the director AI that they set out to. Hence "replayability section" (directly referring to the PDF)
Comment · 13 years ago
Seems like a great idea. I expect most of their contributions will make it back to open source via AOSP, and people will be able to run their own secure non-proprietary versions of Android.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton