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
0
85
Rust Lightning Talk on Guru SP - May 2022
meu canal no youtube sobre Rust:
https://www.youtube.com/channel/UCxsQynk4GzoNmFZ3vDXZhtQ
bezelga
May 31, 2022
Tweet
Share
More Decks by bezelga
See All by bezelga
Clean Architecture - Arena TOTVS 2015
bezelga
1
190
Clean Architecture on Rails - RubyConf Brasil 2015
bezelga
10
890
Clean Architecture in Ruby - Tropical Ruby 2015
bezelga
5
1k
Other Decks in Technology
See All in Technology
APIとはなにか
mikanichinose
0
100
社内イベント管理システムを1週間でAKSからACAに移行した話し
shingo_kawahara
0
190
ガバメントクラウドのセキュリティ対策事例について
fujisawaryohei
0
560
フロントエンド設計にモブ設計を導入してみた / 20241212_cloudsign_TechFrontMeetup
bengo4com
0
1.9k
小学3年生夏休みの自由研究「夏休みに Copilot で遊んでみた」
taichinakamura
0
170
watsonx.ai Dojo #5 ファインチューニングとInstructLAB
oniak3ibm
PRO
0
170
AWS re:Invent 2024で発表された コードを書く開発者向け機能について
maruto
0
200
AI時代のデータセンターネットワーク
lycorptech_jp
PRO
1
290
継続的にアウトカムを生み出し ビジネスにつなげる、 戦略と運営に対するタイミーのQUEST(探求)
zigorou
0
630
re:Invent をおうちで楽しんでみた ~CloudWatch のオブザーバビリティ機能がスゴい!/ Enjoyed AWS re:Invent from Home and CloudWatch Observability Feature is Amazing!
yuj1osm
0
130
なぜCodeceptJSを選んだか
goataka
0
160
re:Invent 2024 Innovation Talks(NET201)で語られた大切なこと
shotashiratori
0
320
Featured
See All Featured
Bash Introduction
62gerente
608
210k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.3k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Being A Developer After 40
akosma
87
590k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.2k
Statistics for Hackers
jakevdp
796
220k
Typedesign – Prime Four
hannesfritz
40
2.4k
4 Signs Your Business is Dying
shpigford
181
21k
Fireside Chat
paigeccino
34
3.1k
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 🤗