Re:Swift 3.0 Unsafe World
by alariccole on Tuesday September 27, 2016 @09:37AM
(#12589459)
Great read on a topic I've been looking for more info on, recently coding an audio app that needs to manipulate audio buffers. And this is the only way to access them. I've been working in swift since 1.0 and this is the first time this all makes sense.
[ Parent
| on HN ]
Re:Swift 3.0 Unsafe World
by charlesism on Tuesday September 27, 2016 @11:16AM
(#12590216)
It's one of the clearest articles I've read on the subject, too. I would have liked it if there had been a section on calling "malloc" and "free" directly from Swift though. I do that a few places in my audio app, and there are a few gotchas involved (eg: at least in Swift 1, shouldn't use "free" and "dealloc" interchangeably. Probably still the case).