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
Crystal in production
Search
y2k2mt
June 21, 2018
Programming
1
520
Crystal in production
y2k2mt
June 21, 2018
Tweet
Share
More Decks by y2k2mt
See All by y2k2mt
luckyframeworkで驚異的なスループットを出した話
y2k2mt
1
310
Other Decks in Programming
See All in Programming
EMこそClaude Codeでコード調査しよう
shibayu36
0
320
Writing Better Go: Lessons from 10 Code Reviews
konradreiche
3
5.7k
When Dependencies Fail: Building Antifragile Applications in a Fragile World
selcukusta
0
110
実践Claude Code:20の失敗から学ぶAIペアプログラミング
takedatakashi
16
6.6k
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
400
iOSでSVG画像を扱う
kishikawakatsumi
0
150
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
130
What's new in Spring Modulith?
olivergierke
1
160
AkarengaLT vol.38
hashimoto_kei
1
110
AI Agent 時代的開發者生存指南
eddie
4
2.1k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
390
Go言語の特性を活かした公式MCP SDKの設計
hond0413
1
440
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Navigating Team Friction
lara
190
15k
4 Signs Your Business is Dying
shpigford
185
22k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.7k
A designer walks into a library…
pauljervisheath
209
24k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
The Illustrated Children's Guide to Kubernetes
chrisshort
49
51k
Reflections from 52 weeks, 52 projects
jeffersonlam
353
21k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
190
55k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
Optimizing for Happiness
mojombo
379
70k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3k
Transcript
© DMM.com LLC Crystal in production 合同会社DMM.com 2018/06/21 東京Crystal勉強会 #6
in 渋谷 角本幸生
© DMM.com LLC 角本幸生 自己紹介 合同会社DMM.com クリプトマイニング事業部 暗号通貨まわりで仕事しています Crystal! Scala/Rust/Elixir/Node/Ruby
etc… Github: https://github.com/y2k2mt/
© DMM.com LLC Crystalへの道 3
© DMM.com LLC Crystalへの道 ・暗号通貨なシステムとか作ろう! ・高い処理能力を出せる素地のある言語を選びたい ・Goなんてどう? 4
© DMM.com LLC Crystalへの道 Goつらい 5 ※個人の見解です
© DMM.com LLC Crystalへの道 6 ・GO_PATH ・グローバルを汚染するネームスペース ・消えるエラーとその引き回し... ( if
err != nil ) ・あれ、map とか fold とかってないんだっけ...
© DMM.com LLC Crystalへの道 7 そうだ、せめて map と flatten があれば...!
© DMM.com LLC Crystalへの道 8 パフォーマンスが出ず、無理ゲーでした
© DMM.com LLC Crystalへの道 9 ・Scalaはどう? ・不慣れな関数型言語の壁 ・なにかいい言語はないか... Crystal !!!
© DMM.com LLC Crystalをつかってみて 10
© DMM.com LLC Crystalをつかってみて ・リファレンス見なくても何となく書けるのはまさにRuby! ・module や include の仕組みも同じ! ・勿論
map も fold もある! 11
© DMM.com LLC Crystalをつかってみて ・エコシステムが結構充実している ・Redis などとも連携に問題なし! → Elasticacheの暗号化通信だけ対応できなかったので作った 12
© DMM.com LLC Crystalをつかってみて crystal-redis にPR送ったらマージされたよ ! https://github.com/stefanwille/crystal-redis/pull/51 13
© DMM.com LLC Crystalをつかってみて ・ APIは Kemal が重たかったので router.cr を使う
14
© DMM.com LLC Crystalをつかってみて ・マイニングプールの報酬計算 15 (参考 : https://bitcoil.co.il/pool_analysis.pdf )
© DMM.com LLC 結論 Crystal よい! ので、みんなでCrystalを使おう
© DMM.com LLC ご清聴ありがとうございました。