Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ofek
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
Show HN: Hatch v1.10.0 – UV support, new test command and built-in script runner
(hatch.pypa.io)
1 points
by
ofek
2y ago
|
0 comments
32.
▲
by
ofek
2y ago
Did you report the issue to Hatch? I'd like to fix any bugs :) edit: found it https://github.com/pypa/hatch/pull/1317 , already fixed
33.
▲
by
ofek
2y ago
Yes that feature will be coming right after PyCon! I just have too much to do right now between work, preparing for my talk and getting the next minor release out.
34.
▲
by
ofek
3y ago
Sorry but what you're saying simply is not true from my experience. The potential of this technology is the ability to perform multiple actions simultaneously e.g. having your character strafe while zooming in while firing a trigger. W
35.
▲
by
ofek
3y ago
This makes me very excited! I have Spinal Muscular Atrophy type 2 [1] and I have lost most of my physical capabilities save for 2-3 fingers and of course speech. Although I am now on Nusinersen [2] treatments I am still becoming weaker over
36.
▲
by
ofek
3y ago
Exciting stuff! I view Hatch [1] as becoming the Cargo for Python because it's already close and has an existing (and growing) user base but I can definitely see depending on this for resolution and potentially not even using pip after
37.
▲
by
ofek
3y ago
This makes me very excited. I have Spinal Muscular Atrophy type 2 [1] and I have lost most of my physical capabilities save for 2-3 fingers and of course speech. Although I am now on Nusinersen [2] treatments I am still becoming weaker over
38.
▲
by
ofek
3y ago
As mentioned in an addendum at the bottom of the page, wheels can now target Alpine. You can try it yourself using the example package from OP: docker run --rm python:3.11-alpine pip install pandas
39.
▲
by
ofek
3y ago
Thanks! 1. I view that as out of scope but you can always embed your own distribution https://ofek.dev/pyapp/latest/config/#distribution-embedding 2. https://pypi.org/project/cowsay/
40.
▲
by
ofek
3y ago
Yes if you want to build the binaries in containers you could mount a directory where the artifacts should go.
41.
▲
by
ofek
3y ago
You would have to compile the binary on the target platform. Eventually I will support cross compiling but even then there will still be one binary for every platform/architecture pair.
42.
▲
by
ofek
3y ago
Yup that's right!
43.
▲
by
ofek
3y ago
Sorry about that! What you said is basically correct: this is for distributing Python applications. You configure via environment variables at build-time and the binary you ship to users who then run it. It could be a single name/versi
44.
▲
by
ofek
3y ago
- This is a tool to build binaries for Python applications. It could have just as been written in any other language that can produce binaries. - Yes that is correct, applications are configured at build-time with environment variables. For
45.
▲
by
ofek
3y ago
Yes.
46.
▲
by
ofek
3y ago
Please let me know how it goes!
47.
▲
by
ofek
3y ago
The main difference is it does no build sorcery. In the end, your code is running on a real installation on disk. Therefore, there is no chance for extension modules to fail.
48.
▲
by
ofek
3y ago
Can you please let me know how your experience goes after trying this?
49.
▲
by
ofek
3y ago
Can you please let me know how your experience is? Feel free to even open an issue on the repo!
50.
▲
by
ofek
3y ago
Yes it will that is exactly correct! That particular example actually was after I was reading how to set up Stable Diffusion and other AI stack stuff.
51.
▲
by
ofek
3y ago
You can pack a Python interpreter but by default it downloads it (if not already cached)
52.
▲
by
ofek
3y ago
I think this is the most common pattern where you wish to execute a script based on a requirements file: https://ofek.dev/pyapp/latest/examples/#dependency-file-with...
53.
▲
Show HN: PyApp – runtime installer for Python applications
(github.com)
109 points
by
ofek
3y ago
|
44 comments
54.
▲
by
ofek
3y ago
Hatch itself still is written in and runs on Python but it uses its own distribution which is set up at runtime once. The goal is to provide an experience similar to other ecosystems like Rust and Go. You download the tool that does everyth
55.
▲
Show HN: Hatch v1.8.0 – platform installers, Python management and built-in Ruff
(hatch.pypa.io)
6 points
by
ofek
3y ago
|
3 comments
56.
▲
by
ofek
3y ago
This is a long-standing feature request that has not made any progress nor can I tell that there is a plan to work on this at all in the near future: https://github.com/microsoft/vscode/issues/108264
57.
▲
by
ofek
3y ago
That's not at all valid syntax, this does not work.
58.
▲
by
ofek
3y ago
The level of schadenfreude in these comments is hitherto unseen. Whatever your view of the management happens to be let's not forget that small features or changes to large systems are not as easy as one might think. That viewpoint is
59.
▲
by
ofek
3y ago
Do you mean the Python tracing library does not work out-of-the-box? disclaimer: I work there but not on the APM team
60.
▲
by
ofek
3y ago
Just a Jira/GitHub user, as we are
More ›