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
Rust Lightning Talk on Guru SP - May 2022
Search
bezelga
May 31, 2022
Technology
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rust Lightning Talk on Guru SP - May 2022
meu canal no youtube sobre Rust:
https://www.youtube.com/channel/UCxsQynk4GzoNmFZ3vDXZhtQ
bezelga
May 31, 2022
More Decks by bezelga
See All by bezelga
Clean Architecture - Arena TOTVS 2015
bezelga
1
230
Clean Architecture on Rails - RubyConf Brasil 2015
bezelga
10
930
Clean Architecture in Ruby - Tropical Ruby 2015
bezelga
5
1.2k
Other Decks in Technology
See All in Technology
AI時代こそ、スケールしないことをしよう -「作る人」から「なぜ作るか」を考える人へ / Do Things That Don't Scale in the AI Era — From How to Why
kaminashi
1
110
AIツールを導入しても生産性はあがらない? カオナビが直面した 3つの壁と乗り越え方。/ Overcoming 3 Barriers to AI-Driven Productivity at kaonavi
kaonavi
0
210
AIエージェントがあれば技術書なんてすぐ書けるでしょ→無理でした
watany
3
310
OPENLOGI Company Profile for engineer
hr01
1
75k
「守りたい体験」を渡すだけで E2E を生成させられるようになった話
hinac0
2
1k
発表と総括 / Presentations and Summary
ks91
PRO
0
190
AI時代におけるエンジニアの新たな役割──FDEとクオリアの探求/登壇資料(戸井田 裕貴)
hacobu
PRO
0
330
20260720_クラウド女子会×PyLadiesTokyoコラボ Amazon Bedrock ハンズオン用資料
yuuka51
2
110
OpenTelemetryにおけるGoのゼロコード・コンパイル時計装について #fukuokago
quiver
0
260
壊して学ぶAWS CDK: そのcdk deployで消えるもの、残るもの
k_adachi_01
1
490
AI時代の開発生産性を捉え直す — 経営と現場をつなぐ「開発組織のオブザーバビリティ」— / AI Dev Ex Conference 2026
tkyowa
1
1.4k
「休む」重要さ
smt7174
6
1.6k
Featured
See All Featured
Balancing Empowerment & Direction
lara
6
1.2k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
Paper Plane (Part 1)
katiecoart
PRO
1
9.8k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.9k
The Curious Case for Waylosing
cassininazir
1
440
Optimizing for Happiness
mojombo
378
71k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.7k
Being A Developer After 40
akosma
91
590k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Transcript
Rust Lightning Talk! ⚡ Fabiano Beselga @fbzga 🦜
Holy Crab! 🦀 1. Preciso confessar que estou apaixonado 🥰
2. Why Memory management in Rust is so cool 😎 3. Assinatura de métodos revelam muita coisa 4. Parsing JSON in a typed way
Previamente co-founder & CTO da magnetis.com.br Fabiano Beselga @fbzga 🦜
None
Atualmente 🍺 na Alemanha 🇩🇪 tomando cerveja de café da
manhã
None
@Kaia Health Internal Platform • CLI in Rust • Backend
Ruby • Terraform, Kubernetes, Helm
Estoy apaixonado, esse amor é tão grande ii ii 🎵🥰
None
🧡 Rust há vários anos é a linguagem favorita dos
na pesquisa do Stack Overflow
None
None
Memory management 🦀
Memory management styles • Manually allocate / free memory (seg
fault / double free) • Garbage Collector (Ruby, Python, Golang, Java, Erlang, c) • Ownership / Borrowing (Rust only as far as I know)
Rust brings to language design and compile time the memory
management By using Ownership and Borrowing
Ownership Rules 1. Each value in Rust is owned by
variable. 2. When the owner goes out of scope, the value will be deallocated. 3. There can be Only ONE owner at a time.
1. Each value in rust is owned by a variable
2. When the owner goes out of scope the value
will deallocated
2. When the owner goes out of scope the value
will deallocated
3. There can only one owner at a time
This avoids double free in compile time 2. When the
owner goes out of scope the value will deallocated
Chamando outras funções:
Quiz, qual o erro?
🤔 Como faz para passar uma variável para uma função
e ainda continuar usando ela na main?
Borrowing
None
None
Imutável por padrão
None
Function declaration help you to know the interface 🦀
Ruby on Rails: Qual o retorno dessa função?
None
Ruby on Rails e o # fi nd_by ?
None
None
Parseando json com Serde 🦀
None
None
None
Using serde_json to fetch data from GitHub API
None
None
Holy Crab! 🦀 🎥 bit.ly/holy-crab @fbzga 🦜 Meu novo canal
no Youtube! Like e subscribe 🤗