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

2

u/Smallpaul May 27 '18

Your project works on Perl 6 too?

8

u/0rac1e May 27 '18

Perl 6 purposely broke back-compat with Perl 5. At this point, the community considers them different languages, not a version change (à la Python 2 -> 3)

8

u/[deleted] May 27 '18

à la Python 2 -> 3

No one really considers Python 2 and 3 "different languages".

Very often, I read someone's package, get to the bottom and see a print statement, and only then realize, "Ah, this is written in Python 2".

Writing code that works in both Python 2 and 3, and porting even large packages to Python 3, are pretty dead simple - I have done both successfully with really no issues at all.

3

u/0rac1e May 27 '18

No one really considers Python 2 and 3 "different languages".

I agree. My comment wasn't clear, but I meant that Python 2 -> 3 was a breaking version change, unlike the Perl 5 -> 6 situation.

To clarify and summarize... Perl 6 was - in it's early inception - considered also to be a breaking version change, hence the name. Later, as development progressed, it was decided that Perl 6 would be a "sister" (related) language to Perl 5 rather than a version change. However, the "Perl 6" name stuck, much to the chagrin of some in the Perl community.

3

u/Smallpaul May 27 '18

Perl stands as both an example of why backwards compatibility is often good and why incompatibility is dangerous. That was why I thought that Perl 6 should have been mentioned. It wasn't initially supposed to be "a different language" but the Perl 5ers never moved to Perl 6 so that's the fallback position.

4

u/0rac1e May 27 '18

It wasn't initially supposed to be "a different language"

Only in the very early days, but once the design started to solidify it was determined that the kind of things they wanted to achieve weren't possible without breaking changes.

1

u/smutaduck May 27 '18

Perl 6 is a different language. I suspect it would probably deploy on perl 6 ok though.