Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Swift 雙週報 2016/2/2
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Johnlin
February 02, 2016
Programming
160
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Swift 雙週報 2016/2/2
Johnlin
February 02, 2016
More Decks by Johnlin
See All by Johnlin
用 MLIR 實作 一個 Ruby IR (intermediate representation)
johnlinvc
0
390
Unearth Ruby builtin Gems 發掘 Ruby 的內建 Gems
johnlinvc
0
490
Ruby 型別檢查工具簡介
johnlinvc
0
700
Swift Actor 實作探索
johnlinvc
0
230
用 mruby 來寫跨平台工具
johnlinvc
0
150
Actor model 簡介
johnlinvc
0
280
一起玩 Helm 3
johnlinvc
1
200
為什麼 App 卡卡的
johnlinvc
2
1.4k
如何使用 byebug 來除錯 Ruby 程式
johnlinvc
0
300
Other Decks in Programming
See All in Programming
AWSに止められる覚悟してますか?
morizo_1984
2
530
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
130
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
140
ジョジョの世界をXRで再現する
mofurune
0
160
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
170
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
790
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
590
Workers Cache を知る
syumai
0
360
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
0
880
Featured
See All Featured
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
HDC tutorial
michielstock
2
960
Facilitating Awesome Meetings
lara
57
7.2k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
480
It's Worth the Effort
3n
188
29k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
870
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
480
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
New Earth Scene 8
popppiees
4
2.7k
Into the Great Unknown - MozCon
thekraken
41
2.8k
Transcript
Swift 雙週報 2016/2/2 John Lin(@johnlinvc)
From the core • Swift 2.2 branch 已經建立 [1] •
Swift 已經可以在 FreeBSD 上運作 [2] • Swift 開始被Port 至 cygwin(Windows) [3] • Swift project 開始使用CI [8]
Swift 2.2 包含standard lib, lldb。 不包含package manager, core library. 程式碼將會和2.1相容,主要是效能提升與bugfix
預計三月或四月正式發佈
Swift Project CI https://ci.swift.org/ 將會測試所有主要的branch,以及所有pull request 與Github 整合,可以在Github上看到status
Evolution • Swift package manager 將會整合測試功能 [4] • 在將function 指派至常/變數時將可以指定參數label
[5] • Swift Cocoa API 將會有重大改變 [7]
Package Manager Testing 未來Swift package manager 將會整合測試功能。只要將Test 放進 Tests資料夾中, 再執行
swift test 就會自動編譯並執行測試。 swift build 時也會同時執行測試以確保品質
Function Argument Label 在將function 指定至變數時可以指定Label extension UIView { func insertSubview(view:
UIView, at index: Int) func insertSubview(view: UIView, aboveSubview siblingSubview: UIView) func insertSubview(view: UIView, belowSubview siblingSubview: UIView) } let fn: (UIView, UIView) = { view, otherView in button.insertSubview(view, aboveSubview: otherView) } 未來 let fn = someView.insertSubview(_:at:) let fn1 = someView.insertSubview(_:aboveSubview:)
Cocoa Swift API 的改變 Swift 3.0 的 Cocoa API 將會有重大的改變,變得更加直覺與swifty
class UIBezierPath : NSObject, NSCopying, NSCoding { ... } ... path.addLineToPoint(CGPoint(x: 100, y: 0)) path.fillWithBlendMode(kCGBlendModeMultiply, alpha: 0.7) 將變成 class UIBezierPath : Object, Copying, Coding { ... } ... path.addLineTo(CGPoint(x: 100, y: 0)) path.fillWith(kCGBlendModeMultiply, alpha: 0.7)
Community • Swift.org 繁體中文翻譯進行中 http://swiftlang.tw • SwiftGL ,讓你用Swift 寫 OpenGL,已經基本上可以運作
[6]
References [1]: https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20160111/000802.html [2]: https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20160118/000911.html [3]: https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20160111/000862.html [4]: https://github.com/apple/swift-evolution/blob/master/proposals/0019-package-manager-testing.md [5]:
https://github.com/apple/swift-evolution/blob/master/proposals/0021-generalized-naming.md [6]: https://github.com/AE9RB/SwiftGL.git [7]: https://swiftlang.tw/swift%20blog/swift/cocoa/api/2016/01/29/swift-api-transformation/ [8]: https://swiftlang.tw/continuous-integration/