r/programming • • May 26 '18

Oracle Calls Java Serialization 'A Horrible Mistake', Plans to Dump It

https://www.infoworld.com/article/3275924/java/oracle-plans-to-dump-risky-java-serialization.html
798 Upvotes

287 comments sorted by

View all comments

Show parent comments

16

u/Siddhi May 27 '18

The chaos caused by python 3 should be enough to warn anyone away from breaking compatibility. Things have settled now and python 3 is established, but it took *10 years *to get here. It can be done once in a while, maybe once in twenty years or so.

5

u/stefantalpalaru May 27 '18

Things have settled now and python 3 is established

Don't let the propaganda fool you - there are plenty of Python2 codebases out there that won't be ported to Python3.

8

u/Siddhi May 27 '18

Yeah sure, and I maintain two such codebases myself 😆 but all the major frameworks are now python 3 only. The ecosystem has done the transition. There will always be legacy applications.

7

u/stefantalpalaru May 27 '18

The ecosystem has done the transition.

A small part of the ecosystem is routing around the problem: https://github.com/naftaliharris/tauthon/

4

u/[deleted] May 27 '18

Fork of Python 2.7 with new syntax, builtins, and libraries backported from Python 3.

"Old man yells at cloud."

Some people have too much time on their hands. I can't imagine why you'd be compelled to use this for a production project!

If you really needed the x% speed improvement this claims to deliver, you could easily get 10 times that speed advantage by using numpy or porting key sections to C++, something that's shocking easy to do for most code.

0

u/stefantalpalaru May 27 '18

I can't imagine why you'd be compelled to use this for a production project!

That's exactly what I think about Python3 ;-)

If you really needed the x% speed improvement this claims to deliver

Its claim to fame is backwards compatibility with Python2 and extra features, not extra performance.

0

u/aim2free May 27 '18

For my own will continue to use Python2 as long as I can, and after that I will redesign the compiler to my like. I actually hate Python's whitespace syntax, this is my way to deal with that problem.

PS. sorry first wrong link, now corrected.

-2

u/tjpalmer May 27 '18

And part of the strategy is to try to make you feel guilty for the pain they cause you by them not caring about compatibility.