2022-12-21 17:36:30 +02:00
|
|
|
# Why Rust?
|
|
|
|
|
|
|
|
Some unique selling points of Rust:
|
|
|
|
|
2022-12-21 19:27:46 +02:00
|
|
|
* Compile time memory safety.
|
|
|
|
* Lack of undefined runtime behavior.
|
|
|
|
* Modern language features.
|
2023-01-07 17:45:05 +02:00
|
|
|
|
|
|
|
<details>
|
|
|
|
|
|
|
|
Make sure to ask the class which languages they have experience with. Depending
|
|
|
|
on the answer you can highlight different features of Rust:
|
|
|
|
|
|
|
|
* Experience with C or C++: Rust eliminates a whole class of _runtime errors_
|
|
|
|
via the borrow checker. You get performance like in C and C++, but you don't
|
|
|
|
have the memory unsafety issues. In addition, you get a modern language with
|
|
|
|
constructs like pattern matching and built-in dependency management.
|
|
|
|
|
|
|
|
* Experience with Java, Go, Python, JavaSript...: You get the same memory safety
|
|
|
|
as in those languages, plus a similar high-level language feeling. In addition
|
|
|
|
you get fast and predictable performance like C and C++ (no garbage collector)
|
|
|
|
as well as access to low-level hardware (should you need it)
|
|
|
|
|
|
|
|
</details>
|