Exploring Swift Memory Layout • Mike Ash • GOTO 2016

preview_player
Показать описание
This presentation was recorded at GOTO Copenhagen 2016

Mike Ash - Plausible Labs

ABSTRACT
Let's get down to bits and bytes! Abstraction is great, but sometimes it's useful to dig down. In this session, we'll explore exactly how Swift lays out data in memory, including both your own variables and Swift's internal data structures. [...]

TIMECODES
0:00 Introduction
0:31 About Me
6:19 Memory - Big Picture
9:47 Dumping Memory
14:50 Pointers are Integers
16:51 Bad Pointers
19:43 Safe Reads
20:17 How Much to Read?
22:23 Name Mangling
23:48 Strings
25:29 Output
26:05 Graphviz
27:23 Memory Layouts
28:19 C structs
30:17 C++ classes
36:03 Swift Types
42:26 Objective-C Classes
43:30 Swift Classes
44:11 Method Calls
44:42 Subclasses
45:14 Arrays
46:15 Protocols
49:38 Protocol Method Call
50:41 Enums
53:28 Wrapping Up

Download slides and read the full abstract here:

#Swift

Looking for a unique learning experience?

SUBSCRIBE TO OUR CHANNEL - new videos posted almost daily.
Рекомендации по теме
Комментарии
Автор

Best best best ever video I ve ever seen in my life

Andp
Автор

This is very very very deep... I'll come back again. lol

colza
Автор

Deep and helpful, need rethink, learn more reference resources to understand, thx.

dylanwang
Автор

actually, I stilly don't understand the differences between the 'stride' and 'size', could anyone explain it?

krosshj