Serialization 2.0
summary
Proposal replaces old Java serialization with a tiny bidirectional model: two annotations to mark constructors and deconstructors, a register static call to opt into nonpublic access, and explicit marshal/unmarshal operations that produce a structural "marsh" object. It drops preserving object identity (no implicit cycles), leans on constructor parameter names and records, and targets easy mapping to JSON, binary or CSV. Timeline aims for a JEP preview and ecosystem codecs.
AI-written summary · about
chapters (10)
- 0:00Serialization 2.0 intro
- 1:48What is serialization
- 3:14Marshalling concept
- 7:48Marshalling API design
- 13:34Simplify serialization
- 14:58Remove simplicity needs
- 17:53Marshalling vs Java joke
- 19:57Future of marshalling
- 20:19Marshalling timeline
- 21:45Learn more about marshalling
related talks
49mMarshalling: Data-Oriented Serialization
53mWhy We Hate Java Serialization And What We're Doing About It
34mWhen Records Meet Serialization A Happy Tale
42mSerialization and Object Graph Communication
41mHigh-Secure Java Serialization
45mSerialization & Object Graph Communication
51mAsk the Architect
41mJava Serialisation: A Modern Fairytale
