News for hackers. Stuff that matters.
Re:C++20 coroutines: “The bug is in the C++ standard, not GC... by eru on Wednesday October 05, 2022 @04:49AM (#33092931)
It's probably best not to run Python bare-metal on your operating system. Or at least not to rely on your operating system's Python.

Use a Python package manager, and/or run your Python processes in containers.

That way you can upgrade your OS without having to upgrade all Python programs at the same time.

Re:C++20 coroutines: “The bug is in the C++ standard, not GC... by qwertox on Wednesday October 05, 2022 @07:17AM (#33093904)
Thank you for bringing this approach onto my radar. It sounds very promising for solving the OS upgrade issue but also let's me finally use the latest version for my projects. I will read up on this.

Are there some recommended keywords or things to avoid which I could use to orient myself? Like "use deadsnakes" or "avoid deadsnakes"?

Re:C++20 coroutines: “The bug is in the C++ standard, not GC... by eru on Wednesday October 05, 2022 @09:44PM (#33103364)
I suggest you look into Python's Poetry package manager.

There's some ways to keep multiple isolated Python environments around on the same OS (and Poetry can help with that, too). But I would suggest that you just stick every Python program in its own dedicated docker container, if you can get away with the overhead. (There are some ways to make rather slim containers.)

Of course, it doesn't have to be docker. Any other containerisation or VMs also work.

In general, I found it a good idea to keep the host operation system as small as possible, and stick everything into containers that you can upgrade separately.