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 Lightning Talk on Guru SP - May 2022
Search
bezelga
May 31, 2022
Technology
130
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
240
Clean Architecture on Rails - RubyConf Brasil 2015
bezelga
10
940
Clean Architecture in Ruby - Tropical Ruby 2015
bezelga
5
1.3k
Other Decks in Technology
See All in Technology
HQ駆動開発で最高のAI-Contextを作ろう
sansantech
PRO
1
120
AIコーディングはじめました
miso
0
170
Sizing, Benchmarking and Performance Tuning Apache Flink Clusters
rmetzger
0
150
令和の今、あらためて IAM を考える。アクセスキーを「無くせない現実」との向き合い方
kazzpapa3
0
590
Gifu WordPress Meetup #200 に向けて、私たちには何ができるだろうか?/ 2026-11-07 Gifu WordPress Meetup
torounit
0
250
SREのためのFinOps入門
muziyoshiz
2
1.2k
Cloudflareの向き先
chimame
1
250
An Introduction to Context Ontology Accelerator (teaching AI agents what your data means)
inariku
PRO
1
200
狙われているAPIの脆弱性!今こそ手をつけるべき根本的な対策とは?
nagix
0
110
[dbts2026]数十PBの超巨大データ×AI活用を支えるSnowflakeの実力〜大規模環境におけるアーキテクチャと運用のリアル〜
y_matsubara
0
130
SSFの現在地 ― CAEP/RISCからAI Identityへ
oidfj
0
390
LLM 基盤と kagent v0 を全部 k8s に入れてみた / Deploy both LLM and kagent v0 in k8s
kota2and3kan
0
110
Featured
See All Featured
Balancing Empowerment & Direction
lara
6
1.4k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
460
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Unsuck your backbone
ammeep
672
58k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Between Models and Reality
mayunak
4
570
Fireside Chat
paigeccino
43
4.1k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
For a Future-Friendly Web
brad_frost
184
11k
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 🤗