AWS re:Invent 2022 - Rust is interesting, but does it really make sense for me? (BOA201)

preview_player
Показать описание
In this session, see some of the seemingly outlandish claims made by Rust and its ever-growing community put to the test. Rust has won Stack Overflow’s most loved programming language award in its annual developer survey—7 years in a row! But how good is it really? Join Tim McNamara, a long-time Rustacean, AWS Software Engineer, and author of “Rust in Action,” to learn about what Rust has to offer and, perhaps more importantly, when to avoid it.


Subscribe:

ABOUT AWS
Amazon Web Services (AWS) hosts events, both online and in-person, bringing the cloud computing community together to connect, collaborate, and learn from AWS experts.

AWS is the world’s most comprehensive and broadly adopted cloud platform, offering over 200 fully featured services from data centers globally. Millions of customers—including the fastest-growing startups, largest enterprises, and leading government agencies—are using AWS to lower costs, become more agile, and innovate faster.

#reInvent2022 #AWSreInvent2022 #AWSEvents
Рекомендации по теме
Комментарии
Автор

9:31 the HashMap will allocate when you insert new entries into it, so that code isn't allocation free.

__jan
Автор

19:40 you can easily hide an error from the func by `let _ = func()` or `func().ok()`. But yes, Rust demands you to do it explicitly.

DezzKB
Автор

I skipped to the end of the talk. Conclusion: "I can't say if RUST is good for you." Of course. Only I know what I need.

CristobalRuiz
Автор

Your book is one of the best resources available 🔥

pooladkhay
Автор

Glad to see a presentation without meme or animated GIFs

aum
Автор

For those comparing Go and Rust, look at it this way: Go is the best gateway drug to Rust.

Learning Go makes it easier to learn Rust if you don't have a C/C++ background. Go also offers 80% of the benefits of Rust for 20% of the effort (for a newbie). Rust is definitely the better language, and once you master it you can be even more productive in it than Go. If you're company is trying to decide between Go and Rust - and are having a hard time deciding - then you're most likely better off using Go as it's easier and more opinionated. Trying to adopt Rust from zero experience can be a recipe for disaster.

TRK--xkbb
Автор

19:00 you can have raw pointers with any values you wish even with null value. But only in "unsafe" sections you can dereference raw pointers. So, generally you can dereference null-pointer and crash your program with segfault or access violation, but only in "unsafe" sectoin.

DezzKB
Автор

Tom slyly left out that Pattern Matching is in newer versions of Python lol. I’m def a fan of both

GoonCity
Автор

Amazing talk Tim. I remember meeting you at python meetups many years ago, it seems we have both transitioned towards rust.

RobertKing
Автор

16:00 this is true only for safe Rust without using standard library or any other libraries. Generally, Rust can't avoid race conditions, only data races because of standard library which has a lot of instruments to overcome borrow-checker limitations. We can rewrite such example in Rust using interior mutability (RefCell, Mutex/RwLock and atomic's) and the execution result of the example program will be also unpredictable.

DezzKB
Автор

Nice talk Tim. 07:06-07:11 love that part.. :D

rodelias
Автор

You should include the Q&A in the videos. Those who are not interested can still skip it.

szaszm_
Автор

13:00 Most C++ compilers will give you a big warning though... (Not sure about C).

ProfessorWaltherKotz
Автор

3:15 Python is not safe in my opinion, because it's a dynamic typed language which results to many runtime errors. Java would be a better example.

StefaNoneD
Автор

Incredible session. Sorry, but your answer about the ampersand 4:48 was not at the point. Rust variable is by default read only unless explicitly declared as mutable using `mut` keyword. Ampersand means the reference is borrowed not transferred, but keep that in mind that it is different from usual concept in C/C++, it has more to say, I would suggest the Rust book.

vaibhavmaurya
Автор

For most people there is no real benefit to write in Rust. It makes more sense to depend on stuff that is written in it.

realsong-fake
Автор

Not all is done at compile time. Many rust code uses some sort of smart pointera which are just another way of reference counter GC

zim
Автор

Just wish Rust had as good remote debugging feature as JVM and .NET for example.. 🤞

Art-kzzf
Автор

i have doubt of those numbers 17:36 - 18:26

bulend
Автор

"does it really make sense for me?"
Any programming language that is so pedantically opinionated as to complain during compilation about my mere *naming convention* is not for me. Any language that complains about 'let mut x : f32 = 0' not being able to initialize a floating point value with 0 (which is losslessly identical to 0.0) is not worth my time. I just don't have time for nonsense. Dear Rustaceans, loosen your compiler's pedanticness (keep memory safety, but drop the pointlessly picky aspects) and lessen your sense of superiority about your language over others, and you will find significantly more people joining the ranks of your crowd. 👍

1:54 "Rust solves pain points ... with a limited number of downsides" 🤔 I really did hope for this to be a successor to C++, but the more I tried it, the more I realized it was a different language that fixes some aspects while adding in its own warts, rather than being a clear improvement/upgrade, as a number of those "limited downsides" are pretty darn annoying.

fdwr