2018-03-01から1ヶ月間の記事一覧

【WIP】弱参照(docs/weak.rst) 翻訳

出典 https://github.com/apple/swift/blob/3cbabfd196d3be8d01e97cacef71f41e9c594f1d/docs/weak.rst 弱参照 要約:本書では、他の言語での様々な設計を含む弱参照の一般的な概念について説明し、標準ライブラリで利用できるいくつかの新しいコア言語機能と…

include/swift/Driver コードリーディング(全体)

概要 https://github.com/apple/swift/tree/c309fb2620b030a722741171baee4dfec5017d58/include/swift/Driver 概要 Action.h Compilation.h DependencyGraph.h Driver.h OutputInfo::Mode Driver Driver::DriverKind FrontendUtil.h Job.h OutputFileMap.h P…

include/swift/Frontend コードリーディング(全体)

概要 swift/include/swift/Frontend at 4b727e5813246d4029e7c4269bba317db9b012d3 · apple/swift · GitHub 概要 ArgsToFrontendInputsConverter.h ArgsToFrontendOptionsConverter.h ArgsToFrontendOutputsConverter.h DiagnosticVerifier.h Frontend.h Com…

lib/Frontend コードリーディング(全体)

概要 swift/lib/Frontend at master · apple/swift · GitHub 概要 ArgsToFrontendInputsConverter.cpp ArgsToFrontendOptionsConverter.cpp ArgsToFrontendOutputsConverter.cpp CompilerInvocation.cpp DiagnosticVerifier.cpp Frontend.cpp CompilerInstan…

(discord/swift/2018/03/12/0) Swift IRGenがcoroutineをサポートした件について

概要 discord ios dev #swift 2018/03/12 Swift IRGenがcoroutineをサポートした log omochimetaru - 03/12 12:47 github.com コルーチンの下回り進んでた koher - 03/12 01:04 コルーチンって正式な Proposal になってないけど、表面的なシンタックスは別と…

apple/swift - include/swift/AST コードリーディング(全体)

概要 swift/include/swift/AST at c309fb2620b030a722741171baee4dfec5017d58 · apple/swift · GitHub 概要 AST.h ASTContext.h AllocationArena KnownFoundationEntity ASTContext ASTMangler.h ASTNode.h ASTPrinter.h ASTScope.h ASTVisitor.h ASTWalker.…

include/swift/ClangImporter コードリーディング(全体)

概要 swift/include/swift/ClangImporter at 4b727e5813246d4029e7c4269bba317db9b012d3 · apple/swift · GitHub 概要 BuiltinMappedTypes.def ClangImporter.h SWIFT_MAX_IMPORTED_SIMD_ELEMENTS ClangTypeKind ClangImporter super class friend class cre…

lib/ClangImporter コードリーディング(全体)

概要 swift/lib/ClangImporter at master · apple/swift · GitHub 概要 CFDatabase.def CFTypeInfo.h CFTypeInfo.cpp CMakeLists.txt ClangAdapter.h ClangAdapter.cpp ClangDiagnosticConsumer.h ClangDiagnosticConsumer.cpp ClangImporter.cpp create Cla…

Optionalのオーバーライドの挙動の検証

概要 moaible-swift-memo.hateblo.jp もし親が Int で 子が Int? ならオーバライドできるので、 法則が乱れてるね、という話です ということで今回の検証としてはOptionalのオーバーライドの挙動、 Arrayのオーバーライドの挙動を確認していきます Optional…

(discord/swift/2018/03/02/0) SwiftのOptionalが絡んだoverrideの仕様が乱れてる件について

概要 discord ios dev #swift 2018/03/02-03 SwiftのOptionalが絡んだoverrideの仕様が乱れてる件について log tarunon - 2018/03/02 class My { func get() -> Int?? { return 1 } } class MyMy: My { override func get() -> Int? { return 2 } } MyMy().g…

(discord/swift/2018/03/09/0) swift標準ライブラリがwindowsでビルド可能について

概要 discord ios dev #swift 2018/03/09 swift標準ライブラリがwindowsでビルド可能になった log omochimetaru - 03/09 12:02 forums.swift.org Swift Forums Unit Tests on Windows (Windows State Part II) The standard library and the compiler is now…

(discord/swift/2018/03/09/0) SwiftPackageManagerのコミット権限について

概要 discord ios dev #swift 2018/03/09 Swift Package Managerのコミット権について log giginet - 3/9 13:59 この前SPMにだしたPR、LGTMされたけど、この人はコミッターではないw? @ikesyo github.com Motivation I'd like to test generated Xcode Pro…

(discord/swift/2018/03/09/0) swift-ast-explorerに追加されたコードとの比較機能

概要 discord ios dev #swift 2018/03/09 libsyntaxに追加されたコードとの比較機能 github.com log Kishikawa Katsumi - 3/9 15:54 Swift AST Explorer ^ ちょっとパワーアップして、libSyntaxの出力と元のソースコードの対応がわかる機能をつけた。 libSyn…

ReactorKit/ReactorKit コードレビュー1 (Reactor&View)

概要 github.com RxSwiftを使ったアーキテクチャを構築してくれる基盤となるフレームワーク 導入 cocoapods pod 'ReactorKit' pod 'RxSwift', '~> 4.0.0' pod 'RxCocoa', '~> 4.0.0' carthage github 'ReactorKit' github 'RxSwift', '~> 4.0.0' github 'RxC…

(discord/swift/2018/03/08/0) concurrentMapの実装について

概要 discord ios dev #swift 2018/03/08-09 concurrentMapの実装について log norio_nomura - 3/8 09:09 talk.objc.io に出てきたconcurrentMap extension Array { func concurrentMap<B>(_ transform: @escaping (Element) -> B) -> [B] { var result = Array<B?></b?></b>…

(discord/swift/2018/03/05/0) extension時のclass->protocol、protocol->classのケースに置けるwhereの挙動

概要 discord ios dev #swift 2018/03/05 classのextension時 ( Clazz=クラス, Proto=プロトコル ) extension Proto where Self : Clazz {}はイケる extension Clazz where Self : Proto {}はダメという話 log omochimetaru - 3/5 12:33 protocol AppViewCon…

Swiftのポインタの変換について試す

概要 moaible-swift-memo.hateblo.jp SwiftのポインタにおいてUnsafeMutablePointerはUnsafePointerとして関数の引数に渡すことができる これは暗黙のアップキャストによるものらしい これだけ見た単純な理解だとMutableなポインタはImmutableなポインタ型と…

(discord/swift/2017/03/21/0) fileprivateの仕様について

概要 discord ios dev #swift 2017/03/21 log omochimetaru - 2017/03/21 こっちにも貼っとくか swift-evolution/0159-fix-private-access-levels.md at master · apple/swift-evolution · GitHub mono - 2017/03/21 これは僕もfileprivate導入しっくり来て…

(discord/swift/2018/03/06/1) -remove-runtime-assertsフラグ

概要 discord ios dev #swift 2018/03/06 log norio_nomura - 3/6 11:08 Xcode 9.3 beta 4で-Ouncheckedが無くなって-remove-runtime-assertsってのが出来た? omochimetaru - 3/6 11:08 ほほう norio_nomura - 3/6 11:09 SWIFT_DISABLE_SAFETY_CHECKS=YESで…

(discord/swift/2018/03/06/0) SwiftのUnsafeMutablePointerからUnsafePointer型の変換について

概要 discord ios dev #swift 2018/03/06-07 Swiftのポインタの変換に関する話題 log koher - 3/6 23:58 ↓の UnsafeMutablePointer を UnsafePointer 型の引数に渡せるのってなんでなんでしたっけ? var a = 42 let p = UnsafeMutablePointer(&a) func foo(_…