News for hackers. Stuff that matters.
Re:Sunsetting Python 2 by ofibrvev on Monday September 09, 2019 @09:30AM (#20917939)
> python 2 to 3 (at least by 3.3 or so) was one of the easiest transitions I've ever done.

Good for you. Some of us had code bases of considerable size and complexity though.

The fact is that for working software on the python platform, this upgrade represented work that had to be done that for a legacy app that was still chugging... little benefit. If you already coded around the python 2 limitations for Unicode eg, then python 3 was not a help at that point for something already in service. It was just more cost for no benefit.

> If people spent half as much energy upgrading as complaining, this would have gotten done 5 years ago.

These aren’t exchangeable. Why do people on the internet think bitching (either constructive or not) is some valuable currency? Often times the people complaining had no means or position to of the work. 4 promotions later I sure as hell wasn’t going to participate in that 2 to 3 mess on a project produced years ago, but I could still opine in the situation. I also had little incentive to fund it.

Your analogies are bizarre. No idea what you’re trying to convey with philips v torx but I’m going to wager it’s explanatory power in this case is shit anyway. I can still demolish it, having actually worked in manufacturing there were times we told a supplier (ie Python) to fuck off and piss up a rope because what they were proposing was not compatible with our existing tooling and it would be too costly to convert for little benefit to us.

I respect apples prowess in the consumer space, but there’s a reason you don’t see their products regularly put into industrial roles where your timeline is more than 5 years. Apple products are disposable, many applications in industry are expected to last. Python is a general purpose programming language (or at least billed itself as such). Your comparison is poor.

Re:Sunsetting Python 2 by brians on Monday September 09, 2019 @09:46AM (#20918081)
I found some Unicode bugs in porting—and I get continued free security updates. Seems fair to me, and certainly not “no benefit”. I can keep on 2.7 as long as I like; nobody’s forcing me to port. Compare the situation with Java!
Re:Sunsetting Python 2 by mypalmike on Monday September 09, 2019 @07:27PM (#20923633)
I like Python. But it loses in the upgrade comparison to Java. Existing Java code almost always just keeps working with new compilers and JVMs. And new JVMs tend to increase performance of your code for relatively little upgrade effort.
Re:Sunsetting Python 2 by afiori on Tuesday September 10, 2019 @03:54AM (#20925988)
In my uninformed opinion not including a python 2 interpreter in python 3 was the first mistake
Re:Sunsetting Python 2 by arve0 on Monday September 09, 2019 @12:00PM (#20919356)
> Compare the situation with Java!

Isn’t that comparable to java? Oracle gives you paid security updates on version 8. You can keep using the previous version without security updates or migrate to OpenJDK 8, which have their own security group. More options, seems better to me.

Re:Sunsetting Python 2 by mffnbs on Monday September 09, 2019 @09:35AM (#20917978)
Your argument ignores that 2.7 was held onto for a decade. Legacy applications did not hold back adoption.
Re:Sunsetting Python 2 by Kaiyou on Monday September 09, 2019 @10:08AM (#20918288)
Which still seems like a short period of time, considering timelines in engineering are to support a version for 60 years.
Re:Sunsetting Python 2 by BeetleB on Monday September 09, 2019 @11:06AM (#20918857)
>considering timelines in engineering are to support a version for 60 years.

In the vast minority of cases.

Not in most electrical engineering (except power plants), nor in computer engineering. 60 years ago was 1959. What software/computer project from that time is still running?

Even moving outside of the electrical domain, how many physical products outside of civil engineering is expected to last that long. I certainly can't expect support for my car for longer than 25 years.

Re:Sunsetting Python 2 by WorldMaker on Monday September 09, 2019 @04:43PM (#20922272)
If there's a difference it's not time scale necessarily, it's that CPAs are better at amortizing support/maintenance costs across decades. CPAs have amazingly detailed depreciation charts for non-software engineering lifecycles. If you build a civil engineering project, you figure out asset depreciation versus maintenance schedules, and you budget accordingly.

I've yet to see a CPA adequately depreciate software assets, anywhere. Maybe we should help them out by building better depreciation schedules. There seems to be a lot of CPAs that don't believe software depreciates over time, and maybe that's the largest disconnect in labeling it "tech debt", because accountants hear that term and think they can ignore it on a balance sheet they don't care about, but "tech depreciation" might actually scare them straight (until they find the tax advantages in calling it that).

Re:Sunsetting Python 2 by BeetleB on Monday September 09, 2019 @06:27PM (#20923160)
They really need our help :-)

In a previous job that was mostly in an engineering/manufacturing department, but with a lot of Perl/Python automation scripts, we had an internal conference. One of the keynote talks was when not to automate using SW. It went into the cost of maintaining SW over the long term - including the fact that authors leave, and people who understand their scripts require higher salaries. Most people who write these scripts are not hired for SW roles, so their replacements likely cannot debug/extend.

Re:Sunsetting Python 2 by djsumdog on Monday September 09, 2019 @11:51AM (#20919264)
Classic cars can still get parts after 25 years, but a lot of times its custom machine shop stuff. There is a market for it. Really there's also a market for restoring old computers (look at The 8-Bit Guy, LGR, The Living Computer Museum (Seattle) and all those other people who restore old hardware for fun and education.

But I get your point, those are special cases for preservation. For mainline things, especially with today's processes for continual integration, dependency checking and advance build tooling, dependency rot is something that should be accounted for in all software project plannings. If your dependencies are a few months out of date and you don't have the time to update them and re-run tests (people write tests right?) things are just going to hurt more and more later.

Re:Sunsetting Python 2 by fwip on Monday September 09, 2019 @10:21AM (#20918438)
You can keep running Python 2 just like you keep your COBOL systems running, nobody's gonna stop you except common sense.
Re:Sunsetting Python 2 by protomyth on Monday September 09, 2019 @01:43PM (#20920430)
IBM does quite a good job of making sure that COBOL is supported long term with all needed updates for many many years to come. Python 2 is not in that position.
Re:Sunsetting Python 2 by jhall1468 on Monday September 09, 2019 @02:30PM (#20920901)
You mean, IBM does quite a good job of making sure IBM COBOL is supported long term. They are maintaining their compiler, which is exactly what PSF is doing. They are maintaining their interpreter, which is Python 3.
Re:Sunsetting Python 2 by protomyth on Monday September 09, 2019 @02:57PM (#20921143)
The GP post missed the fundamental difference between keeping COBOL running and keeping Python 2 running. Python 2 was also PSF's interpreter. IBM handling a COBOL upgrade like PSF handling the 2-3 transition would be unacceptable.
Re:Sunsetting Python 2 by price on Tuesday September 10, 2019 @05:03AM (#20926322)
> IBM

> PSF

These are two very different kinds of institutions!

People who need COBOL support from IBM are paying a lot of money. Giant piles of money can get you many kinds of help that people won't volunteer to do for free... among them, maintaining ancient software in amber.

If you need Python 2 support and you are willing (and able) to pay the kind of money that IBM's customers pay for COBOL support, you'll be OK. For a start, Red Hat (aka also IBM!) shipped Python 2 in RHEL 8, which means they'll be supporting it until 2029 at the earliest.

Re:Sunsetting Python 2 by protomyth on Tuesday September 10, 2019 @11:16AM (#20929140)
To circle back to the original point, no COBOL committee would break commonly running COBOL programs like the Python 2-3 transition. Using COBOL in an example with Python is just wrong. Maybe the break is justified, maybe it isn't, but some languages do a lot of work to make sure things continue to work.
Re:Sunsetting Python 2 by WorldMaker on Monday September 09, 2019 @04:37PM (#20922202)
Would PSF exponentially increasing support and maintenance costs for Python 2 into multimillion dollar contracts and bundling over-margined hardware in with the bundle to make it more of an IBM-like transition help?
Re:Sunsetting Python 2 by protomyth on Monday September 09, 2019 @08:27PM (#20924003)
Yep, someone has to pay in one way or another like Red Hat customers on 7, but to say Python has near the life cycle of COBOL is just disingenuous. Old COBOL still runs, but Python 2 programs will not. It really shows what the achievement languages like COBOL, RPG, and Fortran are in terms of longevity and migration.
Re:Sunsetting Python 2 by mynameisvlad on Monday September 09, 2019 @09:54PM (#20924463)
> but Python 2 programs will not

Er, why not? It's not like there's some kill switch in Python 2 that will make it stop working after January 1st, 2020. If it works now, then it'll still work, you're just not guaranteed fixes anymore. At least, not for free. As stated in the article, paid support options exist from several vendors.

Re:Sunsetting Python 2 by protomyth on Tuesday September 10, 2019 @11:12AM (#20929079)
Any software in the modern era that isn't upgraded for new OSes or security patched is dead.
Re:Sunsetting Python 2 by mynameisvlad on Tuesday September 10, 2019 @03:54PM (#20932906)
Ok, sure. To you, maybe. But that's a far cry from saying they won't run anymore.
Re:Sunsetting Python 2 by C1sc0cat on Tuesday September 10, 2019 @06:45AM (#20926799)
You can still run 1960's code today for both COBOL and Fortran - I suspect some Fortan 2 oddities might not work I am thinking of the sense commands
Re:Sunsetting Python 2 by protomyth on Tuesday September 10, 2019 @11:13AM (#20929101)
Probably, but the care the Fortran folks take to not break anything but still evolve a modern language is amazing.
Re:Sunsetting Python 2 by Kaiyou on Monday September 09, 2019 @11:09AM (#20918880)
Right, but in engineering it's kind of expected to get support for a version for at least 60 years. Software engineering is just really weird in that it moves so fast and nobody seems to care to break things.
Re:Sunsetting Python 2 by ZWoz on Monday September 09, 2019 @11:52AM (#20919279)
They (in engineering general) aren't expected support something free though. Putting it another way: You can get you support with Python2, if you pay.
Re:Sunsetting Python 2 by joshuamorton on Monday September 09, 2019 @11:49AM (#20919245)
What free things are supported for 60 years in engineering applications?

Name one.

Re:Sunsetting Python 2 by greglindahl on Tuesday September 10, 2019 @01:42AM (#20925336)
Fairly ancient Fortran compiles OK in open source compilers. Not quite 60 years old, yet, but it'll be there soon.
Re:Sunsetting Python 2 by TheRealKing on Thursday September 12, 2019 @01:31PM (#20954069)
It's already >65 years old. The 65th birthday was this summer 2019.
Re:Sunsetting Python 2 by _fizz_buzz_ on Tuesday September 10, 2019 @09:31AM (#20927924)
We sell welding systems to weld stainless steal, copper pipes, etc. We always give a warranty of 24 month, guarantee paid support for 10 years, and support older machines only if possible. I am not sure which industry you are talking about, but 60 years is the exception in my experience.
Re:Sunsetting Python 2 by wiradikusuma on Monday September 09, 2019 @09:52AM (#20918143)
I think this is where paid support comes into picture. Volenteers can keep improving Python, business that cant/wont upgrade can pay someone to "handle it", and consultants can make money. Everyone is happy.
Re:Sunsetting Python 2 by WorldMaker on Monday September 09, 2019 @04:45PM (#20922285)
The FAQ does point to vendors that plan to offer long time support/conversion paid support plans.
Re:Sunsetting Python 2 by djsumdog on Monday September 09, 2019 @11:47AM (#20919228)
You have a dependency rot problem. Are you missing unit tests? Because having a ton of unit tests can reduce dependency rot, breakage and overall make engineering upgrades just a lot easier to deal with. They don't catch everything of course, but they can catch a lot.

If you haven't put in the priority to update your Py2 to Py3 apps by now, I really think your shop has the wrong priorities.

It's not just about Py2/3. Dependency rot is one of the worst form of technical debt. It often shows broken CI, broken security scanning, lots of generally broken processes that will just keep hurting a team further and further down the line.

Re:Sunsetting Python 2 by pfranz on Monday September 09, 2019 @01:46PM (#20920459)
I don't really agree with much of what the person you replied to said, but certain domains have had their hands tied and I also can't imagine them working as you describe.

CG/Visual Effects industry is still firmly using Python 2. Only in 2020 are they taking the first step to transition to Py3 [1]. Users and studios are held back because the Python runtime is used inside major applications; Nuke, Houdini, Maya as well as libraries and APIs. None of them have released a version that runs Python 3 yet.

The reasons for delaying it (mentioned in a footnote on that page) makes sense to me. Previous years were focusing on coordinating updates to GCC, Boost, C++14, Qt, and waiting on Python bindings for Qt.

Also, I've worked at a couple studios many people have probably heard of and none of them have unit tests covering much of their code. The focus is on tools that facilitate in-house artists where responsiveness to needs are valued over architecture and completeness. Requirements change for each project and previous requirements are often sacrificed (until a new project needs them in a few years).

I'm itching to move to Python3, but even for standalone tools I've felt it better to choose a completely different language (or Python2) instead trying to mix Python2 and 3 because having them co-exist creates more headaches in managing the environments, dependencies, and coding styles.

[1] https://vfxplatform.com

Re:Sunsetting Python 2 by cortesoft on Monday September 09, 2019 @01:53PM (#20920530)
> If you haven't put in the priority to update your Py2 to Py3 apps by now, I really think your shop has the wrong priorities.

I am not sure how you could possibly know this. You have no idea what else they were working on instead.

Re:Sunsetting Python 2 by ptx on Tuesday September 10, 2019 @04:11AM (#20926066)
Because no matter what you're working on, you won't get very far without eating, sleeping and at least once a decade putting in some maintenance work.
Re:Sunsetting Python 2 by jawilson2 on Tuesday September 10, 2019 @12:39PM (#20930088)
My overriding motto as an engineer is "If it ain't broke, don't fix it." My python 2.7 component has run flawlessly for years now, with virtually no need to update. I just haven't had to worry about it. We decided to update to py3 a few weeks ago, and this component is now having sporadic hiccups. Like, it runs fine 95% of the day, then all of a sudden a timer callback in a Tornado ioloop just stops running for 30 seconds after working fine for 10 hours or something. This disables the entire trading system. It's hard to explain to anyone, myself included, what I gained by updating a perfectly working system to something that now shuts production a few times a day. Now my time is diverted from doing actually useful tasks to fixing code that wasn't broken to begin with.
Re:Sunsetting Python 2 by munificent on Monday September 09, 2019 @12:57PM (#20919907)
The tone of your writing is rude, unpersuasive, and lowers the level of discourse on the forum.
Re:Sunsetting Python 2 by ofibrvev on Tuesday September 10, 2019 @01:10AM (#20925194)
That’s like, your opinion, man.

I didn’t think it was the most amazing comment either, however, it was intended more to illustrate how things are rather than how they ought to be, I think some interpreted as a strong opinion in favor of the circumstances which was not intended. Based on how it scored (somewhat surprisingly) it clearly resonated with more than a few.

Re:Sunsetting Python 2 by WilliamEdward on Monday September 09, 2019 @10:09AM (#20918305)
You've managed to say their analogy is bad in two paragraphs without even explaining why it's a bad analogy. You even admit you don't really understand what they were trying to say. Poor explanation, or poor understanding?
Re:Sunsetting Python 2 by ofibrvev on Tuesday September 10, 2019 @01:04AM (#20925178)
If an analogy requires more explanation than the original concept what purpose does it serve?

I think in this case at best the analogy grossly oversimplifies the issue. If it really were just a “screwdrivers” problem as explained then the 2 to 3 migration would have been mostly trouble free and would have happened. Clearly it did not go that way so that analogy can not possibly be appropriate.