Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
EN
Uploaded by
Chris Birchall
4,080 views
Rust 超入門
Rust
Technology
◦
Read more
11
Save
Share
Embed
Embed presentation
Download
Downloaded 18 times
1
/ 13
2
/ 13
Most read
3
/ 13
4
/ 13
5
/ 13
6
/ 13
7
/ 13
8
/ 13
9
/ 13
10
/ 13
11
/ 13
12
/ 13
13
/ 13
More Related Content
PDF
社内Lt
by
Keiichi Kayama
PDF
ZK finder
by
Takahiro Otani
PDF
Ruby
by
Shintaro Abe
PDF
20130622 r pi-ug-osc13ng
by
Akira Ouchi
PDF
第四回 #渋谷java オープニング
by
Kazuhiro Serizawa
PDF
20220111 SoftwareDesign #32 kitazaki
by
Ayachika Kitazaki
PDF
Grid
by
辰朗 屋部
PDF
第87回PHP勉強会 LT 知って得するかもしれないテキスト処理コマンドのお話
by
Ryo Shibayama
社内Lt
by
Keiichi Kayama
ZK finder
by
Takahiro Otani
Ruby
by
Shintaro Abe
20130622 r pi-ug-osc13ng
by
Akira Ouchi
第四回 #渋谷java オープニング
by
Kazuhiro Serizawa
20220111 SoftwareDesign #32 kitazaki
by
Ayachika Kitazaki
Grid
by
辰朗 屋部
第87回PHP勉強会 LT 知って得するかもしれないテキスト処理コマンドのお話
by
Ryo Shibayama
What's hot
PDF
Rk10trailer
by
mseki
PDF
レガシーシステムのDBマイグレーションし始めた話
by
nekogeruge_987
PDF
Rubyで連結リスト使うためのgemを作った(tsukuba.rb版)
by
Sho Hosoda
PDF
Sbブレスト会議 4 30
by
Yasuhiro Takagi
PPT
Hokkaido.pm.casual #03 slide
by
Tohru Shinohara
KEY
Aizu lt tokyo_luxion
by
Tomoaki Tamura
Rk10trailer
by
mseki
レガシーシステムのDBマイグレーションし始めた話
by
nekogeruge_987
Rubyで連結リスト使うためのgemを作った(tsukuba.rb版)
by
Sho Hosoda
Sbブレスト会議 4 30
by
Yasuhiro Takagi
Hokkaido.pm.casual #03 slide
by
Tohru Shinohara
Aizu lt tokyo_luxion
by
Tomoaki Tamura
Similar to Rust 超入門
PDF
rust primer
by
You&I
PPTX
Rust + web assemblyやってみた
by
tak
PDF
Rust samurai#01
by
Noritada Shimizu
PPTX
Rustを支える技術
by
Keisuke Umezawa
PPTX
Rustの最初の難関を超えるための第一の技
by
Masuda Tomoaki
PPTX
std::pin の勘所
by
Hiroaki Goto
PDF
RustでWebAssembly
by
ceres-inc
PDF
Rustのタスクモデルについて
by
zigen
PDF
Rustを勉強してみた!
by
ssmylh
PDF
シグネチャで始めるRustプログラミング - Superteam Japan Developer Event
by
K Kinzal
PDF
Rust-DPDK
by
Masaru Oki
PDF
Rust-DPDK
by
Masaru Oki
PDF
Solanaで始めるRustプログラミング - Superteam Japan Developer Event
by
K Kinzal
PDF
Rustの所有権について
by
keisunagawa
PDF
20210830 rust入学式
by
耕二 阿部
PDF
Node-REDについて
by
Atsushi Kojo
PDF
TechDo Goハンズオン#3
by
privatemy
PDF
Patterns and Matching in Rust
by
DaichiMukai1
PDF
Rust Error Handling
by
ShunsukeNakamura17
PDF
Move言語とステーブルコイン
by
Shigeichiro Yamasaki
rust primer
by
You&I
Rust + web assemblyやってみた
by
tak
Rust samurai#01
by
Noritada Shimizu
Rustを支える技術
by
Keisuke Umezawa
Rustの最初の難関を超えるための第一の技
by
Masuda Tomoaki
std::pin の勘所
by
Hiroaki Goto
RustでWebAssembly
by
ceres-inc
Rustのタスクモデルについて
by
zigen
Rustを勉強してみた!
by
ssmylh
シグネチャで始めるRustプログラミング - Superteam Japan Developer Event
by
K Kinzal
Rust-DPDK
by
Masaru Oki
Rust-DPDK
by
Masaru Oki
Solanaで始めるRustプログラミング - Superteam Japan Developer Event
by
K Kinzal
Rustの所有権について
by
keisunagawa
20210830 rust入学式
by
耕二 阿部
Node-REDについて
by
Atsushi Kojo
TechDo Goハンズオン#3
by
privatemy
Patterns and Matching in Rust
by
DaichiMukai1
Rust Error Handling
by
ShunsukeNakamura17
Move言語とステーブルコイン
by
Shigeichiro Yamasaki
More from Chris Birchall
PDF
Scala.js & friends: SCALA ALL THE THINGS
by
Chris Birchall
PDF
Tour of Distributed Systems 3 - Apache Kafka
by
Chris Birchall
PPTX
Tour of distributed systems 2 - Cassandra
by
Chris Birchall
PDF
Guess the Country - Playing with Twitter Streaming API
by
Chris Birchall
PDF
Tour of distributed systems 1 - ZooKeeper
by
Chris Birchall
PDF
ScalaCache: simple caching in Scala
by
Chris Birchall
PDF
Hydra
by
Chris Birchall
PDF
Load testing with gatling
by
Chris Birchall
PDF
Debugging and Testing ES Systems
by
Chris Birchall
PDF
Phone Home: A client-side error collection system
by
Chris Birchall
PDF
Branching Strategies: Feature Branches vs Branch by Abstraction
by
Chris Birchall
Scala.js & friends: SCALA ALL THE THINGS
by
Chris Birchall
Tour of Distributed Systems 3 - Apache Kafka
by
Chris Birchall
Tour of distributed systems 2 - Cassandra
by
Chris Birchall
Guess the Country - Playing with Twitter Streaming API
by
Chris Birchall
Tour of distributed systems 1 - ZooKeeper
by
Chris Birchall
ScalaCache: simple caching in Scala
by
Chris Birchall
Hydra
by
Chris Birchall
Load testing with gatling
by
Chris Birchall
Debugging and Testing ES Systems
by
Chris Birchall
Phone Home: A client-side error collection system
by
Chris Birchall
Branching Strategies: Feature Branches vs Branch by Abstraction
by
Chris Birchall
Rust 超入門
1.
Rust 超入門 Chris
Birchall @ M3 2014/10/28 #learnrust_jp
2.
今日の流れ 19:00〜Rust紹介 19:30〜20:30
ゲームを作ってみよう! 20:30〜成果・感想・質問・雑談 21:00 おしまい
3.
About me ●
Scalaおじさん ● 流行りのGolangが気に入らない ● 本を買ってください(ドヤ manning.com/birchall
4.
Rust ● Mozilla発(2009年頃〜)
● システムプログラミング言語 ○ バイナリにコンパイルされる ○ 速い ○ ポインター ○ GC無し ● 関数型っぽい機能もある ○ パターンマッチ ○ クロージャー ○ Algebraic Data Types ○ 型推論
5.
ドキュメントがすごすぎる件
6.
Hello, world! fn
main() { println!("Hello, world!"); } $ rustc hello.rs $ ./hello Hello, world!
7.
Algebraic Data Types
● タプル ● Struct ● Enum enum Expr { Number(int), Plus(Expr, Expr), Minus(Expr, Expr), Mult(Expr, Expr), Div(Expr, Expr), }
8.
状態/副作用の管理が面白い ● 変数はデフォルトで
immutable let mut a = 5i; ● データの所有という概念がある ○ 作った人が所有者 ○ 所有している物を人に貸すことができる ■ Ex: 関数に渡す時 ○ mutable と immutable な貸し出し ○ コンパイラがルールをチェックする
9.
並列処理 ● Taskをspawnする
● Taskが参照する変数の所有者になる ○ メインスレッドで参照できなくなる ● Channelを使ってTaskとやり取りする ● Futureもある let (tx, rx) = channel(); spawn(proc() { tx.send(" タスクだよーん".to_string()); }); let message = rx.recv(); println!("{}", message);
10.
Crate と Module
● Crate = コンパイルの単位 ○ 1個のCrateをコンパイルして1個のライブラリ又 はプログラムが出来上がる ● 他のCrateに依存できる ● Crate内にModuleを作れる ● Moduleはpublicな関数をexportする mod hello { pub fn print_hello() { println!("Hello, world!"); } }
11.
Cargo ● ビルドツール
● 依存性管理 # Cargo.toml [package] name = "hello" version = "0.0.1" authors = [ "Chris Birchall <c-birchall@m3.com>" ] [[bin]] name = "hello"
12.
気になるとこ、その他 ● traitは型クラスである
● マクロがある ● ポインターがある(こわい) ● Stringが2種類ある ● ScalaのIterateesに近い物がある ○ Iterator, iterator adapter, consumer ● 無限ループ用のキーワードがある(loop)
13.
ゲームを作ってみよう 初級:あっち向いてホイ! 中級:数字推測ゲーム
上級:オセロ 目標 ● ゲームが動く! ● 標準ライブラリを使う ● Cargoを使う。外部dependencyを使う ● Crateとしてパッケージする
Download