A Basic Introduction to Swift

This chapter presents an overview of the Swift programming language, focusing on Swift Foundation Library, C Library Interoperability, and memory management. The Swift standard library provides support for basic data types, protocols, collections, and more. Swift developers are accustomed to leverag...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Williamson, Leigh, Ponzo, John, Bohrer, Patrick, Olivieri, Ricardo, Kallner, Samuel, Weinmeister, Karl
Format: Buchkapitel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page 51
container_issue
container_start_page 35
container_title
container_volume
creator Williamson, Leigh
Ponzo, John
Bohrer, Patrick
Olivieri, Ricardo
Kallner, Samuel
Weinmeister, Karl
description This chapter presents an overview of the Swift programming language, focusing on Swift Foundation Library, C Library Interoperability, and memory management. The Swift standard library provides support for basic data types, protocols, collections, and more. Swift developers are accustomed to leveraging a library called Grand Central Dispatch, which provides concurrent execution support in their applications. This library has also been made available on Linux and is now included as one of the core libraries in the Swift runtime. Dispatch provides support for submitting work to DispatchQueues. Work submitted to these queues is run across a number of threads managed by the system. ARC accounts for Swift programs maintaining a very low memory footprint compared to other interpreted or JVM‐based languages. ARC keeps track of memory used by class instances and frees up that memory when those instances are no longer being referenced. Weak references are converted to nil when the object they are referencing is freed. IBM and Apple built over a hundred rich iOS applications for the enterprise.
doi_str_mv 10.1002/9781119368502.ch3
format Book Chapter
fullrecord <record><control><sourceid>proquest_wiley</sourceid><recordid>TN_cdi_proquest_ebookcentralchapters_4941258_24_68</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>EBC4941258_24_68</sourcerecordid><originalsourceid>FETCH-LOGICAL-p123f-4c8a51b05853976142a421ee3fbfebf4df3f83a679e19a4ed596e0f032f90adf3</originalsourceid><addsrcrecordid>eNptj91Kw0AQhVdEUWsewAshL5A6s3_ZvazFaqHghXq9bJJdGg1N7KYUfXq3iSAFYYflzJwzw0fIDcIUAeidzhUiaiaVADot1-yEJH89ntNTcjWI-HJ-HgUAMC2B4wVJQniPElXOpJCX5HaW3ttQl-ly02_balf2dbtJ-zZ92de-vyZn3jbBJb__hLwtHl7nT9nq-XE5n62yDinzGS-VFViAUILpXCKnllN0jvnCu8LzyjOvmJW5dqgtd5XQ0oEHRr0GG6cTguPefd24L-OKtv0IBsEcgM0RsInAh4qZ7J_Msfe77gZ_N9ygo7_btp87F_oxUroIbptybbvebYPhmiMVylBupGI_tkhlnQ</addsrcrecordid><sourcetype>Enrichment Source</sourcetype><iscdi>true</iscdi><recordtype>book_chapter</recordtype><pqid>EBC4941258_24_68</pqid></control><display><type>book_chapter</type><title>A Basic Introduction to Swift</title><source>O'Reilly Online Learning: Academic/Public Library Edition</source><creator>Williamson, Leigh ; Ponzo, John ; Bohrer, Patrick ; Olivieri, Ricardo ; Kallner, Samuel ; Weinmeister, Karl</creator><contributor>Olivieri, Ricardo ; Bohrer, Patrick ; Weinmeister, Karl ; Williamson, Leigh ; Ponzo, John ; Kallner, Samuel</contributor><creatorcontrib>Williamson, Leigh ; Ponzo, John ; Bohrer, Patrick ; Olivieri, Ricardo ; Kallner, Samuel ; Weinmeister, Karl ; Olivieri, Ricardo ; Bohrer, Patrick ; Weinmeister, Karl ; Williamson, Leigh ; Ponzo, John ; Kallner, Samuel</creatorcontrib><description>This chapter presents an overview of the Swift programming language, focusing on Swift Foundation Library, C Library Interoperability, and memory management. The Swift standard library provides support for basic data types, protocols, collections, and more. Swift developers are accustomed to leveraging a library called Grand Central Dispatch, which provides concurrent execution support in their applications. This library has also been made available on Linux and is now included as one of the core libraries in the Swift runtime. Dispatch provides support for submitting work to DispatchQueues. Work submitted to these queues is run across a number of threads managed by the system. ARC accounts for Swift programs maintaining a very low memory footprint compared to other interpreted or JVM‐based languages. ARC keeps track of memory used by class instances and frees up that memory when those instances are no longer being referenced. Weak references are converted to nil when the object they are referencing is freed. IBM and Apple built over a hundred rich iOS applications for the enterprise.</description><identifier>ISBN: 1119319374</identifier><identifier>ISBN: 9781119319375</identifier><identifier>EISBN: 9781119368472</identifier><identifier>EISBN: 1119368472</identifier><identifier>EISBN: 1119368502</identifier><identifier>EISBN: 9781119368502</identifier><identifier>DOI: 10.1002/9781119368502.ch3</identifier><identifier>OCLC: 1000396041</identifier><identifier>LCCallNum: QA76.585.S954 2017</identifier><language>eng</language><publisher>United States: John Wiley &amp; Sons, Incorporated</publisher><subject>Grand Central Dispatch ; iOS applications ; memory footprint ; Swift Foundation Library ; Swift programming</subject><ispartof>Swift in the Cloud, 2017, p.35-51</ispartof><rights>Copyright © 2017 by IBM. All rights reserved.</rights><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Uhttps://ebookcentral.proquest.com/covers/4941258-l.jpg</thumbnail><link.rule.ids>775,776,780,789,27902</link.rule.ids></links><search><contributor>Olivieri, Ricardo</contributor><contributor>Bohrer, Patrick</contributor><contributor>Weinmeister, Karl</contributor><contributor>Williamson, Leigh</contributor><contributor>Ponzo, John</contributor><contributor>Kallner, Samuel</contributor><creatorcontrib>Williamson, Leigh</creatorcontrib><creatorcontrib>Ponzo, John</creatorcontrib><creatorcontrib>Bohrer, Patrick</creatorcontrib><creatorcontrib>Olivieri, Ricardo</creatorcontrib><creatorcontrib>Kallner, Samuel</creatorcontrib><creatorcontrib>Weinmeister, Karl</creatorcontrib><title>A Basic Introduction to Swift</title><title>Swift in the Cloud</title><description>This chapter presents an overview of the Swift programming language, focusing on Swift Foundation Library, C Library Interoperability, and memory management. The Swift standard library provides support for basic data types, protocols, collections, and more. Swift developers are accustomed to leveraging a library called Grand Central Dispatch, which provides concurrent execution support in their applications. This library has also been made available on Linux and is now included as one of the core libraries in the Swift runtime. Dispatch provides support for submitting work to DispatchQueues. Work submitted to these queues is run across a number of threads managed by the system. ARC accounts for Swift programs maintaining a very low memory footprint compared to other interpreted or JVM‐based languages. ARC keeps track of memory used by class instances and frees up that memory when those instances are no longer being referenced. Weak references are converted to nil when the object they are referencing is freed. IBM and Apple built over a hundred rich iOS applications for the enterprise.</description><subject>Grand Central Dispatch</subject><subject>iOS applications</subject><subject>memory footprint</subject><subject>Swift Foundation Library</subject><subject>Swift programming</subject><isbn>1119319374</isbn><isbn>9781119319375</isbn><isbn>9781119368472</isbn><isbn>1119368472</isbn><isbn>1119368502</isbn><isbn>9781119368502</isbn><fulltext>true</fulltext><rsrctype>book_chapter</rsrctype><creationdate>2017</creationdate><recordtype>book_chapter</recordtype><recordid>eNptj91Kw0AQhVdEUWsewAshL5A6s3_ZvazFaqHghXq9bJJdGg1N7KYUfXq3iSAFYYflzJwzw0fIDcIUAeidzhUiaiaVADot1-yEJH89ntNTcjWI-HJ-HgUAMC2B4wVJQniPElXOpJCX5HaW3ttQl-ly02_balf2dbtJ-zZ92de-vyZn3jbBJb__hLwtHl7nT9nq-XE5n62yDinzGS-VFViAUILpXCKnllN0jvnCu8LzyjOvmJW5dqgtd5XQ0oEHRr0GG6cTguPefd24L-OKtv0IBsEcgM0RsInAh4qZ7J_Msfe77gZ_N9ygo7_btp87F_oxUroIbptybbvebYPhmiMVylBupGI_tkhlnQ</recordid><startdate>2017</startdate><enddate>2017</enddate><creator>Williamson, Leigh</creator><creator>Ponzo, John</creator><creator>Bohrer, Patrick</creator><creator>Olivieri, Ricardo</creator><creator>Kallner, Samuel</creator><creator>Weinmeister, Karl</creator><general>John Wiley &amp; Sons, Incorporated</general><general>John Wiley &amp; Sons, Inc</general><scope>FFUUA</scope></search><sort><creationdate>2017</creationdate><title>A Basic Introduction to Swift</title><author>Williamson, Leigh ; Ponzo, John ; Bohrer, Patrick ; Olivieri, Ricardo ; Kallner, Samuel ; Weinmeister, Karl</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-p123f-4c8a51b05853976142a421ee3fbfebf4df3f83a679e19a4ed596e0f032f90adf3</frbrgroupid><rsrctype>book_chapters</rsrctype><prefilter>book_chapters</prefilter><language>eng</language><creationdate>2017</creationdate><topic>Grand Central Dispatch</topic><topic>iOS applications</topic><topic>memory footprint</topic><topic>Swift Foundation Library</topic><topic>Swift programming</topic><toplevel>online_resources</toplevel><creatorcontrib>Williamson, Leigh</creatorcontrib><creatorcontrib>Ponzo, John</creatorcontrib><creatorcontrib>Bohrer, Patrick</creatorcontrib><creatorcontrib>Olivieri, Ricardo</creatorcontrib><creatorcontrib>Kallner, Samuel</creatorcontrib><creatorcontrib>Weinmeister, Karl</creatorcontrib><collection>ProQuest Ebook Central - Book Chapters - Demo use only</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Williamson, Leigh</au><au>Ponzo, John</au><au>Bohrer, Patrick</au><au>Olivieri, Ricardo</au><au>Kallner, Samuel</au><au>Weinmeister, Karl</au><au>Olivieri, Ricardo</au><au>Bohrer, Patrick</au><au>Weinmeister, Karl</au><au>Williamson, Leigh</au><au>Ponzo, John</au><au>Kallner, Samuel</au><format>book</format><genre>bookitem</genre><ristype>CHAP</ristype><atitle>A Basic Introduction to Swift</atitle><btitle>Swift in the Cloud</btitle><date>2017</date><risdate>2017</risdate><spage>35</spage><epage>51</epage><pages>35-51</pages><isbn>1119319374</isbn><isbn>9781119319375</isbn><eisbn>9781119368472</eisbn><eisbn>1119368472</eisbn><eisbn>1119368502</eisbn><eisbn>9781119368502</eisbn><abstract>This chapter presents an overview of the Swift programming language, focusing on Swift Foundation Library, C Library Interoperability, and memory management. The Swift standard library provides support for basic data types, protocols, collections, and more. Swift developers are accustomed to leveraging a library called Grand Central Dispatch, which provides concurrent execution support in their applications. This library has also been made available on Linux and is now included as one of the core libraries in the Swift runtime. Dispatch provides support for submitting work to DispatchQueues. Work submitted to these queues is run across a number of threads managed by the system. ARC accounts for Swift programs maintaining a very low memory footprint compared to other interpreted or JVM‐based languages. ARC keeps track of memory used by class instances and frees up that memory when those instances are no longer being referenced. Weak references are converted to nil when the object they are referencing is freed. IBM and Apple built over a hundred rich iOS applications for the enterprise.</abstract><cop>United States</cop><pub>John Wiley &amp; Sons, Incorporated</pub><doi>10.1002/9781119368502.ch3</doi><oclcid>1000396041</oclcid><tpages>17</tpages></addata></record>
fulltext fulltext
identifier ISBN: 1119319374
ispartof Swift in the Cloud, 2017, p.35-51
issn
language eng
recordid cdi_proquest_ebookcentralchapters_4941258_24_68
source O'Reilly Online Learning: Academic/Public Library Edition
subjects Grand Central Dispatch
iOS applications
memory footprint
Swift Foundation Library
Swift programming
title A Basic Introduction to Swift
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-30T19%3A09%3A55IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest_wiley&rft_val_fmt=info:ofi/fmt:kev:mtx:book&rft.genre=bookitem&rft.atitle=A%20Basic%20Introduction%20to%20Swift&rft.btitle=Swift%20in%20the%20Cloud&rft.au=Williamson,%20Leigh&rft.date=2017&rft.spage=35&rft.epage=51&rft.pages=35-51&rft.isbn=1119319374&rft.isbn_list=9781119319375&rft_id=info:doi/10.1002/9781119368502.ch3&rft_dat=%3Cproquest_wiley%3EEBC4941258_24_68%3C/proquest_wiley%3E%3Curl%3E%3C/url%3E&rft.eisbn=9781119368472&rft.eisbn_list=1119368472&rft.eisbn_list=1119368502&rft.eisbn_list=9781119368502&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=EBC4941258_24_68&rft_id=info:pmid/&rfr_iscdi=true