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
「Small is Going big」mercari.go#10
Search
taqboz
August 20, 2019
Technology
0
1.5k
「Small is Going big」mercari.go#10
taqboz
August 20, 2019
Tweet
Share
Other Decks in Technology
See All in Technology
Snowflakeの生成AI機能を活用したデータ分析アプリの作成 〜Cortex AnalystとCortex Searchの活用とStreamlitアプリでの利用〜
nayuts
0
290
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
30k
5年目から始める Vue3 サイト改善 #frontendo
tacck
PRO
3
190
テストを軸にした生き残り術
kworkdev
PRO
0
170
ヘブンバーンズレッドのレンダリングパイプライン刷新
gree_tech
PRO
0
550
クラウドセキュリティを支える技術と運用の最前線 / Cutting-edge Technologies and Operations Supporting Cloud Security
yuj1osm
2
270
「何となくテストする」を卒業するためにプロダクトが動く仕組みを理解しよう
kawabeaver
0
170
Nstockの一人目エンジニアが 3年間かけて向き合ってきた セキュリティのこととこれから〜あれから半年〜
yo41sawada
0
200
開発者を支える Internal Developer Portal のイマとコレカラ / To-day and To-morrow of Internal Developer Portals: Supporting Developers
aoto
PRO
1
310
Agile PBL at New Grads Trainings
kawaguti
PRO
1
270
データアナリストからアナリティクスエンジニアになった話
hiyokko_data
2
420
スプリントレトロスペクティブはチーム観察の宝庫? 〜チームの衝突レベルに合わせたアプローチ仮説!〜
electricsatie
1
160
Featured
See All Featured
Building Adaptive Systems
keathley
43
2.7k
Producing Creativity
orderedlist
PRO
347
40k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
How to Ace a Technical Interview
jacobian
279
23k
The Language of Interfaces
destraynor
161
25k
The World Runs on Bad Software
bkeepers
PRO
70
11k
Bash Introduction
62gerente
615
210k
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
Thoughts on Productivity
jonyablonski
70
4.8k
Rails Girls Zürich Keynote
gr2m
95
14k
4 Signs Your Business is Dying
shpigford
184
22k
Transcript
8/20 2019 Mercari.go #10 Small is going big GopherCon2019
TQBOZ 吉⽥ 拓海 @taqboz ⼤学4年⽣ 経営学部 Go歴:6ヶ⽉
実際に参加してみて
もちろん、楽しみにしていましたが、 懸念点が、、、 • Go歴が短く、ついていけるか不安 • 英語を聞き取り続けていけるか不安 • コミニケーションが中⼼なのでは → 英語が不安
⾏く前
話の難易度はセッションによるので、 事前にアジェンダを⾒て⾒るものを 決めておけば⼤丈夫 GopherのコミニティSlackで 情報が流れてくるので、 ある程度は聞き逃しても情報を追える ⾏ったあと
やっぱり英語ができないと難しい けど、 • セッションのときには字幕がある • 割とフランクに接してもらえる • 結構⾃由に過ごせる ただやっぱり⾃分のしたい話をする、聞きたい話を聞くのに不便 様々な機会を取り逃すので英語は⼤事
⾏ったあと
TinyGo
source code Go TinyGo Go SSA LLVM LLVM IR binary
TinyGoについて • LLVMを使ったGoコンパイラ • バイナリファイルのサイズを抑えてビルド • LLVMがWebAssembly対応 → 副産物としてTinyGoも対応 • 現時点でのバージョン:0.7.1
WebAssemblyで試してみる ファイルサイズが約1/20になった WebAssembly goals 「Be fast, efficient, and portable」<- ファイルサイズが⼩さくなるのでロードを⾼速化できる
main.go (Hello, World) Go標準コンパイラ(1.12.7)とTinyGoの⽐較
デメリット / 制限 1. Gotoutineのサポートが完全ではない 2. GCはARMマイクロコントローラー (Cortex-M)のみ対応 3. 使えない標準パッケージが多い(net/http等)
参照:https://tinygo.org/lang-support/stdlib/ 4. mapのキーは⽂字列、整数、ポインタ、 構造体(前記の型で構成されたもののみ)のみ対応
TinyGoについて 主にIoTデバイス、 マイクロコントローラーでの活⽤ 制限があるなかでどこまでできるか 親⼦でデモで実践 by Ron Evans(@deadprogram) Small is
going big: Go on microcontrollers
セッション内でのデモ • Digispark上でLEDの点滅 (8bitプロセッサー & 8KB RAM) • Gopherbot ボタンの押し込み
でLEDの点灯 package main Import ( "machine” "time” ) func main() { led := machine.LED led.Configure(machine.PinConfig{Mode: machine.PinOutput}) for { led.Low() time.Sleep(time.Millisecond * 500) led.High() time.Sleep(time.Millisecond * 500) } }
セッション内でのデモ フライトコントローラー • Arduino Nano 33 IoT • アナログスティック •
ボタン • OLEDディスプレイ net系パッケージは動作しないものの Arduinoチップに組み込まれたWi-Fi チップで動作するインターフェイス をコントリビューターの⽅が実装し たとのこと。
Droneデモ Tello Ryze Drone IP: 192.168.10.1 PORT : 11111 Video
PORT : 8889 Commands & Response Arduino Nano33 IoT UDP I2C JoyStick Button A/O GPIO OLED IP: 192.168.10.2 PC
TinyGo PlayGround https://play.tinygo.org/ マイクロコントローラー持ってない⽅でも 試せるのでこちらで試してみては?
ご清聴ありがとう ございました