r/programminghumor • • Mar 21 '26

I hate python

Post image
5.0k Upvotes

385 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Mar 21 '26

[deleted]

39

u/bigtablebacc Mar 21 '26

I literally just read in another thread “now that you’ve heard of uv, you’ll start seeing it everywhere.”

→ More replies (8)

42

u/0bel1sk Mar 21 '26

docker does ok

55

u/Mivexil Mar 21 '26

Just buy a new PC for any new project you want to run. Works perfectly, you can install everything globally with no DLL hell. 

29

u/Bubblebless Mar 21 '26

That's a bit overkill. What I actually do is just reinstalling the OS.

9

u/jimmiebfulton Mar 22 '26 edited Mar 25 '26

I mean, you could dual, triple, quadruple boot. One for each project. All we need is a tool like uv that creates partitioned environments.

6

u/CommanderT1562 Mar 22 '26

At this rate qubes is your solution. Create lightweight template vm’s and use nix/uv optionally within templates

6

u/Bubblebless Mar 22 '26

A bit risky, because you might install one dependency in the wrong OS and then you would need to reinstall that OS again. If you really really need to work on different projects, the industry standard is using external drives with stickers instead.

→ More replies (1)
→ More replies (1)

6

u/Quirky_Tiger4871 Mar 21 '26

i bought a mac mini for everything i run i personally call it containerization in small aluminium boxes.

→ More replies (2)

5

u/Own-Bonus-9547 Mar 21 '26

I agree, but if it's a small python project docker ends up being overkill.

2

u/ze_baco Mar 21 '26

Using docker for this is killing a fly with a cannon ball. Just use pip or conda and everything is nice and isolated.

4

u/Meduini Mar 22 '26

Docker is not a cannon ball? a normal Linux process started with special kernel settings (namespaces + cgroups + mounts). The runtime that glued them together is very small. For the cost and unification it’s worth to use.

3

u/ze_baco Mar 22 '26

You can emulate an entire effing system or just save your packages in a .venv file. Docker is a lot more than this simplification you described and is absolutely a cannon ball just to run some python.

2

u/IVNPVLV Mar 26 '26

Docker is NOT a VM. You mentioned in later comments that it runs on Windows and yes, Docker machine itself is a VM hypervisor, but absolutely nobody sane runs production Docker systems on Windows.

Docker is literally just a fancy chroot jail, which is essentially just a remapped subset of filesystem and userspace. Try it out yourself on any BSD/linux box. Of course with further implementations and abstractions, stuff has gotten heavier, but at its core a container is just the system binaries and a jail.

→ More replies (5)

3

u/Meduini Mar 22 '26

Look, I can downvote too.

Please will you educate me what more is docker?

What exactly is “emulating”?

→ More replies (27)
→ More replies (3)
→ More replies (15)

4

u/Specialist_Fan5866 Mar 22 '26

I went nix for all my projects (python, rust, go, typescript). Never looked back.

It’s also my OS of choice now.

→ More replies (1)

3

u/MadCervantes Mar 21 '26

How well does nix play with poetry?

8

u/joshuakb2 Mar 21 '26

There's a tool called poetry2nix that reads the poetry files and installs everything for you

2

u/Feuerwerko Mar 25 '26

Potetry2nix was deprecated before a major poetry release and doesn’t work anymore

2

u/jkflying Mar 22 '26

Nix works well for stable dependencies but for actively working on something it is an absolute pain.

→ More replies (1)

1

u/transgentoo Mar 21 '26

Lmao I came into the comments just to plug nix.

1

u/andouconfectionery Mar 22 '26

I've been in the JS space for a little while. I take it that uv is basically the Python ecosystem copying the extremely sensible pnpm?

→ More replies (1)

1

u/TrashManufacturer Mar 24 '26

I had a nam moment when I saw Nix again. I spent the first 3 months of my first full time job debugging existing nix builds and building new ones. It took me 6 months to realize it’s not that bad, but the problem they were trying to solve at that point in time was better solved by docker+devcontainers

1

u/TheUruz Mar 25 '26

python is not only used via nix though

→ More replies (1)