Live data from Hacker News

Viewing profile — sgsjchs

sgsjchs

HN member
Joined
Sat, Sep 06, 2025, 8:34 PM UTC
HN karma
12
Public activity
22 items

About sgsjchs

No profile information was provided.

Recent public activity

  1. comment
    Comment #49266378

    > dictionary based compression That corresponds to PCFG models.

  2. comment
    Comment #49265952

    The first LZ-step pretty much directly maps to BPE tokenization in LLMs.

  3. comment
    Comment #48516349

    Make multiple nodes do the same job, compare results.

  4. comment
    Comment #47847398

    You have it backwards. This formal game-theoretic notion of fairness acknowledges that power disparity exists and that having less power than your counterparty allows them to infli…

  5. comment
    Comment #46927975

    Does it really matter that English is not as precise if the agent can make a consistent and plausible guess what my intention is? And when it occasionally guesses incorrectly, I ca…

  6. comment
    Comment #46746962

    It's the other way around.

  7. comment
    Comment #46096349

    The trick is to provide dense rewards, i.e. not only once full goal is reached, but a little bit for every random flailing of the agent in the approximately correct direction.

  8. comment
    Comment #45536830

    I, too, enjoy the craftsmanship, but at the end of the day what matters is that the software works as required, how you arrive at that point doesn't matter.

  9. comment
    Comment #45534192

    > I still don't understand this decision. Variable declaration `T v;` means "declare `v` such that expression `v` has type `T`". Variable declaration `T *p` means declare `p` such …

  10. comment
    Comment #45493241

    But in C that's just syntax sugar for pointer math.

  11. comment
    Comment #45493149

    You very rarely would actually want scalar types which don't map directly to hardware supported ones anyway.

  12. comment
    Comment #45236618

    Why would you want to store arbitrary individual passwords instead of deriving them with on demand from the service name/domain and a common secret?

  13. comment
    Comment #45175115

    Indeed, the "valid but unspecified state" refers only to some types defined in the he standard library. It essentially means that you can only call methods which have no preconditi…

  14. comment
    Comment #45171042

    > No, the class can use a sentinel value internally only to mark moved-from objects. That's exactly where we actually started the conversation. The issue is that the "moved-from" s…

  15. comment
    Comment #45166891

    > Again, I don't see what this has to do with destructive moves. If you want a socket class that always refer to an open socket, you can already do that. Technically you can, but i…

  16. comment
    Comment #45162933

    > what difference would it make The same difference as making pointers always non-nullable and reintroducing nullability via an optional wrapper only when semantically appropriate.…

  17. comment
    Comment #45162847

    You don't need optional in this case, the assignment would just destroy the old socket and immediately move the new one in its place.

  18. comment
    Comment #45157076

    > And what's the underlying value of such a default constructed socket? I assume it would be -1 resp. INVALID_SOCKET No, as explained, the default value would be the result of `::s…

  19. comment
    Comment #45156729

    Reopen by constructing and assigning a new socket.

  20. comment
    Comment #45156728

    In this case, I would want the address family and protocol to be statically known, so it would have default constructor. But for example, a file might not have one, sure. As for cl…

  21. comment
    Comment #45154357

    If the moves were destructive, I'd design it to have the default constructor call `::socket` and destructor call `::close`. And there wouldn't be any kind of "closed" state. Why wo…

  22. comment
    Comment #45152628

    A socket.