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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
940
Clean Architecture in Ruby - Tropical Ruby 2015
bezelga
5
1.2k
Other Decks in Technology
See All in Technology
【CEDEC2026】コードレビュー支援ツール開発から学ぶ:LLMを用いた業務システムの実践的な運用設計と誤出力対策
cygames
PRO
0
800
クラウドセキュリティ入門 ~安全なクラウド利用のための基礎知識~
lhazy
13
13k
LLM・AIエージェントシステムベストプラクティス
shibuiwilliam
6
1.3k
Forza Horizon 6 のテレメトリ機能で 自動運転に使えそうな学習データを集める話
henjin0
0
180
ハーレムエンジニアリング
kazuma777777
0
160
え?フロントエンドエンジニアの ワイがインフラも!?
puku0x
1
590
制約理論(ToC)入門 2026版
recruitengineers
PRO
8
2.3k
MulticaとPi Coding Agentで、小規模OSSを30本同時運用した流れ
eiei114
0
110
オートロックマンションなのに、各部屋は施錠なし!? 攻撃者が組織内ネットワークで大暴れする理由 / The Front Door Is Locked, but the Rooms Are Wide Open: Why Attackers Move Freely Inside Enterprise Networks
nttcom
1
5.9k
MIRU 2026 チュートリアル
keisuke198619
0
920
Data Hubグループ 紹介資料
sansan33
PRO
0
3.2k
今こそ聞きたいソフトウェア設計 ドメイン駆動設計再入門
masuda220
PRO
17
7.4k
Featured
See All Featured
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
760
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Testing 201, or: Great Expectations
jmmastey
46
8.2k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The Cult of Friendly URLs
andyhume
79
7k
Believing is Seeing
oripsolob
1
190
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Un-Boring Meetings
codingconduct
0
390
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
210
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.3k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
290
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
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 🤗