Hacker Newsnew | past | comments | ask | show | jobs | submit | iam's commentslogin

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!


I read somewhere in the last two days their last quarter sales were somewhere around 10,500 units. So 55,000 would in line with that quarterly production rate.


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);


This will not work, as `throw_on_error` is not going to be destroyed at the end of the printing statement. Sure, you could wrap the whole thing up into a local scope, but as this trick was invented to save a couple of lines of vertical space, the usefulness of doing it seems little.


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.


CPUID is available in /proc/cpuinfo (or whatever the /sys or modern equivalent is, my Linux is a bit rusty)

Not sure re: UD2 though.


The point here is that the information in /proc/cpuinfo is virtualized, and therefore may not reflect reality...


Would you have to be a kernel module to access the CPU directly?


No. All binary programs access the CPU directly. Only certain instructions require being in a certain "ring" (i.e. access level). The CPUID instruction is non-privileged, meaning you can access it from user space.


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).


Have you tried turning off Contacts synchronization in Settings > Accounts ?


Yep, but I still get the message.


That sounds like it could be a bug, you should consider filing it on https://code.google.com/p/android


Install Titanium Backup and uninstall or freeze 'Google Contacts Sync'. Private contacts live!


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?


It's immutable but it defines swap? That seems.. odd.


It does not. swap() only appears in the documentation as a function not implemented.


This isn't any different from sharing the password with your family members (who you should trust anyway, right?). Why not make it more useful and allow the person you share with to play games from your library at the same time you're playing?

(but different games. if I want to play TF2 and the family member wants to play Dragon Age, I don't see why that shouldn't be possible!)

Heck, you can already play single/multi player games simultaneously just by sharing passwords and using offline mode. Color me unexcited.

Here's even a quick config file change you can make so that your Steam always starts in offline mode and doesn't force-logout the other person already logged in. http://forums.steampowered.com/forums/showthread.php?t=25474... (tried this with my dad and it works great as long as he doesn't need to patch).


Great post, very informative!

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


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


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: