Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Swift Weekly 2017-02-07
Search
Johnlin
February 07, 2017
Programming
1
120
Swift Weekly 2017-02-07
Johnlin
February 07, 2017
Tweet
Share
More Decks by Johnlin
See All by Johnlin
Unearth Ruby builtin Gems 發掘 Ruby 的內建 Gems
johnlinvc
0
110
Ruby 型別檢查工具簡介
johnlinvc
0
310
Swift Actor 實作探索
johnlinvc
0
130
用 mruby 來寫跨平台工具
johnlinvc
0
49
Actor model 簡介
johnlinvc
0
120
一起玩 Helm 3
johnlinvc
1
82
為什麼 App 卡卡的
johnlinvc
2
1k
如何使用 byebug 來除錯 Ruby 程式
johnlinvc
0
140
Life of a Cell
johnlinvc
0
1.3k
Other Decks in Programming
See All in Programming
HUIT新歓2024「競技プログラミング、やってみませんか?」
slephy2784
1
270
GitHub Actionsで泣かないためにやっておきたい設定 / Recommended GHA settings to avoid crying
pinkumohikan
3
530
Git Lint
bkuhlmann
4
750
Changed Rules: Architectures with Lightweight Stores
manfredsteyer
PRO
0
240
Ruby GitHub Packages
bkuhlmann
0
630
Ruby Function Composition
bkuhlmann
1
330
Elm Form Validation
bkuhlmann
0
510
Hanami and htmx
bkuhlmann
0
210
入門 AWS Amplify Gen2 / Introduction to AWS Amplify Gen2
genkiogasawara
1
330
大規模UIKitベースアプリへのTCAの段階的導入/gradual-adoption-of-tca-in-a-large-scale-uikit-based-app
takehilo
1
100
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
680
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
230
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
30
6k
Music & Morning Musume
bryan
41
5.6k
GraphQLの誤解/rethinking-graphql
sonatard
50
9.2k
Imperfection Machines: The Place of Print at Facebook
scottboms
260
12k
Product Roadmaps are Hard
iamctodd
44
9.7k
The Cost Of JavaScript in 2023
addyosmani
16
3.9k
YesSQL, Process and Tooling at Scale
rocio
164
13k
Fashionably flexible responsive web design (full day workshop)
malarkey
398
65k
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
Web development in the modern age
philhawksworth
202
10k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
51k
The Art of Programming - Codeland 2020
erikaheidi
42
12k
Transcript
Swift पใ 2017/02/07 John Lin @johnlinvc
From the core • Swift 3.1 dev շর ቮ։์Լࡌ •
Swift Evolution 㐫ଶท • Swift ํ Docker image
Swift 3.1 dev շর • Swift 3.1 త։ᚙ൛ቮៃՄҎԼࡌྃ •
3.0 ݪ࢝ᛰԼ૬༰ɼ༻ -swift-version=3.0 बՄ Ҏ႔ཧ 3.0 తݪ࢝ᛰ
Swift Evolution 㐫ଶท • https://apple.github.io/swift-evolution/ • ՄҎ౸ॴ༗త proposal త㐫ଶɼؐ༗૬ሣጯత Jira
Issueɻ
Swift ํ docker image • https://hub.docker.com/r/library/swift/ • ՄҎෆ༻linux बೳ䋯Ubuntu 16.04
Swift
Evolution • SE-0147 ኑআ UnsafeMutablePointer.initialize(from:)ɼվ༻ UnsafeMutableBufferPointer • SE-0148 ᔟܕSubscript •
SE-0149 ฤा૬ґ݅࣌ՄҎࠌུ൛ຊ • SE-0150 ݅ཧثՄҎબᎩBranch
SE-0147 ኑআUnsafeMutablePointer.initialize(from:)ɼ վ༻ UnsafeMutableBufferPointer • ҎલՄҎ Array(Collection) UnsafeMutablePointɻෆա༗ᖅࡏత෩ᯃɻ Collection
త Count Ꮠ༗Մೳൺመࡍత߲গɼ။ buffer overflowɻ • ৽తվ༻Sequence ҰݸҰݸ႔ཧɼՌෆԼɼ။ ճၚᔒ༗ޭతୈҰݸ Iteratorɻ
SE-0148 ᔟܕSubscript • ݱࡏsubscript ᦒવՄҎଟࡌɼୠෆೳ༻ᔟܕɼ㑌࣍ ཁॏሜຑɻ • ະိsubscript ՄҎࢧԉᔟܕɻॴҎՄҎ၏ࣗݾత Collection
SE-0149 ฤा૬ґ݅࣌ՄҎࠌ ུ൛ຊ • ։ᚙ݅త࣌ީɼՄҎࢦఆ༻ຊػత૬ґ݅ɻ • ൺํ㘸 libHello ༗㠥Ұݸൣྫ݅ɼHelloWorldɻҎ લతྲྀఔੋ
վlibHello -> ᚙlibHello -> վ HelloWorldɻ ୠੋՌࡏHelloWorld ཫ۰౸ libHello తɼबඞਢॏ৽ᚙ䆋ෆํศɻະိՄҎࢦఆ HelloWorld ࡏ։ᚙ࣌༻ຊػత libHelloɻ
SE-0150 ݅ཧثՄҎબᎩ Branch • ݱࡏత ݅ཧثੋ༻ git tag ိܾఆ൛ຊతɻ •
ᔒ༗tag త݅बෆೳɻෆํศ • ະိՄҎ༻ .Package(url: “url”, branch: “dev”) ိࢦఆ branch • ՄҎ༻ .Package(url: “url”, revision: “1234567890123456789012345678901234567890”) ိࢦఆ commit • ။ᒾҰ revision ੋෆੋ40ݸࣈత hash
Community • ݱࡏ༗ෆᜦఆతํ๏ᩋC ༻ Swift ఔࣜݿ
ᩋC ༻ Swift ఔࣜݿ • https://lists.swift.org/pipermail/swift-users/Week-of- Mon-20170109/004384.html • @_cdecl(“bar_foo") public
func foo(x: Int) -> Int { return x } • ࡏ C बՄҎݺڣ bar_foo • શෆᜦఆɼᔒࣄෆཁ༻