[Rust][노마드코더] Rust 특징, 왜 배워야 할까
2022. 2. 8. 01:24
2'30''
어셈블리 - C/C++, Rust - Java - Python, JS 순으로 abstraction
4'30''
C/C++, Rust -> memory allocation/deallocation
upper abstract language들은 변수 선언할때 할당X → 일단 선언하고 나중에 안쓰면 Garbage collector가 처리해주니까 (메모리 관리 abstraction의 일종)
5'40''
디스코드 -> switched to Rust from Go
Why? Garbage collector 때문에 Go 성능 느림
Rust
C/C++과 비슷한 스피드, 더 안전 (memory access)
No garbage collection
메모리 다루는 다른 scheme - 'Ownership' 중요!
⭐️ Ownership?
data is owned by variable
data can only be owned by one owner at a time
if the owner is not in scope or used anymore, data is freed
-> Must think... How the data moves in our program
🔥 steep learning curve
추천
speed, safety, correctness ➡️ Rust!
dev speed, faster than Py/JS ➡️ Go
'<기타 공부> > [Tech-CS 글 및 영상]' 카테고리의 다른 글
[Blockchain] Why is Bitcoin block time 10 minutes? (0) | 2022.04.22 |
---|---|
[Tip] 처음보는 복잡한 코드를 분석하는 좋은 방법 있을까요? (0) | 2022.03.18 |
[블록체인][3Blue1Brown] But how does bitcoin actually work? (0) | 2022.01.08 |
Memory, Cache Locality, and why Arrays are Fast (Data Structures and Optimization) (0) | 2022.01.08 |
가슴을 뛰게하는 미래지향적 운영체제론, CS4414: Operating Systems by David Evans (0) | 2021.12.02 |