Explore Swift type metadata in this 20-minute conference talk from try! Swift Tokyo 2019. Dive into the intricacies of runtime type information with Yuta Saito, an intern at Mercari's iOS team. Discover the importance of understanding Swift runtime behavior through an examination of type metadata and its implementation. Learn about getting type names, the Swift runtime, TypeRelative pointers, extracting and recreating memory layouts, and practical applications in open-source software and JSON. Gain insights into how type metadata influences Swift's behavior and enhances development practices.
Overview
Syllabus
Introduction
Getting type name
What is type metadata
Swift runtime
Type
Relative pointer
Extract type name
Get type name
Mirror API
Recreate memory layout
OSS metadata
JSON metadata
rust usage
summary
Taught by
try! Swift Conference