News for hackers. Stuff that matters.
Re:This Is What Python Beginners Have to Deal With by talideon on Thursday September 08, 2016 @11:14AM (#12453763)
If everything's native[1], whether you're talking about Python, Java, or any other language, you're golden.

The issue arises when you're calling out to something written in, say, C. You'll have the same pain in java if you start using JNI to call across the JVM boundary. It just crops up more in Python because C extensions get used a lot in Python.

Addendum:

[1] By this, I mean within the boundaries of the runtime environment and not using things like Python's C extension API or JNI. 'Native' is a poor choice of words.

Re:This Is What Python Beginners Have to Deal With by dkersten on Friday September 09, 2016 @04:44AM (#12460502)
My point was that I've never had to care if a jar contained C libraries or not. Some do, many don't, but I've never had to care. Maybe I've just been lucky.

I suppose it could have been a fat-jar thing: if the jar contains its non-java dependencies for my platform, then everything just works. If the native libs are separate, then sure, its a similar issue as described elsewhere here.

Re:This Is What Python Beginners Have to Deal With by crdoconnor on Thursday September 08, 2016 @12:56PM (#12454762)
It isn't really a question of native or non-native. It's more a question of "under the control of the package manager" vs. "not under the control".

You have a similar kind of pain when you have pip and apt trying to manage the system python installation.

Re:This Is What Python Beginners Have to Deal With by talideon on Thursday September 08, 2016 @01:57PM (#12455400)
If all you're doing is using pure Python code, there's no issue: you can install what you like, either with the --user flag or into a virtual environment. This situation is nothing like running pip as root.
Re:This Is What Python Beginners Have to Deal With by crdoconnor on Thursday September 08, 2016 @03:27PM (#12456441)
No, there are issues. If you install packages that have dependencies on libraries which apt-installed packages depend upon then you can break them.

This is all about running code in an uncontrolled environment.

Re:This Is What Python Beginners Have to Deal With by talideon on Thursday September 08, 2016 @05:50PM (#12457664)
This is what virtual environments are for, and your solution still uses virtual environments.

So no, there aren't.

Now, I have a project I'd like to try with per-process mounts of dependencies using unionfs. It'd be a lot of work, and a lot could go wrong, but would solve a lot of problems.

Re:This Is What Python Beginners Have to Deal With by crdoconnor on Thursday September 08, 2016 @06:46PM (#12458100)
>This is what virtual environments are for

Precisely. Virtualenvs solve part of the problem by isolating the python code and its dependencies - but not all of the code.

Apparently extending this behavior would cause security issues of an unknown nature...