Live data from Hacker News

Viewing profile — hauntsaninja

hauntsaninja

HN member
Joined
Sat, May 09, 2020, 7:26 PM UTC
HN karma
405
Public activity
38 items

About hauntsaninja

No profile information was provided.

Recent public activity

  1. comment
    Comment #47610592

    I don't yet know a better way to do this than using a threshold! I think if you assume perf is normally distributed, you can still get some of the math to work out. But I will need…

  2. comment
    Comment #47609980

    Note that "pick the commit with best expected information gain" in git_bayesect isn't optimal even in the no overhead regime. I provide a counterexample in the writeup, which impli…

  3. comment
    Comment #47609902

    Yep, you can run bayesect to an arbitrary confidence level. This script in the repo https://github.com/hauntsaninja/git_bayesect/blob/main/scrip... will show you that a) the confid…

  4. comment
    Comment #47609830

    That sounds right. `git_bayesect` currently uses `--first-parent`, so I think belden's use case should work, but I haven't tested it much on complicated git histories.

  5. comment
    Comment #47609710

    Yes! It will show you the posterior probability as a single commit starts to become more likely. In addition, running `git bayesect status` will show you all posterior probabilitie…

  6. comment
    Comment #47559080

    Yay, I had fun with it too! IIUC the way you'd do that right now is just repeatedly recording the individual observations on a single commit, which effectively gives it a probabili…

  7. comment
    Comment #47558065

    git bisect works great for tracking down regressions, but relies on the bug presenting deterministically. But what if the bug is non-deterministic? Or worse, your behaviour was alw…

  8. story
  9. comment
    Comment #46910479

    Reasoning effort is denominated in tokens, not time, so no difference beyond slowness at heavy load (I work at OpenAI)

  10. comment
    Comment #46396591

    Yes, uv skipping this step is a one time significant hit to start up time. E.g. if you're building a Dockerfile I'd recommend setting `--compile-bytecode` / `UV_COMPILE_BYTECODE`

  11. comment
    Comment #46298706

    Unknown has the exact same type system semantics as Any. Unknown is a pyright specific term for inferred Any that is used as the basis for enabling additional diagnostics prohibiti…

  12. comment
    Comment #46297743

    I’ve added ecosystem regression checks to every Python type checker and typeshed via https://github.com/hauntsaninja/mypy_primer . This helped a tonne with preventing unintended or…

  13. comment
    Comment #46297631

    The conformance test suite is currently mostly focused on “what does an explicit type annotation mean” A shared spec for this is important because if you write a Python library, yo…

  14. comment
    Comment #46296360

    Mentioned this in another comment, but the spec conformance suite is not representative of the things users care about (nor is it meant to be). The spec mostly concerns itself with…

  15. comment
    Comment #46296309

    Note: while spec conformance is important, I don't recommend using it as the basis for choosing a type checker. It is not representative of the things that most users actually care…

  16. comment
    Comment #45408387

    pyright will accept this. mypy should accept this when using --allow-redefinition-new as well

  17. comment
    Comment #44965755

    text-davinci-001 is just not GPT-3 in any real sense (I work at OpenAI, I helped build this page and helped train text-davinci-001)

  18. comment
    Comment #43920870

    Note that `uvx mypy` may give you inaccurate timings on macOS. The antivirus in macOS goes a little crazy the first time it executes a mypyc compiled program.

  19. comment
    Comment #42797761

    We had so many of these issues that we ended up LD_PRELOAD-ing patch getenv / setenv / putenv

  20. comment
    Comment #42680096

    Yeah, that's not exactly the problematic situation... but the good news is I improved the Python's error message for this in 3.13. See https://docs.python.org/3/whatsnew/3.13.html#…

  21. comment
    Comment #41792812

    You don't need to use pytz, you can use the following on all Python 3: tz_UTC = datetime.timezone.utc

  22. comment
    Comment #39178723

    Lean heavier on a mypy config file. Make heavy use of per-module configuration, in particular, setting per-module ignore_errors = true for modules you’re not yet ready to type chec…

  23. story
  24. comment
    Comment #32175273

    In Python 3.11, you can use the "-P" flag or the "PYTHONSAFEPATH" environment variable to avoid adding cwd to sys.path https://docs.python.org/3.11/whatsnew/3.11.html#summary-rele.…

  25. comment
    Comment #31206353

    You can use numpy just fine. Unlike Cython, mypyc doesn’t give you a way of accessing numpy’s C API (because you’re basically just writing Python code).