~/talk

Performant Multiplatform Kotlin Serialization

Talkat droidCon NYC 2018 · 2018-08-27..08-28· [kotlin]
links:none on file
slides:none on file

Kotlinx.serialization targets multiplatform code sharing across JVM and JavaScript (native not ready), uses a compiler plugin that generates bytecode rather than reflection so you add a Gradle/Maven plugin and install an IntelliJ plugin to avoid IDE errors. Core formats shipped are JSON and Protobuf (also CBOR), serializers handle generics (companion-generated Pair serializer works) but custom KSerializer implementation is complex, relies on a global registry so keep instances to avoid recreation, and notable gaps are no streaming API and limited polymorphic support. There is a Retrofit converter adapter usable today.

AI-written summary · about

  1. 0:00Introduction to Kotlin X Serialization
  2. 1:56Why consider Kotlin X Serialization
  3. 2:59Getting started with setup
  4. 4:23Basic usage and annotations
  5. 8:01Custom serialization with KSerializer
  6. 10:51Handling platform types and nullability
  7. 13:22Implementing KSerializer interface
  8. 17:19KInput, KOutput and generics
  9. 21:31Complex cases and factory limitations
  10. 25:16Supported serialization formats
  11. 26:44Streaming and polymorphic serialization
  12. 28:55Future improvements and abstractions
  13. 31:30Multiplatform potential and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.