Better HN
topnewbestaskshowjobs
Log inSign up

darkmx0z

10 karma · joined Jan 5, 2018 (8y ago) · 10 submissions

Submissions

comment 2y ago · link · parent

when talking about a set of characters, alphabet is a commonly used term https://cs.stackexchange.com/search?q=string++alphabet+size

comment 6y ago · link · parent

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

comment 6y ago · link · parent

unfortunately, those websites are probably more popular than the church's website in question (or at least, receive more clicks from google search)

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 8y ago · link · parent

If you sort2(a, b), it would be nice if min(a, b) == a && max(a, b) == b.

comment 8y ago · link · parent

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

comment 8y ago · link · parent

disable high resolution clocks for non-sudo programs?