News for hackers. Stuff that matters.
Re:Rye and Uv: August Is Harvest Season for Python Packaging by forrestthewoods on Wednesday August 21, 2024 @11:33PM (#41316560)
> I manage a python monorepo in prod and dependency management is hell.

Why does it work for FAANG but not for you?

Re:Rye and Uv: August Is Harvest Season for Python Packaging by tadfisher on Thursday August 22, 2024 @12:17AM (#41316771)
FAANGs vendor everything so there's only one version of a given dependency, and they pay people to make this work.
Re:Rye and Uv: August Is Harvest Season for Python Packaging by zokier on Thursday August 22, 2024 @02:22AM (#41317363)
Bingo, this is what I was referring to in my comment. And yes, I assume it is quite a lot of labor. But I feel that lot of this perceived friction is from people trying to cut corners and avoid doing that labor, while still getting the benefits.
Re:Rye and Uv: August Is Harvest Season for Python Packaging by zem on Thursday August 22, 2024 @12:18PM (#41321862)
the overarching dream of computing in general is for a few people to do the labour and then for everyone to benefit through the magic of free replication.

if some smart and dedicated engineers can do the work to build a tool that lets everyone trivially manage a monorepo, that is certainly the best possible situation to end up in.

Re:Rye and Uv: August Is Harvest Season for Python Packaging by forrestthewoods on Thursday August 22, 2024 @02:07AM (#41317298)
Why does that work for FAANG but not for drawnwren? How difficult is it to support “one version of a given dependency”?
Re:Rye and Uv: August Is Harvest Season for Python Packaging by dwattttt on Thursday August 22, 2024 @05:12AM (#41318232)
It's as difficult as:

Package A depends on C 1.0 and B depends on C 2.0. How much work it is to get down to one version of C in your dependencies is up to how different 1.0 & 2.0 is, and how A & B use it. But if you want them resolved, it's up to you to do the engineering to A or B.

Re:Rye and Uv: August Is Harvest Season for Python Packaging by forrestthewoods on Thursday August 22, 2024 @12:39PM (#41322021)
But pip doesn’t and can’t solve that issue, right?
Re:Rye and Uv: August Is Harvest Season for Python Packaging by dwattttt on Thursday August 22, 2024 @05:17PM (#41324476)
Correct. The solution is to modify packages A and or B, which is a high cost approach (hence why FAANGs could throw warm bodies at it, but most everyone else throws their hands up in exasperation).
Re:Rye and Uv: August Is Harvest Season for Python Packaging by wodenokoto on Thursday August 22, 2024 @12:31AM (#41316847)
FAANG might have more revenue per line of code
Re:Rye and Uv: August Is Harvest Season for Python Packaging by drawnwren on Thursday August 22, 2024 @05:17PM (#41324473)
So the canonical solution to this is to use Bazel. The reason I did not end up using Bazel is because it is a pita to manage and I didn't have enough time to allocate to this problem to implement the FAANG solution.

The shell scripts I wrote are a painful, but less painful than dealing with Bazel.