From a7adf49002bd1314d9f888fb4b025d886f964d3d Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sat, 7 Jan 2023 16:45:05 +0100 Subject: [PATCH] =?UTF-8?q?Speaker=20notes=20for=20=E2=80=9CWhy=20Rust=3F?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/why-rust.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/why-rust.md b/src/why-rust.md index cb81888c..4fdec86a 100644 --- a/src/why-rust.md +++ b/src/why-rust.md @@ -5,3 +5,20 @@ Some unique selling points of Rust: * Compile time memory safety. * Lack of undefined runtime behavior. * Modern language features. + +
+ +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) + +