News for hackers. Stuff that matters.
Re:Show HN: Asynchronous HTTP/2 client for Python 2.7 by harryf on Thursday March 22, 2018 @11:06AM (#16649248)
The current version of Redhat - RHEL 7 - which most banks, large enterprises etc. are using comes with a system python version of 2.7.5 and you need to jump through hoops to install Python 3.x ( e.g. https://stackoverflow.com/questions/8087184/problems-install... ), which may not even be possible if you're in an environment where security is tightly controlled.

There is the possibility of Python 3.x being default in RHEL 8 ( https://fedoraproject.org/wiki/Changes/Python_3_as_Default ) but right now RHEL 8 isn't released and there's no date for it being released. And even once it is released, it will be more years before big enterprises really start switching

TLDR ignore python 2.7 and alienate RHEL customers

Re:Show HN: Asynchronous HTTP/2 client for Python 2.7 by derefr on Thursday March 22, 2018 @03:03PM (#16651616)
Developers relying on OS scripting runtimes for their applications are misusing the OS; and environments that only allow the use of OS scripting runtimes are fundamentally misunderstanding their job.

OS scripting runtimes are there for the OS to use, in its system software and services. Such runtimes are not there for anyone else to use. They’re implementation details of the OS.

This is the reason that certain platform-bytecode libraries get packaged into OS packages, while most don’t. Those packages are also there strictly for the OS itself to use, with versioning allowing other OS packages to rely on them. If you’re not writing OS software (e.g. something that runs under init(8), speaks D-Bus, is part of minimal installs, etc.) then you shouldn’t be relying on those packages.

Consider the fact that a lot of “application software” OS packages—packages shipped by the distro!—actually vendor their own runtime and libraries. They do this because they have separate needs from the super-stable-but-minimal runtime provided by the OS.

If not even the distros themselves think it’s worthwhile to rely on the OS runtime for everything, you shouldn’t either.

Unless your software’s relationship with a daemon or library is “I expect that it was already here when I got here, because that exact ABI version of it is part of the definition of the platform we target”—just vendor the dang deps.

Yes, they become your responsibility to audit. The distro was never going to do that job for any software not required to run itself anyway.

Re:Show HN: Asynchronous HTTP/2 client for Python 2.7 by kevinmgranger on Thursday March 22, 2018 @11:36AM (#16649515)
Re:Show HN: Asynchronous HTTP/2 client for Python 2.7 by Spiritus on Thursday March 22, 2018 @11:42AM (#16649569)
>you need to jump through hoops to install Python 3.x

What? You can install Python 3.6 from EPEL[1], takes 5 seconds.

[1] https://fedoraproject.org/wiki/EPEL

Re:Show HN: Asynchronous HTTP/2 client for Python 2.7 by rckclmbr on Thursday March 22, 2018 @12:38PM (#16650229)
Then you have to use scl, which kind of sucks. Better to just install the fedora packages. Or compile it yourself (but you should really package it if you're deploying it on a lot of servers)
Re:Show HN: Asynchronous HTTP/2 client for Python 2.7 by drb91 on Thursday March 22, 2018 @11:35AM (#16649503)
Meh, RHEL customers can look after themselves and maintain a python2 fork. Unless they’re paying you it makes sense to target the most recent version of the language.
Re:Show HN: Asynchronous HTTP/2 client for Python 2.7 by gigatexal on Thursday March 22, 2018 @11:11AM (#16649287)
I’m not an enterprise developer but does RHEL 7 support docker? Run python3 in a container. Isn’t that the point of containers?
Re:Show HN: Asynchronous HTTP/2 client for Python 2.7 by nudpiedo on Thursday March 22, 2018 @11:18AM (#16649352)
you mean bringing code which has not been cleared as secure & authorized by corporation's legal experts? BigCorp makes all those easy things hard (usually after lessons learnt).
Re:Show HN: Asynchronous HTTP/2 client for Python 2.7 by gigatexal on Thursday March 22, 2018 @11:38AM (#16649532)
Even if you run official builds by the python foundation from the library on docker hub? That seems like a business opportunity: certify software for RHEL by all the government bodies and pay RH for sign off and then be the only vendor to be sanctioned to run “third party but vetted” python3.
Re:Show HN: Asynchronous HTTP/2 client for Python 2.7 by rspeer on Thursday March 22, 2018 @03:57PM (#16652117)
If a group has a security policy that makes it hard for them to install Python 3, of course there's no way in hell they're installing Docker.
Re:Show HN: Asynchronous HTTP/2 client for Python 2.7 by gigatexal on Thursday March 22, 2018 @05:11PM (#16652742)
fair enough i didn't know these things; learned something new today.