Swift

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(项目)
 
(未显示1个用户的50个中间版本)
第1行: 第1行:
 
{{SeeWikipedia}}
 
{{SeeWikipedia}}
 
+
[[文件:swift.png|right]]
 
Swift 编程语言是苹果新推出的开发语言,Swift是供iOS和OS X应用编程的新编程语言,基于C和Objective-C,而却没有C的一些兼容约束。Swift采用了安全的编程模式和添加现代的功能来是的编程更加简单、灵活和有趣。界面则基于广受人民群众爱戴的Cocoa和Cocoa Touch框架,展示了软件开发的新方向。
 
Swift 编程语言是苹果新推出的开发语言,Swift是供iOS和OS X应用编程的新编程语言,基于C和Objective-C,而却没有C的一些兼容约束。Swift采用了安全的编程模式和添加现代的功能来是的编程更加简单、灵活和有趣。界面则基于广受人民群众爱戴的Cocoa和Cocoa Touch框架,展示了软件开发的新方向。
 +
 +
Swift 语言由 [[C++]] 编写,依赖 [[LLVM]]编译环境,采用Apache v2许可协议。
 +
 +
==版本==
 +
*[https://swift.org/blog/swift-5-released/ Swift 5 Released!]
 +
*[https://swift.org/blog/swift-4-0-released/ Swift 4.0 Released!] [https://swift.org/blog/swift-4-0-release-process/ Swift 4 Release Process]
 +
*[https://swift.org/blog/swift-3-0-release-process/ Swift 3.0 Release Process] [http://docs.huihoo.com/swift/3.0 Swift 3.0 documentation]
 +
*[https://swift.org/blog/swift-2-2-released/ Swift 2.2 Released] [https://swift.org/blog/swift-2-2-release-process/ Swift 2.2 Release Process]
  
 
==项目==
 
==项目==
使用 swift 开发的开源项目:
+
[[文件:swift-ai.png|right]]
 +
*[https://github.com/matteocrippa/awesome-swift Awesome Swift] [[image:awesome.png]]
 +
*[https://github.com/apple/swift Swift @ GitHub]
 +
*[https://github.com/IBM-Swift Swift @ IBM]
 +
*[https://github.com/ReactiveX/RxSwift RxSwift]
 +
*[https://github.com/ReactiveCocoa/ReactiveSwift ReactiveSwift]
 +
*[https://github.com/ReactiveCocoa/ReactiveCocoa ReactiveCocoa]
 
*[[Firefox for iOS]]
 
*[[Firefox for iOS]]
 +
*[https://github.com/shadowsocks/Potatso Potatso] 科学上网
 +
*[https://github.com/CatchChat/Yep Yep] 社交App
 +
*[https://github.com/JakeLin/SwiftWeather SwiftWeather]
 +
*[https://github.com/badoo/Chatto Chatto] A lightweight framework to build chat applications, made in Swift
 +
*[https://github.com/likedan/Awesome-CoreML-Models Awesome Core ML Models] [[文件:awesome.png]]
 +
*[https://github.com/Swift-AI/Swift-AI Swift AI]
 +
*[https://github.com/aleph7/BrainCore BrainCore]
 +
*[https://github.com/rxwei/CoreLinguistics CoreLinguistics] - [[Natural language processing|Natural Language Processing]] (NLP) toolkit.
 +
*[https://github.com/garnele007/SwiftOCR SwiftOCR]
 +
*[https://github.com/BradLarson/GPUImage2 GPUImage 2]
 +
*[https://github.com/PostgresApp/PostgresApp Postgres.app]
 +
*[https://github.com/PerfectlySoft/Perfect Perfect] Server-Side Swift
 +
*[https://github.com/hemantasapkota/SwiftStore SwiftStore] Key/Value store for Swift backed by LevelDB.
 +
*[https://github.com/IBM-Swift/Kitura Kitura] Web framework and HTTP server for Swift
 +
*[http://zewo.io/ Zewo] Build server software in Swift
 +
*[https://github.com/danielbuechele/goofy Goofy] is a OS X client for Facebook Messenger.
 +
*[https://github.com/insidegui/WWDC WWDC app for macOS]
 +
*[https://github.com/mileswd/mac2imgur mac2imgur]
 +
*[https://github.com/ello/ello-ios Ello iOS App]
 +
*[https://github.com/IBM-Swift Swift @ IBM]
  
 
==REPL==
 
==REPL==
第13行: 第47行:
 
   2> print("Hello, \(name)")  
 
   2> print("Hello, \(name)")  
 
  Hello, swift
 
  Hello, swift
 +
 +
==iOS==
 +
*[https://github.com/dkhamsing/open-source-ios-apps Open Source iOS Apps]
 +
*[https://github.com/actorapp/actor-platform Actor Messaging platform] [[Akka]]和[[Scala]]的后端系统,提供[[iOS]]和[[Android]] SDK
 +
*[https://github.com/CatchChat/Yep Yep] Meet Genius
 +
*[[edX]] [https://github.com/edx/edx-app-ios iOS App]
 +
*[https://github.com/kickstarter/ios-oss Kickstarter for iOS] Bring new ideas to life, anywhere. 
 +
*[https://github.com/fullstackio/FlappySwift FlappySwift]
 +
*[https://github.com/aslanyanhaik/youtube-iOS Youtube iOS Template]
 +
*[https://github.com/austinzheng/swift-2048 2048 for Swift]
 +
*[https://github.com/swiftcodex/Swift-Radio-Pro Swift Radio]
 +
*[https://github.com/artsy/eigen Artsy] The art world in your pocket, Eeplore 300,000 Artworks. //很酷
 +
*[https://github.com/Yalantis/PixPic PixPic] a Photo Editing App
 +
*[https://github.com/MengTo/DesignerNewsApp DesignerNewsApp]
 +
*[https://github.com/amitburst/HackerNews HackerNews]
 +
*[https://github.com/lexrus/VPNOn VPN On]
 +
 +
==macOS==
 +
*[https://github.com/iCHAIT/awesome-macOS Awesome macOS] [[文件:awesome.png]]
 +
*[http://vimr.org/ VimR]
 +
 +
==[[Linux]]==
 +
*[https://github.com/IBM-Swift/Kitura Kitura web framework and web server]
 +
 +
==[[Android]]==
 +
*[https://github.com/apple/swift/blob/master/docs/Android.md Getting Started with Swift on Android]
 +
*[https://github.com/SwiftAndroid SwiftAndroid]
 +
 +
==Windows==
 +
[https://swiftforwindows.github.io/ Swift for Windows]
 +
 +
==[[Emacs]]==
 +
*[https://github.com/swift-emacs/swift-mode swift-mode]
 +
 +
==[[Functional programming|函数式编程]]==
 +
*[https://store.objccn.io/products/functional-swift/ 函数式 Swift]
 +
*[https://www.raywenderlich.com/82599/swift-functional-programming-tutorial Swift Functional Programming Tutorial]
  
 
==文档==
 
==文档==
第20行: 第91行:
 
  make
 
  make
 
[http://docs.huihoo.com/swift 浏览Swift在线文档]
 
[http://docs.huihoo.com/swift 浏览Swift在线文档]
 +
 +
==开发者==
 +
*[http://www.nondot.org/sabre 克里斯·拉特纳 (Chris Lattner)] 美国著名程序员,[[LLVM]]项目的主要发起人与作者之一,Clang编译器的作者。他现在是苹果公司编译器开发团队的首席架构师,他于2010年7月开始设计Swift。
  
 
==链接==
 
==链接==
 
*[https://swift.org/ Swift官网]
 
*[https://swift.org/ Swift官网]
*[https://github.com/matteocrippa/awesome-swift Awesome Swift] [[image:awesome.png]]
+
*[https://www.apple.com/cn/swift/ Swift苹果官网]
*[https://github.com/apple/swift Swift @ GitHub]
+
 
*[https://developer.apple.com/swift Swift @ Apple]
 
*[https://developer.apple.com/swift Swift @ Apple]
 
*[https://developer.apple.com/swift/blog/ Swift官网博客]
 
*[https://developer.apple.com/swift/blog/ Swift官网博客]
第30行: 第103行:
 
*[http://book.huihoo.com/gitbook/the-swift-programming-language-zh-cn 《The Swift Programming Language》中文版]
 
*[http://book.huihoo.com/gitbook/the-swift-programming-language-zh-cn 《The Swift Programming Language》中文版]
 
*[https://github.com/huihoo/the-swift-programming-language 《The Swift Programming Language》中文计划] 已暂停。
 
*[https://github.com/huihoo/the-swift-programming-language 《The Swift Programming Language》中文计划] 已暂停。
 +
*[http://www.csdn.net/article/2014-07-08/2820568 从Objective-C到Swift]
 
*[http://gashero.iteye.com/blog/2075324 Apple Swift编程语言入门教程]
 
*[http://gashero.iteye.com/blog/2075324 Apple Swift编程语言入门教程]
 
*[https://medium.com/@harrycheung/cross-platform-mobile-performance-testing-d0454f5cd4e9 Mobile App Performance:J2ObjC vs Xamarin vs RoboVM vs RubyMotion]
 
*[https://medium.com/@harrycheung/cross-platform-mobile-performance-testing-d0454f5cd4e9 Mobile App Performance:J2ObjC vs Xamarin vs RoboVM vs RubyMotion]
 
*[https://github.com/practicalswift/swift-compiler-crashes A collection of test cases crashing the Swift compiler.]
 
*[https://github.com/practicalswift/swift-compiler-crashes A collection of test cases crashing the Swift compiler.]
 
*[http://www.infoq.com/cn/news/2016/04/Google-Uber-Swift-Android Google 或许会将 Swift 编程语言纳入 Android 平台]
 
*[http://www.infoq.com/cn/news/2016/04/Google-Uber-Swift-Android Google 或许会将 Swift 编程语言纳入 Android 平台]
 +
*[http://www.sunsetlakesoftware.com/ Sunset Lake Software] [https://github.com/BradLarson Brad Larson]
 +
*[https://www.ibm.com/developerworks/cn/mobile/zones/seven-swift-snares-how-to-avoid-them/index.html 七大 Swift 陷阱以及如何避免它们]
 +
*[https://www.ibm.com/developerworks/cn/mobile/mo-cn-swift/ Swift 2 throws 全解析 - 从原理到实践]
  
 
[[category:iOS]]
 
[[category:iOS]]
 
[[category:OS X]]
 
[[category:OS X]]
 +
[[category:c++]]
 +
[[category:LLVM]]
 
[[category:programming language]]
 
[[category:programming language]]
 +
[[category:functional programming]]
 +
[[category:lambda]]
 
[[category:apple]]
 
[[category:apple]]

2023年7月7日 (五) 23:08的最后版本

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 Swift Thanks, Wikipedia.
Swift.png

Swift 编程语言是苹果新推出的开发语言,Swift是供iOS和OS X应用编程的新编程语言,基于C和Objective-C,而却没有C的一些兼容约束。Swift采用了安全的编程模式和添加现代的功能来是的编程更加简单、灵活和有趣。界面则基于广受人民群众爱戴的Cocoa和Cocoa Touch框架,展示了软件开发的新方向。

Swift 语言由 C++ 编写,依赖 LLVM编译环境,采用Apache v2许可协议。

目录

[编辑] 版本

[编辑] 项目

Swift-ai.png

[编辑] REPL

$ swift 
  1> let name = "swift" 
name: String = "swift"
 2> print("Hello, \(name)") 
Hello, swift

[编辑] iOS

[编辑] macOS

[编辑] Linux

[编辑] Android

[编辑] Windows

Swift for Windows

[编辑] Emacs

[编辑] 函数式编程

[编辑] 文档

pip install -U Sphinx
git clone https://github.com/apple/swift.git
cd swift/docs
make

浏览Swift在线文档

[编辑] 开发者

  • 克里斯·拉特纳 (Chris Lattner) 美国著名程序员,LLVM项目的主要发起人与作者之一,Clang编译器的作者。他现在是苹果公司编译器开发团队的首席架构师,他于2010年7月开始设计Swift。

[编辑] 链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱