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
用 MLIR 實作 一個 Ruby IR (intermediate representation)
johnlinvc
0
120
Unearth Ruby builtin Gems 發掘 Ruby 的內建 Gems
johnlinvc
0
250
Ruby 型別檢查工具簡介
johnlinvc
0
460
Swift Actor 實作探索
johnlinvc
0
160
用 mruby 來寫跨平台工具
johnlinvc
0
71
Actor model 簡介
johnlinvc
0
190
一起玩 Helm 3
johnlinvc
1
110
為什麼 App 卡卡的
johnlinvc
2
1.2k
如何使用 byebug 來除錯 Ruby 程式
johnlinvc
0
200
Other Decks in Programming
See All in Programming
ASP.NETアプリケーションのモダナイズ インフラ編
tomokusaba
1
230
無関心の谷
kanayannet
0
160
C++20 射影変換
faithandbrave
0
460
「ElixirでIoT!!」のこれまでとこれから
takasehideki
0
360
Rails産でないDBを Railsに引っ越すHACK - Omotesando.rb #110
lnit
1
160
Practical Tips and Tricks for Working with Compose Multiplatform Previews (mDevCamp 2025)
stewemetal
0
120
生成AIコーディングとの向き合い方、AIと共創するという考え方 / How to deal with generative AI coding and the concept of co-creating with AI
seike460
PRO
1
250
人には人それぞれのサービス層がある
shimabox
3
670
つよそうにふるまい、つよい成果を出すのなら、つよいのかもしれない
irof
1
290
Benchmark
sysong
0
180
業務自動化をJavaとSeleniumとAWS Lambdaで実現した方法
greenflagproject
1
110
Effect の双対、Coeffect
yukikurage
5
1.4k
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Six Lessons from altMBA
skipperchong
28
3.8k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
20
1.3k
Documentation Writing (for coders)
carmenintech
71
4.9k
The Cost Of JavaScript in 2023
addyosmani
50
8.4k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
6
690
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3k
Why Our Code Smells
bkeepers
PRO
337
57k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.5k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.8k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
43
2.4k
Statistics for Hackers
jakevdp
799
220k
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 • શෆᜦఆɼᔒࣄෆཁ༻