Shadowing Practice: Rust in 100 Seconds - Learn English Speaking with Video

Creando lección...
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.

Sobre esta lección

¿Qué es la Técnica de Shadowing?

Shadowing es una técnica de aprendizaje de idiomas respaldada por la ciencia, desarrollada originalmente para la formación de intérpretes profesionales y popularizada por el políglota Dr. Alexander Arguelles. El método es simple pero poderoso: escuchas audio en inglés nativo y lo repites en voz alta de inmediato, como una sombra que sigue al hablante con solo 1-2 segundos de retraso. A diferencia de la escucha pasiva o los ejercicios de gramática, el shadowing obliga a tu cerebro y músculos de la boca a procesar y reproducir simultáneamente patrones de habla reales. Las investigaciones muestran que mejora significativamente la precisión de la pronunciación, la entonación, el ritmo, el habla conectada, la comprensión auditiva y la fluidez al hablar, convirtiéndola en una de las metodologías más efectivas para la preparación del IELTS Speaking y la comunicación en inglés en el mundo real.

Técnica de shadowing: lee la guía completa paso a paso →