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
Pine Mizune
July 15, 2015
Programming
0
88
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
820
C++ 製グラフィックライブラリ Skia の紹介 / Introduction to the graphics library Skia written by C++
pine
0
1.8k
asyncio + aiohttp で作るウェブサービス / How to develop a web service with asyncio and aiohttp
pine
0
670
Lerna による明示的疎結合アーキテクチャ
pine
1
640
CircleCI 2.0 x JavaScript
pine
3
550
Perl 卒業式
pine
0
340
Android Studio の気になる warnings を抑制する方法まとめ
pine
0
500
Emoji Generator meets Browser Extensions
pine
1
3k
近年の OSS 開発における CI 選択のベストプラクティス
pine
3
4.5k
Other Decks in Programming
See All in Programming
他言語経験者が Golangci-lint を最初のコーディングメンターにした話 / How Golangci-lint Became My First Coding Mentor: A Story from a Polyglot Programmer
uma31
0
430
CSC305 Lecture 08
javiergs
PRO
0
280
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
500
Amazon Verified Permissions実践入門 〜Cedar活用とAppSync導入事例/Practical Introduction to Amazon Verified Permissions
fossamagna
2
100
開発組織の戦略的な役割と 設計スキル向上の効果
masuda220
PRO
9
1.6k
GC25 Recap: The Code You Reviewed is Not the Code You Built / #newt_gophercon_tour
mazrean
0
110
AI 駆動開発におけるコミュニティと AWS CDK の価値
konokenj
5
260
alien-signals と自作 OSS で実現する フレームワーク非依存な ロジック共通化の探求 / Exploring Framework-Agnostic Logic Sharing with alien-signals and Custom OSS
aoseyuu
2
660
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
490
NIKKEI Tech Talk#38
cipepser
0
250
contribution to astral-sh/uv
shunsock
0
540
One Enishi After Another
snoozer05
PRO
0
160
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
40
2.1k
How to Think Like a Performance Engineer
csswizardry
27
2.1k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
22k
Keith and Marios Guide to Fast Websites
keithpitt
411
23k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
10
890
The Invisible Side of Design
smashingmag
302
51k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3k
Fireside Chat
paigeccino
41
3.7k
The Cost Of JavaScript in 2023
addyosmani
55
9.1k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
190
55k
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.