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でパケットと戯れる
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
nwiizo
December 22, 2017
400
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rustでパケットと戯れる
nwiizo
December 22, 2017
More Decks by nwiizo
See All by nwiizo
おい、エージェントを使って終わらせろ
nwiizo
3
1.1k
AI時代の「技術的負債」の変質ー概念の終焉と再解釈、エージェントと共に向かう先
nwiizo
2
3.9k
AIで実装は速くなった。なのにプロダクトは速くならない。職能の壁を越えて価値のフローを設計する
nwiizo
10
9k
35分でわかるEffective Platform Engineering
nwiizo
6
1.1k
20分でわかるセキュアAPI
nwiizo
3
460
型は壁、Rustでもバグを直すな、表現できなくせよ
nwiizo
16
2.7k
システムは「動く」だけでは足りない 実装編 - 非機能要件・分散システム・トレードオフをコードで見る
nwiizo
5
780
システムは「動く」だけでは 足りない - 非機能要件・分散システム・トレードオフの基礎
nwiizo
34
12k
アーキテクチャモダナイゼーションとは何か
nwiizo
18
8.6k
Featured
See All Featured
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
460
A Tale of Four Properties
chriscoyier
163
24k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
How to make the Groovebox
asonas
2
2.5k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Designing Experiences People Love
moore
143
24k
How GitHub (no longer) Works
holman
316
150k
Odyssey Design
rkendrick25
PRO
2
860
From π to Pie charts
rasagy
1
390
Typedesign – Prime Four
hannesfritz
42
3.2k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
580
Transcript
None
None
None
None
None
None
No.1 No.4 No.3 No.2
None
No.2
No.2 • • • • • • • • •
No.2 http://rust-lang-ja.org/rust-by-example/index.html
fn main() { println!("Hello World!"); } No.2 src/main.rs
$cargo run Hello World! No.2 src/main.rs
use std::process::Command; fn main() { Command::new("ls") .arg("-l") .arg("-a") .spawn() .expect("ls
command failed to start"); } No.2
use std::net::{TcpListener, TcpStream}; use std::thread; // traits use std::io::Read; use
std::io::Write; fn handle_client(mut stream: TcpStream) { let mut buf; loop { // clear out the buffer so we don't send garbage buf = [0; 512]; let _ = match stream.read(&mut buf) { Err(e) => panic!("Got an error: {}", e), Ok(m) => { if m == 0 { // we've got an EOF break; } m }, }; match stream.write(&buf) { Err(_) => break, Ok(_) => continue, } } } fn main() { let listener = TcpListener::bind("127.0.0.1:8888").unwrap(); for stream in listener.incoming() { match stream { Err(e) => { println!("failed: {}", e) } Ok(stream) => { thread::spawn(move || { handle_client(stream) }); } } } } No.2
None
None
No.3
No.3
No.3 • • • • https://rust-lang-ja.github.io/the-rust-programming- language-ja/1.6/book/crates-and-modules.html
No.3 • • • •
None