News for hackers. Stuff that matters.
Re:Go Away Python by dietr1ch on Tuesday December 30, 2025 @09:34AM (#46433683)
Yeah, but you need `uv`. If we are reaching out for tools that might not be around, then you can also depend on nix-shell,

    #! /usr/bin/env nix-shell
    #! nix-shell -i python3 --packages python3
Re:Go Away Python by Cyph0n on Tuesday December 30, 2025 @12:20PM (#46435553)
This comes with the added benefit that your environment is reverted as soon as you exit the Nix shell.
Re:Go Away Python by fastasucan on Thursday January 01, 2026 @08:44AM (#46454057)
I dont think your emvironment is permanently changed with uv run?
Re:Go Away Python by Cyph0n on Thursday January 01, 2026 @01:59PM (#46456921)
Where does uv download the Python interpreter to?
Re:Go Away Python by exographicskip on Wednesday January 07, 2026 @05:41PM (#46534225)
By default, it's `~/Library/Caches/uv/environments-v2/` on macos.

Can find via `uv cache dir`

See: https://docs.astral.sh/uv/reference/cli/#uv-cache-dir

Re:Go Away Python by mystifyingpoi on Tuesday December 30, 2025 @09:58AM (#46433921)
Yeah, but you need Nix. If we are reaching out for tools that might not be around, then you can also depend on `curl | sudo bash` to install Nix when not present.

(this is a joke btw)

Re:Go Away Python by jonhohle on Tuesday December 30, 2025 @10:23AM (#46434182)
Yeah, but you need curl, sudo, and bash…
Re:Go Away Python by lioeters on Tuesday December 30, 2025 @12:47PM (#46435894)
"Give me a 190-byte hex0 seed of x86 assembly, and I shall compile the rest of the world." - Archimedes
Re:Go Away Python by Imustaskforhelp on Thursday January 01, 2026 @01:33PM (#46456674)
amazing quote. Adding it to my about page, do you want credit or shall I credit it to archimedes xD

On a serious note, its so brilliant that something like this is now possible when we think about it. It's maddeningly crazy to think about all the process but in the end that you can end up with a system / linux iso whose hash you can trust/independently verify and then you use it and spread around the world. Definitely makes me feel as sky's the only limit or just its very pleasant to think about it.

Re:Go Away Python by JodieBenitez on Tuesday December 30, 2025 @03:34PM (#46437669)
... you must first invent the universe
Re:Go Away Python by kokada on Tuesday December 30, 2025 @02:35PM (#46437037)
The issue I have with `nix-shell` is that the evaluation time is long, so if you need to run the script repeatedly it may take a long time. `nix shell` at least fix this issue by caching evaluations, but I think uv is still faster.
Re:Go Away Python by m3at on Tuesday December 30, 2025 @06:27PM (#46439438)
As shared in a sibling comment, you can get away with just curl+shell: https://paulw.tokyo/standalone-python-script-with-uv/