Skip to content
0:00 / 0:00

#memorylayout#unsafepointer#interoperability

Advanced Swift L1 - Memory Layout & Pointers

AppleProgramming

25K subscribers • 2 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Lucas Derraugh

Advanced. Deep dive for people who know the field.

15K views7 years ago2 recommendations

Programming languagesSystems programmingSwiftMemory managementPerformance and optimization

Lucas Derraugh explains how memory is laid out in Swift and how to use unsafe pointers to interact with C code.

How memory is laid out and how to use pointers to interact with C code. Main focus is on MemoryLayout and UnsafePointers in Swift. Twitter: twitter.com/LucasDerraugh GitHub: github.com/lucasderraugh Site: appleprogramming.com

Why it's here

2 people recommend this

What people say. Recommended as an excellent deep dive into Swift's memory layout and pointer system.

u/Austin_Aaron_Conlonin r/swift • Recommends

Advanced Swift - Memory Layout & Pointers

u/byaruhafiOSin r/swift • Recommends

Advanced Swift L1 - Memory Layout & Pointers

u/KarlJay001in r/swift • Mentions

Playgrounds doesn't seem to do as it's said it would do. I'm watching this tutorial in playground: link to this video @3:20 he executes only part of the code and has the blue line in the gutter. So I search around to find this to explain how it works: https://www.peterwitham.com/swift-archives/xcode-10-playgrounds-new-play-system-improve-speed-and-productivity/ Problem is that it doesn't work. Shift + Enter jumps my cursor to the next bracket and I have no blue line in the gutter and when I click on a line to get the right arrow pointer (execute pointer?) I can't get it to turn blue or to run to that point. Why don't I have a blue line in the gutter and how do I get it to only execute some of th…