Learn AI, Data Science & Business — Earn Certificates That Get You Hired
The Private Equity Associate Certification
Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 40% Off
One plan covers every Professional Certificate on Coursera. 40% off Coursera Plus Annual.
Unlock All Certificates
Explore Swift's memory layout in this 57-minute conference talk from GOTO Copenhagen 2016. Dive deep into the bits and bytes of Swift data structures, examining how variables and internal components are organized in memory. Learn about pointers, safe memory reads, name mangling, and memory layouts for various programming constructs including C structs, C++ classes, Swift types, Objective-C classes, and Swift classes. Discover the intricacies of method calls, subclasses, arrays, protocols, and enums. Gain valuable insights into low-level Swift programming concepts through practical examples and visual representations using Graphviz.
Syllabus
Intro
About Me
Memory - Big Picture
Dumping Memory
Pointers are Integers
Bad Pointers
Safe Reads
How Much to Read?
Name Mangling
Strings
Output
Graphviz
Memory Layouts
C structs
C++ classes
Swift Types
Objective-C Classes
Swift Classes
Method Calls
Subclasses
Arrays
Protocols
Protocol Method Call
Enums
Wrapping Up
Taught by
GOTO Conferences