Revisiting visitors: a talk about generalising serialisation
summary
Disney Streaming shows how smithy4s generates Scala from Smithy IDL while keeping generated models free of third‑party libs or fixed formats. Starts from a 24‑hour hackathon (24 hours) that reverse‑engineers AWS’s ~300 services JSON specs, then replaces many protocol‑specific generators with a single higher‑kinded visitor approach: a schema/schematic pattern that derives codecs (circe JSON, XML, query) from metamodel descriptions, enabling encoders, decoders, ScalaCheck generators, CLIs, protobuf/GraphQL adapters at lower cost while constraining allowed metamodel constructs.
AI-written summary · about
