https://www.youtube.com/watch?v=w1dlmOjDLX8&ab_channel=%EB%85%B8%EB%A7%88%EB%93%9C%EC%BD%94%EB%8D%94NomadCoders

 

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

+ Recent posts