Live data from Hacker News

Viewing profile — npage97

npage97

HN member
Joined
Thu, May 28, 2020, 3:31 PM UTC
HN karma
53
Public activity
17 items

About npage97

No profile information was provided.

Recent public activity

  1. comment
    Comment #45467216

    You have to opt in with the lazy import keyword no matter what. This pep also prevents lazy import in try catch. I think your concern matters if ‘module’ itself has a lazy import t…

  2. comment
    Comment #38790539

    Requiring c++17 seems like a big change from standard lua.

  3. comment
    Comment #38384129

    You can also use from __future__ import annotations so the quotes become unnecessary. https://peps.python.org/pep-0563/

  4. comment
    Comment #35622749

    Ruff is definitely faster by lacking type-checking. That requires way more analysis. Ruff will work fine without type hints. I believe it rightfully leaves it to mypy for those who…

  5. comment
    Comment #34392526

    For anyone curious, the reasoning for the slowness is briefly described here: https://python-poetry.org/docs/faq/#why-is-the-dependency-re...

  6. comment
    Comment #32633279

    In the lua realm, there is teal. It is very much like a typescript for lua https://github.com/teal-language/tl

  7. comment
    Comment #32434329

    There is dataclasses-json which does this https://pypi.org/project/dataclasses-json/

  8. story
    Show HN: SBS – A reformulation of SDS without heap allocation

    I've been using SDS a lot and really like the library. However it sometimes feels like overkill because when I'm building strings I frequently know that it will be within some boun…

  9. comment
    Comment #30991011

    I've done this exact setup (though not for firmware development). VS Code C/C++ extension also supports arm64 as well ( https://devblogs.microsoft.com/cppblog/visual-studio-code-c-…

  10. comment
    Comment #30679933

    code-server (vscode in gerneral with remote development extensions) does a lot of splitting of processes between the server and client. This makes normal code writing done on the c…

  11. comment
    Comment #30606823

    From tech spec pages: iPhone SE (3rd gen) ( https://www.apple.com/iphone-se/specs ) Video playback: Up to 15 hours Video playback (streamed): Up to 10 hours Audio playback: Up to 5…

  12. comment
    Comment #30130936

    To add onto this, I also found that Black works as a nice heuristic indicating to split up code when the formatted output isn't "pretty" into separate lines.

  13. comment
    Comment #29702249

    Yea it is there for devs to see different rich features in their console. You can run some examples using the -m flag + the submodule: python -m rich.live python -m rich.markdown #…

  14. comment
    Comment #29698851

    I’ve worked on rich https://github.com/willmcgugan/rich including adding strict mypy typing https://mypy.readthedocs.io/en/stable/command_line.html#cmdo... . I found Will’s codebas…

  15. comment
    Comment #29097944

    Not to mention that the clicking firmness is programmable: https://support.apple.com/en-us/HT204352

  16. comment
    Comment #26668507

    take a look at taskipy https://github.com/illBeRoy/taskipy as it resembles npm scripts.

  17. comment
    Comment #23338511

    So you shouldn't need to use pip install -e . as poetry already configures your package to be installed as editable. For adding a separate package in your filesystem, I believe usi…