HNHacker News
TopNewBestAskShowJobs

darkmx0z

10 karma · joined January 5, 2018

submissionscomments
darkmx0z··on GPT in 500 Lines of SQL
when talking about a set of characters, alphabet is a commonly used term https://cs.stackexchange.com/search?q=string++alphabet+size
darkmx0z··on C++ the Good Parts (2014)
did you check the header of that cpp? they are storing it in a shared_ptr: shared_ptr = referenced counted pointer = RAII

they should have used make_shared, but it is still safe

darkmx0z··on Google Is Not God of the Web
unfortunately, those websites are probably more popular than the church's website in question (or at least, receive more clicks from google search)
darkmx0z··on Google Is Not God of the Web
You are getting that because other people do not care about what you are searching for :( their AI is maximizing the chances of quickly finding what most people want, not what you want.
darkmx0z··on Google Is Not God of the Web
They are relying too much on AI and "collective wisdom". The results you get now are what Google thinks you want based on what others want, not on what you are actually searching for. What you typed is now treated as a mere clue, not as a search key.
darkmx0z··on The joy of max()
If you sort2(a, b), it would be nice if min(a, b) == a && max(a, b) == b.
darkmx0z··on The joy of max()
Stepanov disagrees. You should return the second parameter if a, b are equivalent (and you should use < anyway):

  template<typename T>
  inline constexpr const T& max(const T& a, const T& b) {
     return (b < a ? a : b);
  }
darkmx0z··on CPU hardware vulnerable to side-channel attacks
disable high resolution clocks for non-sudo programs?