Dave Halter – Rust for Python Developers – SPS22

preview_player
Показать описание
"What programming language are you choosing for a new project? This talk wants to explore why we choose a programming language over another one. We will look at the languages Python and Rust to understand their strengths and weaknesses.

Rust is a fairly new language and offers distinct advantages over most other programming languages when it comes to performance and security. There are however clear drawbacks.

We will look at side by side comparisons of code and learn how much harder it is to write a lot of simple things in Rust."

00:00 Intro
00:05 Talk
46:27 Q&A

Talk recorded at the Swiss Python Summit on September 22nd, 2022.

Licensed as Creative Commons Attribution 4.0 International.
Рекомендации по теме
Комментарии
Автор

For the example foo at 10:16 it needs a "mut" before the variable name "s".

error[E0596]: cannot borrow `s` as mutable, as it is not declared as mutable
--> src/main.rs:13:9
|
11 | fn foo(s: String) -> String {
| - help: consider changing this to be mutable: `mut s`
12 | if !s.ends_with("s") {
13 | s += "s";
| ^ cannot borrow as mutable

For more information about this error, try `rustc --explain E0596`.

kinositajona
visit shbcf.ru