Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Rustの好きな3つの点
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
senk
February 25, 2021
Programming
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rustの好きな3つの点
RustLT会において発表したRustの好きなポイントについて語るLT資料です。
senk
February 25, 2021
Other Decks in Programming
See All in Programming
Next.js: The final boss of Web Performance
guaca
0
260
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
370
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
260
IBM Bob でAI駆動開発『QC-Playbook』
ichirokano2
0
110
phperだってパンチカードでコーディングしたい
o0h
PRO
0
330
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.6k
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
残高管理から台帳サービスへの進化
artoy
1
200
AmebaブログはKMPから卒業します
kmars0605
0
190
R8 の設定見直しでアプリサイズ削減
andpad
0
220
Featured
See All Featured
Accessibility Awareness
sabderemane
1
250
The Curious Case for Waylosing
cassininazir
1
570
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
330
Side Projects
sachag
456
43k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
820
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
570
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
600
WCS-LA-2024
lcolladotor
0
890
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
Transcript
Rust LT3 senk
⾃⼰紹介 法政大学で暗号研究してるM1。 競技プログラミングや、Zenn・Qiitaで暗号関 連の記事書いています。 プログラミングの他、デザインとかイラストも 好きでやっている。 【Twitter】 @enkanakoi 【最近あったこと】 昨日、修論中間発表でした
Senk
テーマは… Rustを褒め称えるだけ
エラー処理 • とりあえず失敗する可能性があったら、 OptionやResultに包んでしまう。Nullを型レ ベルで扱えるのが強力すぎる。 配列外参照とオーバーフローを絶対に許せなくなった累積和 パーサーでand_thenとmapと…でメソッドチェーンする例 ポジティブに書ける!
cargo サブコマンドと組合わせることで • ビルド • 実⾏ • パッケージ管理 • ユニットテスト
が⾏えるのが凄すぎる…のにrustfixや cargo-edit、clippyで拡張できる贅沢さ。
とりあえず 全⾔語欲し い機能 cargo fmt 魔法のようにコードが整形される。 cargo add & rm
クレートが容易に管理できる。
トレイト implで追加していく書き方が好き(語彙力) その 多すぎる出来ることの例 • 型エイリアスにimpl出来る • 関連定数や関連関数をimpl出来る • トレイトオブジェクトによるポリモーフィズ
ム メソッドチェーン
その他 • 型の暗黙の変換がない • Sizedトレイトを実装していないと渡せ ない&返せない&束縛できない • 式ベース⾔語 • デフォルトで不変
• #[test]とcargo testで⼿軽にテスト!
まとめ • Cargo • エラー処理 • トレイト • テスト、パターンマッチ、 型変換、
etc …. パフォーマンスやスマートポインタによる メモリ管理もある最高の言語!!