HackerTrans
TopNewTrendsCommentsPastAskShowJobs

nemetroid

no profile record

comments

nemetroid
·letzten Monat·discuss
\<i\>
nemetroid
·letzten Monat·discuss
How are any of these achieved by a vector-like type with capacity frozen at construction time?
nemetroid
·vor 2 Monaten·discuss
Just poking fun - the ad is for a "composing machine", so the joke wrote itself.
nemetroid
·vor 2 Monaten·discuss
From the last image:

> No Type. No Distribution. No "Pie"-ing.

> Self-spacing. Self-justifying.

Looks machine-composed.
nemetroid
·vor 2 Monaten·discuss
The west, you mean?
nemetroid
·vor 5 Monaten·discuss
Using '=' for both assignment and comparison is awkward when parsing incomplete code. Consider e.g.:

  j = 5;
The user starts writing (<|> is the cursor position):

  i = <|>
  j = 5;
This is a valid expression (i is a boolean). But the user probably intends to finish writing something like:

  i = 0;
  j = 5;
So in the intermediate state we would like to emit a single warning about an incomplete statement. But since it is valid as written, we instead end up warning about e.g. j being unbound.
nemetroid
·vor 6 Monaten·discuss
Not common for showers, though. Those almost always have separate temperature and flow controls.
nemetroid
·vor 6 Monaten·discuss
I read it and thought it contained several good ideas, but was excessively wordy and would have benefited from being half as long.
nemetroid
·vor 6 Monaten·discuss
Why would I leave it open once I'm done with the task for which I opened the terminal?
nemetroid
·vor 6 Monaten·discuss
Yes, many or even most domains where C++ sees a large market share are domains with no other serious alternative. But this is an indictment of C++ and not praise. What it tells us is that when there are other viable options, C++ is rarely chosen.

The number of such domains has gone down over time, and will probably continue to do so.
nemetroid
·vor 6 Monaten·discuss
You can throw in a destructor but not from one, as the quoted text rightly notes.
nemetroid
·vor 7 Monaten·discuss
Slop.

https://github.com/Cranot/tieredsort/blob/4091f66c31b4d2f8a1...
nemetroid
·vor 7 Monaten·discuss
The new profiling.sampling module looks very neat, but I don't see any way to enable/disable the profiler from code. This greatly limits the usefulness, as I am often in control of the code itself but not how it is launched.
nemetroid
·vor 7 Monaten·discuss
RHEL10 has been released and does require x86-64-v3.

https://access.redhat.com/solutions/7066628
nemetroid
·vor 7 Monaten·discuss
Each entry in the map will be copied. In C++, const T& is allowed to bind to a temporary object (whose lifetime will be extended). So a new pair is implicitly constructed, and the reference binds to this object.
nemetroid
·vor 7 Monaten·discuss
Close, it is a std::pair, but it differs in constness. Iterating a std::map<K, V> yields std::pair<const K, V>, so you have:

  std::pair<const std::string, int>
vs

  std::pair<std::string, int>
nemetroid
·vor 7 Monaten·discuss
> Both Microsoft and Google seem to do it just fine

Microsoft sends me DMARC reports saying "yes, everything was accepted 100%, all good". The delivery logs on our end look good as well. However, they silently drop a large portion of messages with a Hotmail destination.
nemetroid
·vor 8 Monaten·discuss
A nice way to fix bugs is to make the buggy state impossible to represent. In cases where a bug was caused by some fundamental flaw in the original design, a redesign might be the only way to feel reasonably confident about the fix.
nemetroid
·vor 8 Monaten·discuss
You're right and I edited my comment.
nemetroid
·vor 8 Monaten·discuss
> The effect of referring to a copy of the object when locking, unlocking, or destroying it is undefined.

https://pubs.opengroup.org/onlinepubs/9699919799/functions/V...

I.e., if I pthread_mutex_init(&some_addr, ...), I cannot then copy the bits from some_addr to some_other_addr and then pthread_mutex_lock(&some_other_addr). Hence not movable.

> Moving a mutex is otherwise non-sensical once the mutex is visible

What does "visible" mean here? In Rust, in any circumstance where a move is possible, there are no other references to that object, hence it is safe to move.