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
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
340
Unearth Ruby builtin Gems 發掘 Ruby 的內建 Gems
johnlinvc
0
420
Ruby 型別檢查工具簡介
johnlinvc
0
640
Swift Actor 實作探索
johnlinvc
0
210
用 mruby 來寫跨平台工具
johnlinvc
0
130
Actor model 簡介
johnlinvc
0
240
一起玩 Helm 3
johnlinvc
1
170
為什麼 App 卡卡的
johnlinvc
2
1.3k
如何使用 byebug 來除錯 Ruby 程式
johnlinvc
0
280
Other Decks in Programming
See All in Programming
LLMは4年分のCompose移行を再現できるのか?実プロダクト279件のXMLで探る自動化の境界線
makun
0
590
選挙速報を多くのユーザーへ 届ける Live Activities 設計
hamayokokuririn
0
110
技術的負債を組織課題として解く-増えすぎたマイクロサービスとの戦い-
reimaru
1
460
テストを司るデーモンに会いに行く 〜隔離した仮想マシンでテストを通すまで〜
h1d3mun3
1
180
iOSDC Japan 2026 - Swiftで作って学ぼう!データベース自作入門
kaseken
2
140
PHPプロジェクトの結合バランスを可視化する #php_night
kajitack
0
240
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
180
デプロイ直後のレイテンシスパイクを調べたら、 Railsの仕様にたどり着いた
nhsykym
0
120
GKE アップグレード前に知っておきたい Blue/Green と PDB の関係
stkk
0
160
思考垂れ流し開発 ~音声入力 × AIエージェント × 開発ハーネスによる試行錯誤~
npostring
0
1.1k
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
6
1.6k
AIは賢い。でも実行環境は? CLIおじさんがAI時代に伝えたいこと ~ CLIおじさんがAI時代に伝えたいこと ~
curekoshimizu
1
240
Featured
See All Featured
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
270
The Cost Of JavaScript in 2023
addyosmani
55
10k
Automating Front-end Workflow
addyosmani
1369
210k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
530
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
560
What's in a price? How to price your products and services
michaelherold
247
13k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
KATA
mclloyd
PRO
35
15k
Google's AI Overviews - The New Search
badams
0
1.6k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Making Projects Easy
brettharned
120
6.7k
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/