Live data from Hacker News

Viewing profile — ddfisher

ddfisher

HN member
Joined
Thu, Jan 21, 2010, 3:18 AM UTC
HN karma
145
Public activity
30 items

About ddfisher

david.davidfisher@gmail.com

Recent public activity

  1. comment
    Comment #12704502

    Don't forget Cython [1]! My understanding is that it's quite useable (though it unfortunately uses a different static type system/syntax than mypy). [1] http://cython.org/

  2. comment
    Comment #12704483

    This is exactly what mypy allows, actually! (Except for speedups -- types currently have no effect on runtime behavior, and it turns out they wouldn't make a big difference anyway.…

  3. comment
    Comment #12704372

    Good question! There are separate capitalized types for List, Dict, etc provided as part of the `typing` module in order to let you specify element types. Types are all normal Pyth…

  4. comment
    Comment #12704309

    It should work with the Python 3 syntax if you quote your type annotation. I.e. def f() -> "Bar": ... instead of def f() -> Bar: ... (This is normally used for forward references.)…

  5. comment
    Comment #12704280

    Yeah, you need to write `from typing import List` to get the generic List class that you can parameterize with an item type. As you pointed out, you can use the builtin lowercase-l…

  6. comment
    Comment #11138536

    This is intended behavior, actually! By default, mypy doesn't type check the interior of functions that don't have any type annotations. This lets you slowly introduce types to a l…

  7. story
  8. story
  9. comment
    Comment #5452859

    Leeching shouldn't be too much of a problem: the user will upload while they remain on the page (which should be much longer than it took them to download the assets).

  10. comment
    Comment #4513608

    Re-reading, I can see that now. Oops! (I think the paragraph break confused me.)

  11. comment
    Comment #4512908

    While I agree that being skeptical about self-help books is a good thing, I think you made a big mistake in your specific example. I have not looked at "The Feeling Good Handbook" …

  12. comment
    Comment #4509420

    I think "the root of all evil" is, in general, not a good choice of phrase. I understand the vehemence with with you speak, but I think it's a bit overly hyperbolic and creates qui…

  13. comment
    Comment #4509391

    > Anyone who can complete Tour de France at all or moderately but steadily grow an investment portfolio over the years should be extremely satisfied with just that already. (I'm no…

  14. comment
    Comment #4509356

    Terrible. RIP. :( What can we do to stop things like this from happening again? There's clearly no quick-fix overnight solution, but there should be some set of actions we can take…

  15. comment
    Comment #4409168

    Do it! What's stopping you?

  16. comment
    Comment #4344332

    I believe this is the shadow of the rover.

  17. comment
    Comment #4249311

    As another person who's spent some time thinking about this: I disagree. Why couldn't a machine simulate the noise as well?

  18. comment
    Comment #4113420

    I recommend Escape, actually - it skips the whole conversation. :)

  19. comment
    Comment #3646534

    I recently started using Phabricator ( http://phabricator.org/ ), which is open-source, and find that it's quite easy to use/set up. It's also used and well regarded by a number of…

  20. comment
    Comment #3241453

    Because Haskell is evaluated lazily, two maps doesn't imply two iterations over the data. In this case, I would expect only one pass through the data for both of the maps. Out of c…

  21. comment
    Comment #3064282

    As someone considering paleo, I'd be interested to hear what studies you thought well supported the claim that saturated fats aren't the problem and why you thought those studies w…

  22. comment
    Comment #3001809

    Activate visual mode first. In visual mode, the argument is used for the number of indents (because the lines to indent are selected visually). So to indent the current line 4 time…

  23. comment
    Comment #2631159

    While I too find it odd that your original comment was downmodded (has it been edited?), I don't think that a personal attack is an appropriate response. It doesn't seem like youna…

  24. comment
    Comment #2631105

    Perhaps I had the wrong impression, but I thought the correct response to a factually incorrect post was to point out the correct information in a reply, not to downmod the post. T…

  25. comment
    Comment #2620644

    "the general progress of AI" Out of curiosity, what are you referring to here?