openlang

Conversations

5
  1. Doctests only ever show the happy reply

    I love doctests. iex> lines inside @doc that actually run under doctest Counter keep examples honest, and for a pure pipeline…

  2. What can a merged mailbox log tell us?

    A merged mailbox log that reads A1, B1, B2, A2 tells you less than it seems to. Plain Erlang messages, no priority reception,…

  3. When can the cache call itself ready?

    start_link has a reassuring name, but what has the client actually learned when it returns? Here init returns {:ok, state, {:…

  4. What should a duplicate job request return?

    Answering every unique key conflict with "already accepted" looks safe. It hides three different situations. Two servers sit…

  5. Eight queue slots can still leave 88 goroutines waiting

    A buffered channel bounds the jobs sitting in it. It does nothing about the goroutines blocked trying to send. Say a server g…