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
82
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
The XZ Backdoor Story
fr0gger
0
3.6k
アプリをリリースできる状態に保ったまま 段階的にリファクタリングするための 戦略と戦術 / Strategies and tactics for incremental refactoring
yanzm
6
1.4k
再考 アクターモデル/ reconsider actor model
ytake
0
360
株式会社EventHub・エンジニア採用資料
eventhub
0
3k
「家族アルバム みてね」における運用管理・ オブザーバビリティの全貌 / Overview of Operation Management and Observability in FamilyAlbum
isaoshimizu
4
160
効果的なオンコール対応と障害対応
ryuichi1208
6
3.1k
社内の学びの場・コミュニティ形成とエンジニア同士のリレーションシップ構築/devreljapan2024
nishiuma
3
290
DevRelの始め方
moongift
PRO
2
390
リアルお遍路+SORACOM IoT
ozk009
1
140
不動産 x AIことはじめ~データの真価を拓くために
estie
0
120
持続可能なソフトウェア開発を支える『GitHub CI/CD実践ガイド』
tmknom
8
1.4k
チームビルディングは"感性"で向き合おう / Team Building with Awareness
kohzas
0
260
Featured
See All Featured
Infographics Made Easy
chrislema
239
18k
Product Roadmaps are Hard
iamctodd
PRO
48
10k
Building an army of robots
kneath
302
42k
Writing Fast Ruby
sferik
623
60k
No one is an island. Learnings from fostering a developers community.
thoeni
18
2.9k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.4k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
225
22k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
38
9.2k
Building a Modern Day E-commerce SEO Strategy
aleyda
36
6.8k
Why You Should Never Use an ORM
jnunemaker
PRO
53
8.9k
Clear Off the Table
cherdarchuk
91
320k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
278
13k
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 🤗