News for hackers. Stuff that matters.
Re:Where are we in the Python 3 transition? by nostrademons on Friday January 01, 2016 @06:04PM (#10823947)
That's the same approach that IE took for many years - IE7 embedded the IE6 rendering engine, IE8 embedded both the IE7 & IE6 rendering engines, etc. You could switch between them with a meta tag, or with developer tools.

It didn't stop IE from being robbed of momentum.

I think this is more a case study of what happens when fundamental assumptions that a technology ecosystem is based upon change. Things like string & collection types, async mechanisms, interface/protocol definitions, package managers, programming paradigms, developer preferences, and hardware performance characteristics are foundational to a language's definition. After all, the network effect that binds a language ecosystem together is all based upon being able to share code between multiple unrelated developers.

In Python's case, unicode happened. A lot of old Python code was written on the assumption that everything was a sequence of ASCII bytes; it was just plain broken in the presence of unicode characters. There's little you can do here other than accept that much of your ecosystem's strength is gone anyway and build for the future.

I suspect we'll see similar problems crop up in other languages in the near future; in particular, promisification in ES7 is a big threat to the existing Node ecosystem, which is all based upon callbacks. A language that jumps on the promise bandwagon early (Rust? Go? Elixir?) could rob Node of much of its momentum. Similarly, if Android & iOS win out over the web, that could lead to a big resurgence in Java or rise of Swift over server-side technologies like Node or Go.

Re:Where are we in the Python 3 transition? by jacquesm on Friday January 01, 2016 @06:05PM (#10823954)
Have a look at how the Erlang ecosystem managed the unicode transition.
Re:Where are we in the Python 3 transition? by nostrademons on Friday January 01, 2016 @06:11PM (#10823986)
I would take the Python 3 ecosystem over the Erlang ecosystem any day.
Re:Where are we in the Python 3 transition? by jacquesm on Friday January 01, 2016 @06:12PM (#10823991)
Interesting, why?
Re:Where are we in the Python 3 transition? by nostrademons on Friday January 01, 2016 @06:27PM (#10824067)
I'm far more likely to find a library I need in a Python 3 version than in an Erlang version.

Take a look at the PyPI stats for Python3 packages vs. the Hex stats for Erlang packages:

https://python3wos.appspot.com/

https://hex.pm/

The vast majority of common packages are compatible with Python3. Moreover, a common Python package gets about 100x the downloads of a common Erlang package. Even with only 20% of Python users on Python3, that's still about 20x the users that Erlang has.

Python3 adoption only sucks compared to the installed base of Python2. Compared to any niche language - Haskell, Erlang, Rust, Swift - it's massive, and you're much more likely to find a battle-tested library in Python3 than in your niche language.

(The bulk of my work is actually in Node and Swift these days. Node has a mammoth package library, but that's because its culture encourages many small modules and lots of code re-use. In my experience, I've found that the chance of finding a robust, well-supported Node module is roughly equal to the chance of finding a robust, well-supported Python2 library, and is maybe 20-30% greater than the chance of finding a robust, well-supported Python3 library. The Swift library situation is much, much worse than Python3.)

Re:Where are we in the Python 3 transition? by jacquesm on Friday January 01, 2016 @06:33PM (#10824090)
Agreed on the library part, that's my biggest hang-up in making more (and faster) progress with Erlang projects. Sometimes I even end up rolling my own and coming from languages with substantial 'batteries included' library systems this is a real drawback.

On the other hand, when it finally works it is absolutely bullet proof and that's a feeling I have with very few other languages and eco systems.

The degree of isolation between subsystems and the reliability are absolutely un-matched. Neither is the learning curve :(

Re:Where are we in the Python 3 transition? by BuckRogers on Saturday January 02, 2016 @02:02AM (#10825382)
Have you tried Elixir? If so, just wondering if you found the learning curve to be as difficult as Erlang.
Re:Where are we in the Python 3 transition? by jacquesm on Saturday January 02, 2016 @05:02AM (#10825723)
No, but it is definitely on my 'todo' list.
Re:Where are we in the Python 3 transition? by Drdrdrq on Saturday January 02, 2016 @08:28AM (#10826125)
> It didn't stop IE from being robbed of momentum

IE actually handled the transition very well, because backwards compatibility was the thing that kept it in the game. When it lost it was because this feature no longer mattered (that much).

Re:Where are we in the Python 3 transition? by choosername on Friday January 01, 2016 @08:11PM (#10824440)
so python is the IE of programming languages? yikes ;)
Re:Where are we in the Python 3 transition? by nostrademons on Friday January 01, 2016 @09:11PM (#10824624)
Python 2 is, yep. And Java, and C++, and PHP, and all those other languages that were super popular at the turn of the millenium but now feel really dated.

Actually, C++ has an even bigger claim to the title, because it now has "modern" versions that are much better, more standards-compliant, and have language features borrowed from newer languages...but a number of enterprises are stuck with no-exceptions, no-STL, no-move-semantics subsets because that's how all the existing code is written.

Re:Where are we in the Python 3 transition? by blub on Saturday January 02, 2016 @03:06AM (#10825500)
The IE metaphor is terrible for programming languages :)

I don't know about PHP, but C++ (and I suspect Java too) is backwards compatible and doesn't belong in the same class with Python. One can still compile older code and start using new features as they see fit, there is no hard break.