- Hands-On Design Patterns with Swift
- Florent Vilmart Giordano Scalzo Sergio De Simone
- 166字
- 2021-07-02 14:45:04
ARC – what is that?
Automatic Reference Counting was introduced at the 2011 WWDC, in Session 323. If you want to see the original presentation, feel free to visit https://developer.apple.com/videos/play/wwdc2011/323/.
ARC is made possible by Clang and LLVM. LLVM and Clang are two technologies that enable compiling C, C++, and Objective-C code. LLVM is also used alongside the Swift compiler. With ARC, a Clang feature, developers don't have to write the tedious retain and release calls. There are multiple benefits to letting the compiler handle it, as follows:
- Memory management is difficult
- The compiler is often more correct than you are
- There are fewer lines of code to write
- It has the same performance as manual reference counting
With Swift being a modern language and the successor of Objective-C, you've never had to call retain. Swift programs leverage ARC, in order to simplify memory management. In Swift, there are multiple memory management concepts to master, and we'll cover them in this section.
- 數據產品經理高效學習手冊:產品設計、技術常識與機器學習
- Greenplum:從大數據戰略到實現
- 數據挖掘原理與實踐
- Mastering Ninject for Dependency Injection
- Voice Application Development for Android
- 使用GitOps實現Kubernetes的持續部署:模式、流程及工具
- Python金融大數據分析(第2版)
- 卷積神經網絡的Python實現
- 一個64位操作系統的設計與實現
- 深入淺出 Hyperscan:高性能正則表達式算法原理與設計
- 智慧的云計算
- SQL Server深入詳解
- 貫通SQL Server 2008數據庫系統開發
- Unreal Engine Virtual Reality Quick Start Guide
- 菜鳥學SPSS數據分析