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
Software Architecture
hschwentner
6
2.3k
Ktorで簡単AIアプリケーション
tsukakei
0
110
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
330
Blazing Fast UI Development with Compose Hot Reload (droidcon London 2025)
zsmb
0
330
contribution to astral-sh/uv
shunsock
0
550
Go言語はstack overflowの夢を見るか?
logica0419
0
640
Google Opalで使える37のライブラリ
mickey_kubo
3
150
3年ぶりにコードを書いた元CTOが Claude Codeと30分でMVPを作った話
maikokojima
0
660
What's new in Spring Modulith?
olivergierke
1
170
実践Claude Code:20の失敗から学ぶAIペアプログラミング
takedatakashi
18
9k
Devoxx BE - Local Development in the AI Era
kdubois
0
150
AkarengaLT vol.38
hashimoto_kei
1
130
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.7k
Git: the NoSQL Database
bkeepers
PRO
431
66k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.7k
Embracing the Ebb and Flow
colly
88
4.9k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Raft: Consensus for Rubyists
vanstee
140
7.2k
The Illustrated Children's Guide to Kubernetes
chrisshort
49
51k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
2.9k
Done Done
chrislema
185
16k
Visualization
eitanlees
150
16k
Faster Mobile Websites
deanohume
310
31k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.2k
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 ご清聴ありがとうございました。