HNHacker News
TopNewBestAskShowJobs

Kristine1975

2,687 karma · joined October 2, 2015

submissionscomments
Kristine1975··on The new science of cute
That's what makes them cute, though.
Kristine1975··on Zeroing Memory is Hard: VC++ 2015 arrays
I'd wager they have an optimization pass that coalesces adjacent constant stores.
Kristine1975··on Facebook ‘glitch’ that deleted the Castile shooting video: It was the police
Breitbart is as far away from facts as you can possibly get. "American Renaissance" with its "race realism" doesn't sound much more reliable.
Kristine1975··on Facebook ‘glitch’ that deleted the Castile shooting video: It was the police
Note that "snipers" doesn't mean people with a sniper rifle like in the movies. Apparently one of the shooters walked around with an assault rifle, but nobody said/did/could do anything because Texas is an open carry state.
Kristine1975··on Facebook ‘glitch’ that deleted the Castile shooting video: It was the police
It has been getting out of hand for quite a while now: https://www.reddit.com/r/GunsAreCool/comments/4qyfsx/here_ar...

  MASS SHOOTING CASUALTIES IN THE U.S. - JUNE 2016

    52 verified mass shootings
    104 people killed
    226 people wounded

  These people were victims strictly of mass shootings. Not included
  are victims of shootings where three or fewer people were shot. On
  average, 91 Americans are killed and more than 200 injured with guns
  every day.
Kristine1975··on Facebook ‘glitch’ that deleted the Castile shooting video: It was the police
>and disarm the population

And the police (see UK, where most police is unarmed).

Kristine1975··on Facebook ‘glitch’ that deleted the Castile shooting video: It was the police
Lots of first-world countries have Internet. Not a lot of first-world countries have the amount of shootings, including mass shootings, the US has. That makes me doubt that the Internet is the problem.
Kristine1975··on Research suggests many US parents will lie when saying kids made them happier
>The researchers caution that their findings don't mean that American parents are less happy than other parents around the world, as some media outlets have reported

Like for example the headline of this very article. I guess it was not written by the author.

Kristine1975··on Apex memmove – fast memcpy/memmove on x86/x64
>I don't want to register to download the code

BugMeNot has you covered: http://bugmenot.com/view/codeproject.com

Kristine1975··on EU regulations on algorithmic decision-making and a “right to explanation”
Just put a link under the ad "why am I seeing this ad?" leading to a page with the explanation.
Kristine1975··on Web DRM moves to next phase, Defective by Design to continue opposition
Today's digital media will never survive as long as the Rosetta Stone did, so that's no problem ;-)
Kristine1975··on Apex memmove – fast memcpy/memmove on x86/x64
>Although these are C/C++ functions, they were `designed by disassembly` ... meaning I was paying close attention to the compiler output. This is NOT normally advisable (we don't want the compiler to dictate how we design our functions), however, when you are designing things for maximum performance, it's important to pay attention to how the code will compile! The strange layout of the functions is a testament to my close observation of the compiler output.

Why not write in assembly then? And this sounds like a recipe for slower code when using a different compiler or a different version of the same compiler:

>The way instructions are ordered also prevents the compiler from making some `assumptions`!

Kristine1975··on Unpleasant Design
> it's not the companies being anti-social... it's the government being anti-social.

It's both.

Kristine1975··on Replace your dull 'very' with these 128 modifiers
How very!
Kristine1975··on [dead]
Misleading article headline is misleading. It's about the usage of specific words, not misogynistic tweets in general:

Half the aggressive tweets using the words slut and whore analysed by social thinktank Demos came from women and girls, research indicates.

Kristine1975··on Unpleasant Design
The "armrests" shown in the article appear too low or too sloped to be useful.
Kristine1975··on Unpleasant Design
I don't like the anti-social ordinances any more than the anti-social benches they caused.
Kristine1975··on Unpleasant Design
> On the other hand it also punishes people who can't practically participate in local politics (tourists for example)

Seeing homeless people is punishment?

Kristine1975··on Unpleasant Design
Since always. Public property should be usable by the public in any way they see fit, as long as they don't damage it.
Kristine1975··on Unpleasant Design
Because a public bench should also be for sleeping and skating.
Kristine1975··on The final Windows 10 free upgrade nag will be full-screen
Microsoft must be really desperate.
Kristine1975··on Bit Twiddling Hacks (2005)
Maybe this helps: http://www.forceflow.be/2013/10/07/morton-encodingdecoding-t...
Kristine1975··on Final features of C++17
The base class must be a template with one parameter being the derived class:

  template <typename D>
  class Base {
    ...
  };
and then:

  class Derived: public Base<Derived> {
    ...
  };
This is called the https://en.wikipedia.org/wiki/Curiously_recurring_template_p...
Kristine1975··on Final features of C++17
The C++ committee can and does change how functions of the C standard library work in C++, see Appendix C of the C++ Standard (granted, most of those changes simply specify how the library functions interact with C++ features).

C++ is not 100% compatible with C.

Kristine1975··on Final features of C++17
Compile-time error:

Otherwise, if the expression std::tuple_size<E>::value is a well-formed integral constant expression, the number of elements in the identifier-list shall be equal to the value of that expression

(E is the return type of "getvalues" in squidbidness's example, the initializer-list is "a, b, c".)

Kristine1975··on Final features of C++17
>can you force derived classes to have foo_impl, and have an inlined function foo in the base class that calls foo_impl?

If that's all you want just write:

  void foo()
  {
    static_cast<Derived&>(*this).foo_impl();
  }
When the derived class doesn't have any method "foo_impl" (or no "foo_impl" with a suitable signature), you will get a compile-time error.

No need for the static_assert, that was just because KKKKkkkk1 asked whether checking for the existence of a method at compile-time was possible.

Compile-time polymorphism is essentially duck typing: If it quacks like a duck you can treat it as one. If it doesn't quack like a duck, but you still treat it as one you get a compiler error.

Kristine1975··on Final features of C++17
This does not compile:

  template<>
  class foo<int> {
    static_assert(false, "bad");
  };
Reason: "false" is not a dependent name, so the compiler is allowed to check the static_assert when the template is being declared.

(Of course since this is a full specialization, there are no dependent names.)

See C++14 Standard §14.6.2 (Dependent Names) or http://en.cppreference.com/w/cpp/language/dependent_name (not sure how accurate that page is, though).

P.S: It might compile with Microsoft's Visual Studio, but only because that compiler doesn't implement two-phase name lookup, effectively turning every name into a dependent name.

Kristine1975··on Final features of C++17
That seems to be the plan: https://isocpp.org/std/status
Kristine1975··on Final features of C++17
That's the case though, as long as CODE is syntactically correct. So this would compile:

  if constexpr (condition) {
    print("yes");
  }
While this wouldn't:

  if constexpr (condition) {
    print({
  }
At least that's my understanding.
Kristine1975··on Final features of C++17
Why not just use boost.asio? It even supports coroutines now.
← PreviousPage 3 of 26Next →