Swift (bahasa pemrograman)

Swift
Logo
ParadigmaMultiparadigma: berorientasi protokol, berorientasi objek, fungsional, imperatif, blok terstruktur, deklaratif, bersamaan
Dirancang olehChris Lattner, Doug Gregor, John McCall, Ted Kremenek, Joe Groff, dan Apple Inc.[1]
PengembangApple Inc. dan kontributor sumber terbuka
Pertama kali muncul2 Juni 2014 (2014-06-02)[2]
Rilis stabil
6.1[3] Sunting di Wikidata / 31 Maret 2025 (31 Maret 2025)
Rilis pratayang
5.7 branch (dan Swift 6 datang)
Tata tertib penjenisanStatis, kuat, inferensi
SOSistem operasi Apple (Darwin, iOS, iPadOS, macOS, tvOS, watchOS), Linux, Windows 10, Android
LisensiApache License 2.0 (Swift 2.2 dan kemudian)
Berpemilik (hingga Swift 2.2)[4][5]
Perpanjangan nama berkas.swift, .SWIFT
Situs web
Dipengaruhi oleh
Objective-C,[6] Rust, Haskell, Ruby, Python, C#, CLU,[7] D[8]
Memengaruhi
Rust[9]
Peringatan: Halaman menggunakan Template:Kotak info bahasa pemrograman dengan parameter "? break ??name" tidak diketahui (pesan ini hanya ditampilkan dalam pratinjau).

Swift adalah bahasa pemrograman objek fungsional untuk pengembangan iOS dan OS X yang dibuat oleh Apple.[10] Didesain untuk berdampingan dengan Objective-C dan menghindari program dari kode yang salah. Swift diperkenalkan oleh Apple pada acara tahunan WWDC 2014.[10] Ini dibangun dengan compiler LLVM yang termasuk dalam Xcode 6 beta. Sebuah buku berisi 500 halaman petunjuk, The Swift Programming Language, dirilis bersamaan dengan WWDC, dan tersedia secara gratis di iBooks.[11]

Pada tanggal 2 Juni 2014, aplikasi WWDC menjadi yang pertama dirilis ke publik yang ditulis dengan Swift.

  1. ^ U.S. patent no. 9329844
  2. ^ "Swift Has Reached 1.0". Apple. September 9, 2014. Diakses tanggal March 8, 2015. 
  3. ^ "Swift 6.1 Released". 31 Maret 2025. Diakses tanggal 2 April 2025. 
  4. ^ "Swift, Objectively". Swift is proprietary and closed: It is entirely controlled by Apple and there is no open source implementation. 
  5. ^ Lattner, Chris (June 11, 2014). "Re: [LLVMdev] [cfe-dev] [Advertisement] open positions in Apple's Swift compiler team". Diarsipkan dari versi asli tanggal July 14, 2014. Diakses tanggal June 12, 2014. You can imagine that many of us want it to be open source and part of LLVM, but the discussion hasn't happened yet, and won't for some time. 
  6. ^ Lattner, Chris (June 3, 2014). "Chris Lattner's Homepage". Chris Lattner. Diakses tanggal June 3, 2014. The Swift language is the product of tireless effort from a team of language experts, documentation gurus, compiler optimization ninjas, and an incredibly important internal dogfooding group who provided feedback to help refine and battle-test ideas. Of course, it also greatly benefited from the experiences hard-won by many other languages in the field, drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list. 
  7. ^ Lattner, Chris (June 3, 2014). "Chris Lattner's Homepage". Chris Lattner. Diakses tanggal June 3, 2014. I started work on the Swift Programming Language in July of 2010. I implemented much of the basic language structure, with only a few people knowing of its existence. A few other (amazing) people started contributing in earnest late in 2011, and it became a major focus for the Apple Developer Tools group in July 2013 [...] drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list. 
  8. ^ "Building assert() in Swift, Part 2: __FILE__ and __LINE__". Diakses tanggal September 25, 2014. 
  9. ^ "Influences - The Rust Reference". doc.rust-lang.org. Diakses tanggal 2020-05-02. 
  10. ^ a b Williams, Owen (2014-06-02). "Apple Announces Swift, A New Programming Language for iOS and OS X". The Next Web (dalam bahasa Inggris). Diakses tanggal 2019-03-22. 
  11. ^ The Swift Programming Language. Apple, Inc. 02 June 2014. 

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search