Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

omochimetaru omochi

🏠
Working from home
  • japan
  • tokyo
Block or report user

Report or block omochi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View overload-score.md

slidenumber: true autoscale: true

Swiftのオーバーロード選択のスコア規則12種類

@omochimetaru

わいわいswiftc #16


View start-sil.md

slidenumber: true autoscale: true

SILを読もう

@omochimetaru

SwiftcKaigi #1


自己紹介

View MessageError.swift
import Foundation
public struct MessageError: LocalizedError, CustomStringConvertible {
public var message: String
public init(_ message: String) {
self.message = message
}
public var description: String { message }
View dynamicReplacement.swift
// a.swift
public dynamic func f() {
print("original")
}
// b.swift
import a
@_dynamicReplacement(for: f())
public func f_b() {
View swift-new-rethrows.swift
import Foundation
protocol Iterator {
associatedtype Element
associatedtype Failure: Error
func _next() throws -> Element?
}
extension Iterator {
func next() throws -> Element? { try _next() }
View swiftc-camp-handson.md

slidenumber: true autoscale: true

型推論ハンズオン

@omochimetaru

swiftc合宿 2019/09/28


View sema.md

slidenumber: true autoscale: true

Swiftの型推論

アルゴリズム(1)

@omochimetaru

わいわいswiftc #14

View BSON.swift
import Foundation
public struct BSONError : LocalizedError, CustomStringConvertible {
public var message: String
public init(_ message: String) { self.message = message }
public var description: String { return message }
public var errorDescription: String? { description }
}
public enum BSONBinarySubtypes : UInt8 {
View swift-dynamic-cond-conf.swift
/*
ビルド & 実行
# a.swiftmoduleの生成
$ swiftc -emit-module a.swift
# liba.dylibの生成
$ swiftc -emit-library a.swift
# b.swiftの実行
View swiftc-wasm-status.md

slidenumber: true autoscale: true

最近のSwiftのWASM対応

@omochimetaru

Emscripten & WebAssembly night !! #8


right

You can’t perform that action at this time.