Live data from Hacker News

Viewing profile — glyph

glyph

HN member
Joined
Fri, Jun 26, 2009, 4:42 AM UTC
HN karma
120
Public activity
42 items

About glyph

[ my public key: https://keybase.io/glyph; my proof: https://keybase.io/glyph/sigs/x3awconzsPXRAHpPLtmmz8nFLkYhM_rUms4t8uLEcKw ]

Recent public activity

  1. comment
    Comment #44196785

    I appreciate your commitment to being open to the possibility of being surprised. And I do wish I _could_ find a context in which I could be comfortable doing this type of personal…

  2. comment
    Comment #44196583

    I haven't personally tried the specific tool that you have, but I have tried a variety of other tools and have had pretty negative experiences with them. I have received a lot of f…

  3. comment
    Comment #37739068

    Martin writes on Mastodon: “So apparently dang and the HN crowd are so upset I wrote some messages for HN visitors to our website, that they now banned my home IP address ”

  4. story
  5. comment
    Comment #36023311

    Also, if you really want a "fancy checksum" for verifying package installs, there's already a better feature in pip that actually works and is well-supported: https://pip.pypa.io/e…

  6. comment
    Comment #36023289

    There are other efforts underway to mitigate these threats (which could be subject to their own critiques, but let's not get into that here) but PGP has had 20 years to prove its u…

  7. comment
    Comment #34798834

    why do you think you can't define `__aenter__` and `__aexit__` on a dataclass?

  8. comment
    Comment #29720318

    To start with, the non-`@dataclass` version here doesn't tell you what types `name` and `age` are (interesting that it's an int, I would have guessed float!). So right off the bat,…

  9. comment
    Comment #29720233

    Not that attrs or dataclasses has particularly significant attack surface, but when considering stdlib vs. 3rd-party you also have to consider the amount of maintenance and the rel…

  10. comment
    Comment #29720197

    To the runtime-validation point; our team used attrs with runtime validation enforced everywhere (we even wrote our own wrapper to make it always use validation, with no boilerplat…

  11. comment
    Comment #29597007

    This is why consensus is a collection . Sometimes dialectical analysis is good; thesis, antithesis, synthesis is a tried and true formula that often works. But not always! Sometime…

  12. comment
    Comment #26528009

    The results of the poll are in, and 59.6% of the 699 respondents said that they're either using it already or will be using it within the year. This isn't necessarily a representat…

  13. comment
    Comment #26508890

    This made me curious, so I’m taking a poll. https://twitter.com/glyph/status/1372640855807250432?s=21

  14. comment
    Comment #26508860

    Just speaking for myself here, I didn’t realize the power of static typing for years and years because the main languages I used with “static types” were C-style; i.e. type checkin…

  15. comment
    Comment #26508821

    Mypy itself uses this extensively; it was developed because typechecking itself was getting too slow. So it’s seen some practical real-world use. It’s not a panacea (heck, it’s bar…

  16. comment
    Comment #26506939

    The post isn't about performance, and is aimed at people using Python for whatever reason, so, sure, retrofit away. That said, if you care about the performance improvements that t…

  17. comment
  18. comment
    Comment #24267727

    There’s no error in the original example; in Python, the ability to participate in inheritance diamonds with arbitrary other classes is a feature which must be explicitly documente…

  19. comment
    Comment #22931405

    The reason the crypto module was using this particular deprecated feature is that it hasn't been updated at all in 8 years. The OP should have dropped it because it's unmaintained,…

  20. comment
    Comment #12373795

    It's not an "in-joke". It follows conventions set by the Python language: - "def" instead of "define" - "cls" instead of "Class" - "sys" instead of "system" - "os" instead of "oper…

  21. comment
    Comment #12371685

    And, thanks for the P.S. Always nice to see people enjoy my work :)

  22. comment
    Comment #12371684

    The same problem does not apply. I understand that spooky action-at-a-distance magic can really ruin a codebase's maintainability. But what you've developed here is not a judicious…

  23. comment
    Comment #12363487

    Dictionaries are not for fixed fields. if you have a dict, it maps something to something else. You should be able to add and remove values. Objects, on the other hand, are suppose…

  24. comment
    Comment #12363480

    Why not? It's aggressively tested and benchmarked to ensure its correct and its performance impact is as close to zero as possible. (It's pretty close.)

  25. comment
    Comment #12363470

    None of this is a problem with attrs. Serialize however you like. >>> import attr >>> >>> @attr.s ... class Thing(object): ... a = attr.ib() ... b = attr.ib() ... ... >>> @attr.s .…