The journey to Rust from a student
presented by Marcus Lee
A little about me...
The journey to Rust from a student
The journey to Rust from a student
2010
Played with Java and JavaScript
while trying to run a MapleStory
Private Server.
2019
Learned basic Python during foundation.
2020
Started to code a bunch of side-projects in Python, including a 2000 users camp portal.
2021
Tried to build an e-commerce solution with Go and React.
2022
Dabbled into blockchain, Web3 development with Solidity and TypeScript.
2023
Worked with Rust full-time as an infrastructure engineer in Quant.
Played with Rust with WASM
and completed several tutorials
Learn more about Rust by using it for LeetCode
Had opportunity to work part-time with Rust writing APIs and libraries
Rust confused me for years…
The journey to Rust from a student
Ownership?
Allocator?
Lifetimes?
Macros?
Features?
Smart Pointers?
Fearless Concurrency?
Integer Types?
Errors that haunted me
The journey to Rust from a student
Love & Hate
The journey to Rust from a student
Super strict
Difficult syntax
Annoying
Force me to think ahead
Common pitfalls
The journey to Rust from a student
Let’s talk Ownership
Every data is owned by someone at all time.�
The journey to Rust from a student
Read-only borrow
&Data
Read/Write borrow
&mut Data
or
Transferring ownership
Data
Make a copy of data
Data.clone()
System programmers can have nice things
The journey to Rust from a student
Cargo build
npm-like package manager
Superb error handling
Fantastic macros
Generated docs
Clippy
Cross platform support
rustup
A compiler that yells at you
The journey to Rust from a student
| Python | TypeScript | Go | C++ | Rust |
Error Handling | ❌ | 👌🏼 | ✅ | ❌ | ✅ |
Tooling | ❌ | ✅ | ✅ | ❌ | ✅ |
Expressive syntax | 👌🏼 | ✅ | ❌ | 👌🏼 | ✅ |
Productive | ✅ | ✅ | ✅ | ❌ | 👌🏼 |
Performance | ❌ | 👌🏼 | 👌🏼 | ✅ | ✅ |
Libraries | ✅ | ✅ | 👌🏼 | ✅ | 👌🏼 |
Things that I’m excited for
The journey to Rust from a student
Enum Variant Types (EVT)
WASM & WASI
Xilem (UI Framework)
Summary
The journey to Rust from a student
Thank You!
The journey to Rust from a student