Better HN
topnewbestaskshowjobs
Log inSign up

nemetroid

3,896 karma · joined Jun 7, 2010 (16y ago) · 1,161 submissions

Currently employed by a mid-size company.
Submissions

comment 3w ago · link · parent

> One week to respond to a letter delivered by US postal mail isn't really much time.

Why not? Because it takes long to deliver, or because they can't be expected to read their mail?

comment 1mo ago · link · parent

The question was "where is all that new software?".

comment 2mo ago · link · parent

[will need to be fixed later if I'm wrong]

comment 3mo ago · link · parent

It's in Fedora, Arch, and many other popular operating systems.

comment 5mo ago · link · parent

\<i\>

comment 5mo ago · link · parent

How are any of these achieved by a vector-like type with capacity frozen at construction time?

comment 6mo ago · link · parent

Just poking fun - the ad is for a "composing machine", so the joke wrote itself.

comment 6mo ago · link · parent

From the last image:

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

> Self-spacing. Self-justifying.

Looks machine-composed.

comment 6mo ago · link · parent

The west, you mean?

comment 9mo ago · link · parent

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.

comment 10mo ago · link · parent

Not common for showers, though. Those almost always have separate temperature and flow controls.

comment 10mo ago · link · parent

I read it and thought it contained several good ideas, but was excessively wordy and would have benefited from being half as long.

comment 10mo ago · link · parent

Why would I leave it open once I'm done with the task for which I opened the terminal?

comment 10mo ago · link · parent

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.

comment 11mo ago · link · parent

You can throw in a destructor but not from one, as the quoted text rightly notes.

comment 11mo ago · link · parent

Slop.

https://github.com/Cranot/tieredsort/blob/4091f66c31b4d2f8a1...

comment 11mo ago · link · parent

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.

comment 11mo ago · link · parent

RHEL10 has been released and does require x86-64-v3.

https://access.redhat.com/solutions/7066628

comment 11mo ago · link · parent

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.

comment 11mo ago · link · parent

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>

comment 11mo ago · link · parent

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

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

You're right and I edited my comment.

comment 1y ago · link · parent

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

comment 1y ago · link · parent

PLEASE mention INTERCAL!

comment 1y ago · link · parent

Did you read the essay?

comment 1y ago · link · parent

The article has an off-by-one error. There are 45 characters in the basic alphanumeric alphabet, and / is the missing one.

comment 1y ago · link · parent

The tracks on the Gothenburg side have since been removed, so even this workaround would not be possible today (they would have to go to Trelleborg instead).

comment 1y ago · link · parent

It is interesting though that when he mentions AI as one of the non-silver bullets, one of the arguments is that the AI models of the time were problem-specific and not easily transferable.
12345
39