- 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.
- 數據分析實戰:基于EXCEL和SPSS系列工具的實踐
- 有趣的二進制:軟件安全與逆向分析
- Spark快速大數據分析(第2版)
- Effective Amazon Machine Learning
- Mastering Machine Learning with R(Second Edition)
- 中國數字流域
- 智能數據時代:企業大數據戰略與實戰
- 深入淺出Greenplum分布式數據庫:原理、架構和代碼分析
- AI時代的數據價值創造:從數據底座到大模型應用落地
- 淘寶、天貓電商數據分析與挖掘實戰(第2版)
- 數據庫應用系統開發實例
- 區塊鏈技術應用與實踐案例
- 聯動Oracle:設計思想、架構實現與AWR報告
- 實現領域驅動設計
- AndEngine for Android Game Development Cookbook