シャドーイング練習: Rust in 100 Seconds - 動画で英語スピーキングを学ぶ
レッスンを作成中...
1
Rust, a memory-safe compiled programming language that delivers high-level simplicity with low-level performance.
2
It's a popular choice for building systems where performance is absolutely critical, like game engines, databases, or operating systems,
3
and is an excellent choice when targeting WebAssembly.
4
It started as a side project of Gradon Whore in 2007, who named it after the Rust fungus.
5
It was sponsored by Mozilla in 2009, and has been ranked the most loved programming language every year since 2016, with its fans being known as Rustations.
6
Traditionally, high-level languages provide a garbage collector to nerf your control over memory management,
7
while lower-level languages provide functions like Free and Allocate to shoot yourself in the foot.
8
Rust takes a different approach.
9
It has no garbage collector, but achieves memory safety with a concept known as ownership and borrowing.
10
By default, every variable in Rust is immutable.
11
This allows values to be used in the stack memory, which has minimal performance overhead.
12
However, mutable values or objects with an unknown size at compile time are stored in the heap memory.
13
Every value in a Rust program is assigned to a single variable known as its owner.
14
When that variable goes out of scope, the memory allocated to it is dropped automatically.
15
In some cases though, you may want to pass a reference to a different part of the program.
16
Borrowing allows you to access a reference in memory without taking ownership of it.
17
There are a ton of rules to go along with this system that the Rust BorrowChecker will validate at compile time.
18
These rules keep your code safe while providing absolute control over performance.
19
Rust also has a package manager called Cargo, where each individual package is a crate.
20
To get started, install Rust, then run Cargo New from the command line.
21
In the main.rs file, you'll find a main function, which is where the program will start executing.
22
Declare a variable with let, followed by its name and type.
23
The value can't be changed or reassigned by default, so add mutt to make it mutable.
24
The name of the variable is the owner.
25
A reference to its location in memory can be borrowed by other parts of the program by prefixing it with an ampersand.
26
Then use a macro like println to log the value to the standard output.
27
Rust also comes with a standard library that contains modules to handle I.O., the file system, concurrency, among many other things.
28
Now compile your code to an executable with the Rust compiler.
29
You just built a memory-safe executable that can handle the most performance-intensive system requirements.
30
This has been Rust in 100 seconds.
31
Hit the like button and subscribe if you want to see more short videos like this, and leave a comment if you want to see a full Rust tutorial.
32
Thanks for watching, and I will see you in the next one.
📺 同じチャンネル
✨ おすすめ動画
このレッスンについて
「Rust in 100 Seconds」を使って、シャドーイングで英語を練習しましょう。
毎日15〜30分の練習で、IELTSスピーキングへの自信と実践的な英会話力が身につきます。
シャドーイングとは?英語上達に効果的な理由
シャドーイング(Shadowing)は、もともとプロの通訳者養成プログラムで開発された言語学習法で、多言語習得者として知られるDr. Alexander Arguelles によって広く普及されました。方法はシンプルですが非常に効果的:ネイティブスピーカーの英語を聞きながら、1〜2秒の遅延で声に出してすぐに繰り返す——まるで「影(shadow)」のように話者を追いかけます。文法ドリルや受動的なリスニングと異なり、シャドーイングは脳と口の筋肉が同時にリアルタイムで英語を処理・再現することを強制します。研究により、発音精度、抑揚、リズム、連音、リスニング力、そして会話の流暢さが大幅に向上することが確認されています。IELTSスピーキング対策や自然な英語コミュニケーションを目指す方に特におすすめです。






























