Re:Uv is the best thing to happen to the Python ecosystem in...
by ozgrakkurt on Thursday October 30, 2025 @05:23AM
(#45757946)
This really depends on what you are working on. As an example, compiling the protobuf stuff can get insanely slow for some reason.
[ Parent
| on HN ]
Re:Uv is the best thing to happen to the Python ecosystem in...
by ViewTrick1002 on Thursday October 30, 2025 @05:54AM
(#45758143)
For any larger project I would recommend working with a cargo workspace to compile as little as possible on each check/test/run/build.
Then you can build a DAG of crates and stick e.g. the Protobuf stuff in its own separate corner where it only needs to be recompiled on full rebuilds or when you work on it.
Feels a bit shitty to have to resort to managing crates instead of modules simply due to the compile times, but it is what it is.
Re:Uv is the best thing to happen to the Python ecosystem in...
by jmaker on Thursday October 30, 2025 @06:31AM
(#45758369)
Yeah, second that. This is just release management best practice.
And it makes total sense to me, it’s a way of organizing your dependency graph by the lifetimes of your components.
This will also simplify testing, development, and audit. You won’t need to recompile autogen schemas as often as the business logic implementation anyway. Depending on artifacts pushed through a release pipeline is even more reliable. You can QA everything in guaranteed isolation while keeping it conveniently a workspace monorepo.
Re:Uv is the best thing to happen to the Python ecosystem in...
by lambdaone on Thursday October 30, 2025 @07:21AM
(#45758764)
If only someone had a way of automating this! Say perhaps using some kind of digital computer...
Re:Uv is the best thing to happen to the Python ecosystem in...
by littlestymaar on Thursday October 30, 2025 @10:06AM
(#45760183)
I wish rustc could automatically build a DAG of “smallest group of modules with cyclic references” and use that as a compilation unit, but that's unfortunately not the case so far and it won't until someone steps up to build such a system.