Slide 1

Slide 1 text

VALU ʹ͓͚Δ Slack bot ׆༻ज़ / Slack bot usages with swift in VALU Inc. ʔ ࣾ಺Λָ͘͢͠ΔࢼΈͱͦͷ࣮૷ ʔ VALU LTD. Thai Night #1

Slide 2

Slide 2 text

VALU × Slack

Slide 3

Slide 3 text

SlackPet

Slide 4

Slide 4 text

SlackPet - ػೳ •ѫࡰ

Slide 5

Slide 5 text

SlackPet - ػೳ •ѫࡰ •GitHub Issues ௥Ճ

Slide 6

Slide 6 text

SlackPet - ػೳ •ѫࡰ •GitHub Issues ௥Ճ •Bitrise Ϗϧυ

Slide 7

Slide 7 text

SlackPet - ػೳ •ѫࡰ •GitHub Issues ௥Ճ •Bitrise Ϗϧυ •Emoji ࡞੒

Slide 8

Slide 8 text

Emoji

Slide 9

Slide 9 text

VALU ʹ͓͚Δ Slack emoji ࣄ৘

Slide 10

Slide 10 text

ϦϦʔεͨ͠Α

Slide 11

Slide 11 text

͓౔࢈ͩΑ

Slide 12

Slide 12 text

ͳͭ΍͢Έ

Slide 13

Slide 13 text

͓େࣄʹ

Slide 14

Slide 14 text

ษڧ͢ΔΑ

Slide 15

Slide 15 text

SlackPet - ػೳ •ѫࡰ •GitHub Issues ௥Ճ •Bitrise Ϗϧυ •Emoji ࡞੒

Slide 16

Slide 16 text

Live coding

Slide 17

Slide 17 text

Live EMOJIing

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

ֆจࣈδΣωϨʔλʔ

Slide 20

Slide 20 text

emoji-gen / libemoji

Slide 21

Slide 21 text

google / skia

Slide 22

Slide 22 text

SlackPet

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

SlackPet SlackPet / Tests Sources Package.swift

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

emoji-gen / libemoji

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

C++

Slide 31

Slide 31 text

Swift C++

Slide 32

Slide 32 text

Swift C++

Slide 33

Slide 33 text

Swift C

Slide 34

Slide 34 text

C Linkage libhello / hello.h include / hello.cpp https://github.com/YutoMizutani/SwiftPMExamples/tree/master/SwiftCallCpp/CLinkage

Slide 35

Slide 35 text

libhello hello.h hello.cpp

Slide 36

Slide 36 text

hello.h hello.cpp

Slide 37

Slide 37 text

hello.h hello.cpp

Slide 38

Slide 38 text

hello.h hello.cpp

Slide 39

Slide 39 text

hello.h hello.cpp

Slide 40

Slide 40 text

hello.h hello.cpp

Slide 41

Slide 41 text

hello.h main.swift

Slide 42

Slide 42 text

hello.h main.swift

Slide 43

Slide 43 text

hello.h main.swift

Slide 44

Slide 44 text

hello.h main.swift Hello, world!

Slide 45

Slide 45 text

Swift C

Slide 46

Slide 46 text

Swift C

Slide 47

Slide 47 text

emoji-gen / libemoji

Slide 48

Slide 48 text

emoji-gen / libemoji

Slide 49

Slide 49 text

emoji-gen / libemoji externals

Slide 50

Slide 50 text

Swift C

Slide 51

Slide 51 text

Swift C

Slide 52

Slide 52 text

Swift C

Slide 53

Slide 53 text

Swift C

Slide 54

Slide 54 text

Swift C

Slide 55

Slide 55 text

Swift C

Slide 56

Slide 56 text

Ͳ͏ղܾͨ͠ͷ͔

Slide 57

Slide 57 text

pvieito / PythonKit

Slide 58

Slide 58 text

Swift Python

Slide 59

Slide 59 text

emoji-gen

Slide 60

Slide 60 text

emoji-gen

Slide 61

Slide 61 text

emoji-gen / emojilib

Slide 62

Slide 62 text

ଞͷΞϓϩʔν

Slide 63

Slide 63 text

Xcode + Objective-C++

Slide 64

Slide 64 text

CMake

Slide 65

Slide 65 text

Kitware / CMake / Tests / SwiftMix

Slide 66

Slide 66 text

Binary Frameworks

Slide 67

Slide 67 text

XCFrameworks https://developer.apple.com/videos/play/wwdc2019/416/

Slide 68

Slide 68 text

XCFrameworks https://developer.apple.com/videos/play/wwdc2019/416/

Slide 69

Slide 69 text

Binary Frameworks in Swift

Slide 70

Slide 70 text

Binary Frameworks in Swift

Slide 71

Slide 71 text

Binary Frameworks in Swift

Slide 72

Slide 72 text

Conclusion •VALU Ͱ͸ ֆจࣈ Λ׆༻͍ͯ͠ΔΑ! •SwiftPM Ͱ͸ C++ in C++ ͸࣮ݱͰ͖ͳ͍ •XCFramework Λ࢖͑͹ ΋͔ͨ͠͠Β...?

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

References • apple/swift-package-manager - GitHub • google/skia - GitHub • emoji-gen/emojilib - GitHub • emoji-gen/libemoji - GitHub • Kitware/CMake - GitHub • YutoMizutani/SlackPet - GitHub • YutoMizutani/SwiftPMExamples - GitHub

Slide 75

Slide 75 text

References • Adopting Swift Packages in Xcode - WWDC 2019 - Videos • Binary Frameworks in Swift - WWDC 2019 - Videos • ֆจࣈδΣωϨʔλʔ