Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Swift Weekly 2017-02-07

Johnlin
February 07, 2017

Swift Weekly 2017-02-07

Johnlin

February 07, 2017
Tweet

More Decks by Johnlin

Other Decks in Programming

Transcript

  1. From the core • Swift 3.1 dev շর ቮ։์Լࡌ •

    Swift Evolution 㐫ଶท • Swift ׭ํ Docker image
  2. Swift 3.1 dev շর • Swift 3.1 త։ᚙ൛ቮៃՄҎԼࡌྃ • ࿨

    3.0 ݪ࢝ᛰ޲Լ૬༰ɼ༻ -swift-version=3.0 बՄ Ҏ႔ཧ 3.0 తݪ࢝ᛰ
  3. SE-0147 ኑআUnsafeMutablePointer.initialize(from:)ɼ վ༻ UnsafeMutableBufferPointer • ҎલՄҎ೺ Array(Collection) ᫚੒ UnsafeMutablePointɻෆա༗ᖅࡏత෩ᯃɻ Collection

    త Count Ꮠ༗Մೳൺመࡍత߲໨গɼ။଄ ੒buffer overflowɻ • ৽తվ༻Sequence ҰݸҰݸ႔ཧɼ೗Ռ᧋ෆԼɼ။ ճၚᔒ༗੒ޭతୈҰݸ Iteratorɻ
  4. SE-0149 ฤा૬ґ౟݅࣌ՄҎࠌ ུ൛ຊ • ։ᚙ౟݅త࣌ީɼՄҎࢦఆ࢖༻ຊػత૬ґ౟݅ɻ • ൺํ㘸 libHello ༗㠥Ұݸൣྫ౟݅ɼHelloWorldɻҎ લతྲྀఔੋ

    վlibHello -> ᚙ෍libHello -> վ HelloWorldɻ ୠੋ೗ՌࡏHelloWorld ཫ۰౸ libHello త໰୊ɼबඞਢॏ৽ᚙ䆋኷ෆํศɻະိՄҎࢦఆ HelloWorld ࡏ։ᚙ࣌࢖༻ຊػత libHelloɻ
  5. SE-0150 ౟݅؅ཧثՄҎબᎩ Branch • ݱࡏత ౟݅؅ཧثੋ༻ git tag ိܾఆ൛ຊతɻ •

    ᔒ༗tag త౟݅बෆೳ᧋ɻ኷ෆํศ • ະိՄҎ༻ .Package(url: “url”, branch: “dev”) ိࢦఆ branch • ໵ՄҎ༻ .Package(url: “url”, revision: “1234567890123456789012345678901234567890”) ိࢦఆ commit • ။ᒾҰ revision ੋෆੋ40ݸࣈత hash
  6. ᩋ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 • ׬શෆᜦఆɼᔒࣄෆཁ༻