Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
npage97
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
npage97
1y ago
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 that you want to check exists. With this you now need to be m
2.
▲
by
npage97
3y ago
Requiring c++17 seems like a big change from standard lua.
3.
▲
by
npage97
3y ago
You can also use from __future__ import annotations so the quotes become unnecessary. https://peps.python.org/pep-0563/
4.
▲
by
npage97
3y ago
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 want those features. Mypy transpiles itself to c using mypy
5.
▲
by
npage97
4y ago
For anyone curious, the reasoning for the slowness is briefly described here: https://python-poetry.org/docs/faq/#why-is-the-dependency-re...
6.
▲
by
npage97
4y ago
In the lua realm, there is teal. It is very much like a typescript for lua https://github.com/teal-language/tl
7.
▲
by
npage97
4y ago
There is dataclasses-json which does this https://pypi.org/project/dataclasses-json/
8.
▲
Show HN: SBS – A reformulation of SDS without heap allocation
(github.com)
3 points
by
npage97
4y ago
|
0 comments
9.
▲
by
npage97
4y ago
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-... ). This works well with re
10.
▲
by
npage97
5y ago
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 client side. Intellisense still has the network delay, but is
11.
▲
by
npage97
5y ago
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 50 hours iPhon
12.
▲
by
npage97
5y ago
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.
▲
by
npage97
5y ago
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 # this is actually a markdown to terminal cli https
14.
▲
by
npage97
5y ago
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 codebase easy to r
15.
▲
by
npage97
5y ago
Not to mention that the clicking firmness is programmable: https://support.apple.com/en-us/HT204352
16.
▲
by
npage97
5y ago
take a look at taskipy https://github.com/illBeRoy/taskipy as it resembles npm scripts.
17.
▲
by
npage97
6y ago
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 using https://python-poetry.org/docs/