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 - Ruby 風シンタックスな静的言語の紹介 - (LT 版)
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Pine Mizune
July 15, 2015
Programming
0
89
Crystal - Ruby 風シンタックスな静的言語の紹介 - (LT 版)
渋谷.rb[:20150715] で発表した資料です。
https://shibuyarb.doorkeeper.jp/events/28109
Pine Mizune
July 15, 2015
Tweet
Share
More Decks by Pine Mizune
See All by Pine Mizune
多言語対応と絵文字ジェネレーター / i18n of Emoji Generator
pine
0
850
C++ 製グラフィックライブラリ Skia の紹介 / Introduction to the graphics library Skia written by C++
pine
0
1.9k
asyncio + aiohttp で作るウェブサービス / How to develop a web service with asyncio and aiohttp
pine
0
680
Lerna による明示的疎結合アーキテクチャ
pine
1
660
CircleCI 2.0 x JavaScript
pine
3
560
Perl 卒業式
pine
0
360
Android Studio の気になる warnings を抑制する方法まとめ
pine
0
510
Emoji Generator meets Browser Extensions
pine
1
3k
近年の OSS 開発における CI 選択のベストプラクティス
pine
3
4.5k
Other Decks in Programming
See All in Programming
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
5
800
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
210
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
470
組織で育むオブザーバビリティ
ryota_hnk
0
180
CSC307 Lecture 08
javiergs
PRO
0
670
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
1.3k
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
120
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
Raku Raku Notion 20260128
hareyakayuruyaka
0
370
CSC307 Lecture 06
javiergs
PRO
0
690
Oxlint JS plugins
kazupon
1
1k
並行開発のためのコードレビュー
miyukiw
0
1.2k
Featured
See All Featured
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.6k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
440
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
200
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
110
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
280
Transcript
Crystal Ruby 風シンタックスな静的言語の紹介 水音氷音 Mobile Factory, Inc
あなたはだれ? • Mobile Factory, Inc. • ソーシャルアプリつくってます –Swift / Perl
Crystal とは? 3 Ruby ◦ 高い表現力 ◦ 高い生産性 × 遅い
C 言語 ◦ 非常に高速 × 表現力が乏しい × 生産性が低い Crystal 同時に実現
Crystal のコンセプト 4 1. Ruby 風シンタックス 2. 型推論による静的型付け 3. C
言語との容易なバインディング 4. コンパイル時評価によるコード生成 5. 高速なネイティブコード出力
Ruby syntax 100.times do |x| if x % 15 ==
0 puts ”fizzbuzz” elsif x % 3 == 0 puts ”fizz” elsif x % 5 == 0 puts “baz” else puts x end end 5 Crystal syntax 100.times do |x| if x % 15 == 0 puts ”fizzbuzz” elsif x % 3 == 0 puts ”fizz” elsif x % 5 == 0 puts “baz” else puts x end end
Crystal syntax ≒ Ruby syntax 6 • ほとんど同じだって Matz も言ってる!!
出展: https://twitter.com/yukihiro_matz/status/610842781091672064
Crystal の使い所 7 • 速度が求められる場所 • C / C++ からの段階的移植
• Ruby エンジニアが多い環境 – 新しく Golang 覚えるより...
• セルフホスティングコンパイラ – ある仕様 FIX & 安定動作するフェーズ • 最新版: v0.7.4
(2015/06/24) • Travis CI 公式サポート (2015/06/30~) 8 開発進捗
• 東京 Crystal 勉強会 #1 in 五反田 • 会場: Mobile
Factory, Inc • http://j.mp/crystal-jp ... connpass • http://j.mp/crystal-jp-slack ... Slack 9 [宣伝] Crystal 勉強会開催決定
Fin.