Welcome to Day 1
๊ฐ์์ ์ฒซ ๋ ์ ๋๋ค. ์ฐ๋ฆฌ๋ ์ค๋ ๋ง์ ๋ถ๋ถ์ ๋ค๋ฃฐ ๊ฒ์ ๋๋ค.
This is the first day of Comprehensive Rust. We will cover a lot of ground today:
- ๋ฌ์คํธ ๊ธฐ๋ณธ ๋ฌธ๋ฒ: ๋ณ์, ์ค์นผ๋ผ / ๋ณตํฉ ํ์ , ์ด๊ฑฐํ, ๊ตฌ์กฐ์ฒด, ์ฐธ์กฐํ, ํจ์์ ๋ฉ์๋.
- Basic Rust syntax: variables, scalar and compound types, enums, structs, references, functions, and methods.
- ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ: ์คํ๊ณผ ํ, ์๋ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ, ์ค์ฝํ(๋ฒ์)๊ธฐ๋ฐ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ, ๊ฐ๋น์ง ์ปฌ๋ ์ (GC)
- Memory management: stack vs heap, manual memory management, scope-based memory management, and garbage collection.
- ์์ ๊ถ: ์๋ฏธ ์ด๋, ๋ณต์ฌ์ ๋ณต์ , ๋น๋ฆผ, ์๋ช .
- Ownership: move semantics, copying and cloning, borrowing, and lifetimes.
๊ฐ์ ์ฐธ์กฐ ๋ ธํธ
์ฒซ ๋ ๊ฐ์์ ๋ชฉํ๋ ๋น๋ฆผ ํ์ธ ๋ฑ์ ๋ํด ๋งํ ์ ์์ ๋งํผ์ ๋ฌ์คํธ์ ๋ํด ๋ณด์ฌ์ฃผ๋ ๊ฒ์ ๋๋ค. ๋ฌ์คํธ๊ฐ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๋ค๋ฃจ๋ ๋ฐฉ์์ ์ฃผ์ํ ํน์ง์ด๋ฉฐ ์ฐ๋ฆฌ๋ ํ์๋ค์๊ฒ ์ฐ์ ํด์ ๋ณด์ฌ์ฃผ๋ ค๊ณ ํฉ๋๋ค.
๋ง์ฝ ๋น์ ์ด ๊ต์คํ๊ฒฝ์์ ๊ฐ๋ฅด์น๊ณ ์๋ค๋ฉด, ์ด ๊ณณ์ ์ผ์ ์ ๊ฒํ ํ๊ธฐ ์ข์ ์ฅ์์ ๋๋ค. ์ฐ๋ฆฌ๋ ํ๋ฃจ์ ๊ฐ์๋ฅผ ์ฌ๋ผ์ด๋์ ๋ฐ๋ผ์ ๋ ๋ถ๋ถ์ผ๋ก ๋๋๋ ๊ฒ์ ์ถ์ฒํฉ๋๋ค.
- ์ค์ : 9:00 to 12:00,
- ์คํ: 13:00 to 16:00. ๋ฌผ๋ก ํ์์ ๋ฐ๋ผ ์กฐ์ ํ ์ ์์ต๋๋ค. ๊ฐ์ ์ค๊ฐ์ ์ฌ๋์๊ฐ์ ๋ฃ๋๊ฑธ ๋ถํ๋๋ฆฝ๋๋ค.
The idea for the first day is to show just enough of Rust to be able to speak about the famous borrow checker. The way Rust handles memory is a major feature and we should show students this right away.
If youโre teaching this in a classroom, this is a good place to go over the schedule. We suggest splitting the day into two parts (following the slides):
- Morning: 9:00 to 12:00,
- Afternoon: 13:00 to 16:00. You can of course adjust this as necessary. Please make sure to include breaks, we recommend a break every hour!